ONLYOFFICE / build_tools

Used to build ONLYOFFICE DocumentServer-related products
https://www.onlyoffice.com
GNU Affero General Public License v3.0
104 stars 185 forks source link

An error "ninja: build stopped: subcommand failed." occurred during the compilation process. #875

Closed zsy1314 closed 1 week ago

zsy1314 commented 1 month ago

Describe your problem:

After checking several issues, I learned that the recommended Ubuntu versions are 16.04, 18.04, and 20.04, so I tried several versions. The error process was slightly different, but in the end, they all prompted: ninja: build stopped: subcommand failed.

The error for Ubuntu 16.04 is this:

[fetch & build]: openssl
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
Done. Made 566 targets from 138 files in 275ms
ninja: Entering directory `out.gn/linux_64'
[1/3722] CXX obj/v8_libbase/bits.o
FAILED: obj/v8_libbase/bits.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MD -MF obj/v8_libbase/bits.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-20-init-3847-g69c43468-28\" -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_FUZZTEST -DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_SPARKPLUG -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_STATIC_ROOTS -DV8_USE_ZLIB -DV8_USE_LIBM_TRIG_FUNCTIONS -DV8_ENABLE_WASM_SIMD256_REVEC -DV8_ENABLE_MAGLEV_GRAPH_PRINTER -DV8_ENABLE_BUILTIN_JUMP_TABLE_SWITCH -DV8_ENABLE_EXTENSIBLE_RO_SNAPSHOT -DV8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT=0 -DV8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT=0 -DV8_PROMISE_INTERNAL_FIELD_COUNT=0 -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_ENABLE_LARGER_CAGE -DCPPGC_SLIM_WRITE_BARRIER -DV8_TARGET_ARCH_X64 -DV8_RUNTIME_CALL_STATS -I../.. -Igen -I../../include -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -m64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -fno-omit-frame-pointer -g0 -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wunreachable-code -Wno-shadow -Wctad-maybe-unsupported -Wno-invalid-offsetof -Wshorten-64-to-32 -Wmissing-field-initializers -O3 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fvisibility=default -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -c ../../src/base/bits.cc -o obj/v8_libbase/bits.o
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:78:15: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
   78 |     N <= std::tuple_size_v<std::decay_t<Tuple>>;
      |          ~~~~~^~~~~~~~~~~~
      |               tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:78:48: error: expected '(' for function-style cast or type construction
   78 |     N <= std::tuple_size_v<std::decay_t<Tuple>>;
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/base/template-utils.h:130:38: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
  130 |   constexpr size_t total_size = std::tuple_size_v<std::decay_t<Tuple>>;
      |                                 ~~~~~^~~~~~~~~~~~
      |                                      tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:130:71: error: expected '(' for function-style cast or type construction
  130 |   constexpr size_t total_size = std::tuple_size_v<std::decay_t<Tuple>>;
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/base/template-utils.h:145:38: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
  145 |   constexpr size_t total_size = std::tuple_size_v<std::decay_t<Tuple>>;
      |                                 ~~~~~^~~~~~~~~~~~
      |                                      tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:145:71: error: expected '(' for function-style cast or type construction
  145 |   constexpr size_t total_size = std::tuple_size_v<std::decay_t<Tuple>>;
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/base/template-utils.h:156:37: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
  156 |       std::make_index_sequence<std::tuple_size_v<std::decay_t<Tuple>>>());
      |                                ~~~~~^~~~~~~~~~~~
      |                                     tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:156:32: error: template argument for non-type template parameter must be an expression
  156 |       std::make_index_sequence<std::tuple_size_v<std::decay_t<Tuple>>>());
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/utility:259:19: note: template parameter is declared here
  259 |   template<size_t _Num>
      |                   ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:166:37: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
  166 |       std::make_index_sequence<std::tuple_size_v<std::decay_t<Tuple>>>());
      |                                ~~~~~^~~~~~~~~~~~
      |                                     tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:166:32: error: template argument for non-type template parameter must be an expression
  166 |       std::make_index_sequence<std::tuple_size_v<std::decay_t<Tuple>>>());
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/utility:259:19: note: template parameter is declared here
  259 |   template<size_t _Num>
      |                   ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:175:37: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
  175 |       std::make_index_sequence<std::tuple_size_v<std::decay_t<Tuple>>>());
      |                                ~~~~~^~~~~~~~~~~~
      |                                     tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:175:32: error: template argument for non-type template parameter must be an expression
  175 |       std::make_index_sequence<std::tuple_size_v<std::decay_t<Tuple>>>());
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/utility:259:19: note: template parameter is declared here
  259 |   template<size_t _Num>
      |                   ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:182:29: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
  182 |   constexpr size_t S = std::tuple_size_v<std::decay_t<TupleV>>;
      |                        ~~~~~^~~~~~~~~~~~
      |                             tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:182:63: error: expected '(' for function-style cast or type construction
  182 |   constexpr size_t S = std::tuple_size_v<std::decay_t<TupleV>>;
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/base/template-utils.h:183:27: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
  183 |   static_assert(S == std::tuple_size_v<std::decay_t<TupleU>>);
      |                      ~~~~~^~~~~~~~~~~~
      |                           tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:183:61: error: expected '(' for function-style cast or type construction
  183 |   static_assert(S == std::tuple_size_v<std::decay_t<TupleU>>);
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/base/template-utils.h:186:59: error: non-type template argument is not a constant expression
  186 |                                  std::make_index_sequence<S>());
      |                                                           ^
../../src/base/template-utils.h:186:59: note: initializer of 'S' is unknown
../../src/base/template-utils.h:182:20: note: declared here
  182 |   constexpr size_t S = std::tuple_size_v<std::decay_t<TupleV>>;
      |                    ^
../../src/base/template-utils.h:193:39: error: no template named 'tuple_size_v' in namespace 'std'; did you mean 'tuple_size'?
  193 |   return detail::tuple_fold_impl<std::tuple_size_v<std::decay_t<Tuple>> - 1>(
      |                                  ~~~~~^~~~~~~~~~~~
      |                                       tuple_size
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../include/c++/5/tuple:798:12: note: 'tuple_size' declared here
  798 |     struct tuple_size;
      |            ^
In file included from ../../src/base/bits.cc:5:
In file included from ../../src/base/bits.h:12:
In file included from ../../src/base/macros.h:13:
In file included from ../../src/base/logging.h:21:
../../src/base/template-utils.h:193:72: error: expected '>'
  193 |   return detail::tuple_fold_impl<std::tuple_size_v<std::decay_t<Tuple>> - 1>(
      |                                                                        ^
../../src/base/template-utils.h:193:33: note: to match this '<'
  193 |   return detail::tuple_fold_impl<std::tuple_size_v<std::decay_t<Tuple>> - 1>(
      |                                 ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
.
.
.
ninja: build stopped: subcommand failed.
Error (ninja): 1
Error (./make.py): 1
root@efe0fbb64269:/build_tools/tools/linux#

The error for Ubuntu 18.04 is this:

[fetch & build]: openssl
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
Done. Made 566 targets from 138 files in 262ms
ninja: Entering directory `out.gn/linux_64'
[1/3185] CXX obj/third_party/abseil-cpp/absl/base/tracing_internal/tracing.o
FAILED: obj/third_party/abseil-cpp/absl/base/tracing_internal/tracing.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MD -MF obj/third_party/abseil-cpp/absl/base/tracing_internal/tracing.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-20-init-3847-g69c43468-28\" -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DABSL_ALLOCATOR_NOTHROW=1 -I../.. -Igen -I../../third_party/abseil-cpp -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -m64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang span-ctor-from-string-literal -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ref-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang raw-span-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Xclang -add-plugin -Xclang raw-ptr-plugin -Xclang -plugin-arg-raw-ptr-plugin -Xclang check-raw-ptr-to-stack-allocated -Xclang -plugin-arg-raw-ptr-plugin -Xclang disable-check-raw-ptr-to-stack-allocated-error -Xclang -plugin-arg-raw-ptr-plugin -Xclang raw-ptr-exclude-path=../../third_party/dawn/ -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -Wbool-conversion -Wconstant-conversion -Wenum-conversion -Wint-conversion -Wliteral-conversion -Wnon-literal-null-conversion -Wnull-conversion -Wobjc-literal-conversion -Wstring-conversion -Wbitfield-enum-conversion -c ../../third_party/abseil-cpp/absl/base/internal/tracing.cc -o obj/third_party/abseil-cpp/absl/base/tracing_internal/tracing.o
In file included from ../../third_party/abseil-cpp/absl/base/internal/tracing.cc:15:
In file included from ../../third_party/abseil-cpp/absl/base/internal/tracing.h:18:
../../third_party/abseil-cpp/absl/base/config.h:81:10: fatal error: 'version' file not found
   81 | #include <version>
      |          ^~~~~~~~~
1 error generated.
.
.
.
ninja: build stopped: subcommand failed.
Error (ninja): 1
Error (./make.py): 1
root@bd542e98f719:/build_tools/tools/linux#

The error for Ubuntu 20.04 is this:

[fetch & build]: openssl
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
Done. Made 566 targets from 138 files in 379ms
ninja: Entering directory `out.gn/linux_64'
[1/3156] CXX obj/third_party/abseil-cpp/absl/crc/crc_cord_state/crc_cord_state.o
FAILED: obj/third_party/abseil-cpp/absl/crc/crc_cord_state/crc_cord_state.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MD -MF obj/third_party/abseil-cpp/absl/crc/crc_cord_state/crc_cord_state.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-20-init-3847-g69c43468-28\" -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DABSL_ALLOCATOR_NOTHROW=1 -I../.. -Igen -I../../third_party/abseil-cpp -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -m64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang span-ctor-from-string-literal -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ref-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang raw-span-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Xclang -add-plugin -Xclang raw-ptr-plugin -Xclang -plugin-arg-raw-ptr-plugin -Xclang check-raw-ptr-to-stack-allocated -Xclang -plugin-arg-raw-ptr-plugin -Xclang disable-check-raw-ptr-to-stack-allocated-error -Xclang -plugin-arg-raw-ptr-plugin -Xclang raw-ptr-exclude-path=../../third_party/dawn/ -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -Wbool-conversion -Wconstant-conversion -Wenum-conversion -Wint-conversion -Wliteral-conversion -Wnon-literal-null-conversion -Wnull-conversion -Wobjc-literal-conversion -Wstring-conversion -Wbitfield-enum-conversion -c ../../third_party/abseil-cpp/absl/crc/internal/crc_cord_state.cc -o obj/third_party/abseil-cpp/absl/crc/crc_cord_state/crc_cord_state.o
In file included from ../../third_party/abseil-cpp/absl/crc/internal/crc_cord_state.cc:15:
In file included from ../../third_party/abseil-cpp/absl/crc/internal/crc_cord_state.h:23:
In file included from ../../third_party/abseil-cpp/absl/crc/crc32c.h:32:
In file included from ../../third_party/abseil-cpp/absl/strings/str_format.h:83:
In file included from ../../third_party/abseil-cpp/absl/strings/internal/str_format/arg.h:35:
In file included from ../../third_party/abseil-cpp/absl/numeric/int128.h:41:
../../third_party/abseil-cpp/absl/types/compare.h:37:10: fatal error: 'compare' file not found
   37 | #include <compare>  // IWYU pragma: export
      |          ^~~~~~~~~
1 error generated.
.
.
.
ninja: build stopped: subcommand failed.
Error (ninja): 1
Error (./make.py): 1
root@8017057ac869:/build_tools/tools/linux#

The full error log is here Full transcript for Ubuntu 16.04.txt Full transcript for Ubuntu 18.04.txt Full transcript for Ubuntu 20.04.txt

Steps to reproduce the problem: Using Windows CMD

docker pull ubuntu:16.04
docker run -i -t -p 8022:22 --name OnlyOffice ubuntu:16.04
apt-get update
apt-get upgrade
apt-get install -y sudo
sudo apt-get install -y python git
git clone https://github.com/ONLYOFFICE/build_tools.git
cd build_tools/tools/linux
./automate.py server

build_tools base repo version: master

Operating system: Ubuntu 16.04, 18.04, 20.04

Compiler version:

kaleurodrigues commented 1 month ago

Same probleme here.

Nocodemon commented 1 month ago

I have the same errors, you can fix some of them, but i've still not been able to build v8 in any ubuntu Docker.

By addding libstdc++-10-dev to ubuntu 20.04 you will get past compare, but still not able to build v8 its something about c++ 20 not working.

you can also add ENV PATH="/core/Common/3dParty/v8_89/depot_tools:$PATH" to get past the error with depot_tools pointing to ./depot_tools

zsy1314 commented 1 month ago

I have the same errors, you can fix some of them, but i've still not been able to build v8 in any ubuntu Docker.

By addding libstdc++-10-dev to ubuntu 20.04 you will get past compare, but still not able to build v8 its something about c++ 20 not working.

you can also add ENV PATH="/core/Common/3dParty/v8_89/depot_tools:$PATH" to get past the error with depot_tools pointing to ./depot_tools

You are absolutely right. After passing sudo apt-get install libstdc++-10-dev It finally started compiling v8 and it ended here.

[fetch & build]: openssl
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
Done. Made 566 targets from 138 files in 253ms
ninja: Entering directory `out.gn/linux_64'
[967/3148] CXX obj/v8_base_without_compiler/maglev-graph-builder.o
FAILED: obj/v8_base_without_compiler/maglev-graph-builder.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MD -MF obj/v8_base_without_compiler/maglev-graph-builder.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-20-init-3847-g69c43468-28\" -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_FUZZTEST -DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_SPARKPLUG -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_STATIC_ROOTS -DV8_USE_ZLIB -DV8_USE_LIBM_TRIG_FUNCTIONS -DV8_ENABLE_WASM_SIMD256_REVEC -DV8_ENABLE_MAGLEV_GRAPH_PRINTER -DV8_ENABLE_BUILTIN_JUMP_TABLE_SWITCH -DV8_ENABLE_EXTENSIBLE_RO_SNAPSHOT -DV8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT=0 -DV8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT=0 -DV8_PROMISE_INTERNAL_FIELD_COUNT=0 -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_ENABLE_LARGER_CAGE -DCPPGC_SLIM_WRITE_BARRIER -DV8_TARGET_ARCH_X64 -DV8_RUNTIME_CALL_STATS -DABSL_ALLOCATOR_NOTHROW=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../.. -Igen -I../../include -I../../third_party/abseil-cpp -Igen/include -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/fp16/src/include -I../../third_party/fast_float/src/include -I../../third_party/zlib -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -m64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -fno-omit-frame-pointer -g0 -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wunreachable-code -Wno-shadow -Wctad-maybe-unsupported -Wno-invalid-offsetof -Wshorten-64-to-32 -Wmissing-field-initializers -O3 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fvisibility=default -Wexit-time-destructors -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -c ../../src/maglev/maglev-graph-builder.cc -o obj/v8_base_without_compiler/maglev-graph-builder.o
Killed
[980/3148] CXX obj/v8_base_without_compiler/baseline-compiler.o
ninja: build stopped: subcommand failed.
Error (ninja): 1
Error (./make.py): 1

But there is no specific error message. I will continue to try a few more times to see if there will be any new hints.

After the second attempt these two files failed

[fetch & build]: openssl
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
Done. Made 566 targets from 138 files in 257ms
ninja: Entering directory `out.gn/linux_64'
[73/2169] CXX obj/torque_generated_initializers/array-at-tq-csa.o
FAILED: obj/torque_generated_initializers/array-at-tq-csa.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MD -MF obj/torque_generated_initializers/array-at-tq-csa.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-20-init-3847-g69c43468-28\" -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_FUZZTEST -DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_SPARKPLUG -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_STATIC_ROOTS -DV8_USE_ZLIB -DV8_USE_LIBM_TRIG_FUNCTIONS -DV8_ENABLE_WASM_SIMD256_REVEC -DV8_ENABLE_MAGLEV_GRAPH_PRINTER -DV8_ENABLE_BUILTIN_JUMP_TABLE_SWITCH -DV8_ENABLE_EXTENSIBLE_RO_SNAPSHOT -DV8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT=0 -DV8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT=0 -DV8_PROMISE_INTERNAL_FIELD_COUNT=0 -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_ENABLE_LARGER_CAGE -DCPPGC_SLIM_WRITE_BARRIER -DV8_TARGET_ARCH_X64 -DV8_RUNTIME_CALL_STATS -DABSL_ALLOCATOR_NOTHROW=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../.. -Igen -I../../include -I../../third_party/abseil-cpp -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -Igen/include -I../../third_party/fp16/src/include -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -m64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -fno-omit-frame-pointer -g0 -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wunreachable-code -Wno-shadow -Wctad-maybe-unsupported -Wno-invalid-offsetof -Wshorten-64-to-32 -Wmissing-field-initializers -O3 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fvisibility=default -Wexit-time-destructors -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -c gen/torque-generated/src/builtins/array-at-tq-csa.cc -o obj/torque_generated_initializers/array-at-tq-csa.o
Killed
[74/2169] CXX obj/torque_generated_initializers/enum-verifiers.o
FAILED: obj/torque_generated_initializers/enum-verifiers.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MD -MF obj/torque_generated_initializers/enum-verifiers.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-20-init-3847-g69c43468-28\" -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_FUZZTEST -DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_SPARKPLUG -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_STATIC_ROOTS -DV8_USE_ZLIB -DV8_USE_LIBM_TRIG_FUNCTIONS -DV8_ENABLE_WASM_SIMD256_REVEC -DV8_ENABLE_MAGLEV_GRAPH_PRINTER -DV8_ENABLE_BUILTIN_JUMP_TABLE_SWITCH -DV8_ENABLE_EXTENSIBLE_RO_SNAPSHOT -DV8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT=0 -DV8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT=0 -DV8_PROMISE_INTERNAL_FIELD_COUNT=0 -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_ENABLE_LARGER_CAGE -DCPPGC_SLIM_WRITE_BARRIER -DV8_TARGET_ARCH_X64 -DV8_RUNTIME_CALL_STATS -DABSL_ALLOCATOR_NOTHROW=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../.. -Igen -I../../include -I../../third_party/abseil-cpp -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -Igen/include -I../../third_party/fp16/src/include -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -m64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -fno-omit-frame-pointer -g0 -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wunreachable-code -Wno-shadow -Wctad-maybe-unsupported -Wno-invalid-offsetof -Wshorten-64-to-32 -Wmissing-field-initializers -O3 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fvisibility=default -Wexit-time-destructors -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -c gen/torque-generated/enum-verifiers.cc -o obj/torque_generated_initializers/enum-verifiers.o
Killed
[86/2169] CXX obj/torque_generated_initializers/exported-macros-assembler.o
ninja: build stopped: subcommand failed.
Error (ninja): 1
Error (./make.py): 1

Each time I try, the progress can be advanced a little bit. The error files are sometimes the same, sometimes different. After a quick count, the following are found.

obj/v8_base_without_compiler/maglev-graph-builder.o
obj/torque_generated_initializers/array-at-tq-csa.o
obj/torque_generated_initializers/enum-verifiers.o
obj/torque_generated_initializers/enum-verifiers.o
obj/torque_generated_initializers/array-at-tq-csa.o
obj/torque_generated_initializers/array-to-spliced-tq-csa.o
obj/torque_generated_initializers/array-some-tq-csa.o
obj/torque_generated_initializers/console-tq-csa.o
obj/torque_generated_initializers/collections-tq-csa.o
......
igwyd commented 2 weeks ago

Hello @zsy, sorry for the late reply. I checked your scenario on my stand(4 cpu 8 ram 8 swap, host ubuntu 22.04) in docker - ubuntu 16.04 and 20.04 and got no errors:

docker pull ubuntu:16.04
docker run -i -t -p 8022:22 --name OnlyOffice ubuntu:16.04
apt-get update
apt-get upgrade
apt-get install -y sudo
sudo apt-get install -y python git
git clone https://github.com/ONLYOFFICE/build_tools.git
cd build_tools/tools/linux
./automate.py server

Often errors occur due to lack of memory, try it on a stand like mine.

zsy1314 commented 1 week ago

Thanks for your reply. I found that Docker limits the upper limit of memory and swap, which leads to a large amount of free space but is not used during compilation. Now it has been compiled successfully, but there seem to be some other minor bugs. I will ask a separate question.