webosose / build-webos

webOS OSE build layer
670 stars 126 forks source link

nodejs_16.14.2.bb:do_compile) failed with exit code '1' #33

Closed csdougliss closed 1 year ago

csdougliss commented 1 year ago

I am trying to build this on Ubuntu 22.10 x86_64. I'm getting the following error after following the guide:

./mcf -p 8 -b 8 raspberrypi4 make

Setscene tasks: 4295 of 4295
Currently  8 running tasks (2127 of 10411)  20% |###############################                                                                                                                           |
0: linux-raspberrypi-1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0 do_fetch - 17m43s (pid 1600724)  84% |##################################################################################                |
ERROR: nodejs-native-16.14.2-r0 do_compile: oe_runmake failed
ERROR: nodejs-native-16.14.2-r0 do_compile: ExecutionError('/home/developer/webosose/build-webos/BUILD/work/x86_64-linux/nodejs-native/16.14.2-r0/temp/run.do_compile.1963232', 1, None, None)
ERROR: Logfile of failure stored in: /home/developer/webosose/build-webos/BUILD/work/x86_64-linux/nodejs-native/16.14.2-r0/temp/log.do_compile.1963232
|   g++  -o Release/obj.host/v8_base_without_compiler/deps/v8/src/heap/memory-reducer.o ../deps/v8/src/heap/memory-reducer.cc '-D_GLIBCXX_USE_CXX11_ABI=1' '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D__STDC_FORMAT_MACROS' '-DV8_TARGET_ARCH_X64' '-DV8_HAVE_TARGET_OS' '-DV8_TARGET_OS_LINUX' '-DV8_EMBEDDER_STRING="-node.20"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-DV8_ATOMIC_OBJECT_FIELD_WRITES' '-DV8_ATOMIC_MARKING_STATE' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_USE_SIPHASH' '-DDISABLE_UNTRUSTED_CODE_MITIGATIONS' '-DV8_WIN64_UNWINDING_INFO' '-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' '-DV8_SNAPSHOT_COMPRESSION' '-DV8_ENABLE_WEBASSEMBLY' '-DV8_ALLOCATION_FOLDING' '-DV8_ALLOCATION_SITE_TRACKING' '-DV8_ADVANCED_BIGINT_ALGORITHMS' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' -I/home/developer/webosose/build-webos/BUILD/work/x86_64-linux/nodejs-native/16.14.2-r0/recipe-sysroot-native/usr/include -I../deps/v8 -I../deps/v8/include -I.//Release/obj/gen/inspector-generated-output-root -I../deps/v8/third_party/inspector_protocol -I.//Release/obj/gen -I.//Release/obj/gen/generate-bytecode-output-root -I../deps/v8/third_party/zlib -I../deps/v8/third_party/zlib/google  -pthread -Wno-unused-parameter -m64 -Wno-return-type -fno-strict-aliasing -m64 -O3 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++14 -MMD -MF .//Release/.deps/Release/obj.host/v8_base_without_compiler/deps/v8/src/heap/memory-reducer.o.d.raw -isystem/home/developer/webosose/build-webos/BUILD/work/x86_64-linux/nodejs-native/16.14.2-r0/recipe-sysroot-native/usr/include -isystem/home/developer/webosose/build-webos/BUILD/work/x86_64-linux/nodejs-native/16.14.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -c
| {standard input}: Assembler messages:
| {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
| g++: fatal error: Killed signal terminated program cc1plus
| compilation terminated.
| make[1]: *** [tools/v8_gypfiles/v8_base_without_compiler.host.mk:975: Release/obj.host/v8_base_without_compiler/deps/v8/src/heap/heap.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| rm 89e49ae1fd8258832b8403b0632542071c9af418.intermediate 33145e028b8b26295f56aa27a95eeb0eaccb313f.intermediate 3e1aeba0226705d401fa14a3f8a75f4def24663f.intermediate 86aa29cd237649188c6186a4eb7abc7426d8d769.intermediate e11746de0a48ca481764bd956822e1b19d0b0d0d.intermediate
| make: *** [Makefile:113: node] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (virtual:native:/home/developer/webosose/build-webos/meta-oe/meta-oe/recipes-devtools/nodejs/nodejs_16.14.2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2797 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
NOTE: Build completion summary:
NOTE:   do_populate_sysroot: 0.0% sstate reuse(0 setscene, 217 scratch)
NOTE:   do_deploy_source_date_epoch: 0.0% sstate reuse(0 setscene, 344 scratch)
NOTE:   do_package: 0.0% sstate reuse(0 setscene, 23 scratch)
NOTE:   do_packagedata: 0.0% sstate reuse(0 setscene, 19 scratch)

Summary: 1 task failed:
  virtual:native:/home/developer/webosose/build-webos/meta-oe/meta-oe/recipes-devtools/nodejs/nodejs_16.14.2.bb:do_compile
Summary: There were 3 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
make: *** [Makefile:42: webos-image] Error 1
shr-project commented 1 year ago

Check if dmesg shows "Out of memory" errors, in that case you need more ram or at least swap (or lower -p and -b).

csdougliss commented 1 year ago

@shr-project Yes!

[56190.928511] Out of memory: Killed process 2558811 (cc1plus) total-vm:848960kB, anon-rss:765324kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:1664kB oom_score_adj:200

Thanks, but it doesn't seem to want to resume from where it left off?

./mcf -p 4 -b 4 raspberrypi4

2023-01-24T10:58:30 INFO __main__ MCF-6.2.5: Updating build directory
2023-01-24T10:58:30 INFO __main__ Sanity checking [bitbake]
2023-01-24T10:58:30 INFO __main__ Checking for local changes in [bitbake]
warning: refname '2.0' is ambiguous.
2023-01-24T10:58:30 INFO __main__ [bitbake] is up-to-date.
2023-01-24T10:58:30 INFO __main__ Sanity checking [oe-core]
2023-01-24T10:58:30 INFO __main__ Checking for local changes in [oe-core]
2023-01-24T10:58:30 INFO __main__ [oe-core] is up-to-date.
2023-01-24T10:58:30 INFO __main__ Sanity checking [meta-oe]
2023-01-24T10:58:30 INFO __main__ Checking for local changes in [meta-oe]
2023-01-24T10:58:31 INFO __main__ Updating [meta-oe]
2023-01-24T10:58:31 INFO __main__ Done updating [meta-oe]
2023-01-24T10:58:31 INFO __main__ Sanity checking [meta-clang]
2023-01-24T10:58:31 INFO __main__ Checking for local changes in [meta-clang]
2023-01-24T10:58:31 INFO __main__ [meta-clang] is up-to-date.
2023-01-24T10:58:31 INFO __main__ Sanity checking [meta-updater]
2023-01-24T10:58:31 INFO __main__ Checking for local changes in [meta-updater]
2023-01-24T10:58:31 INFO __main__ [meta-updater] is up-to-date.
2023-01-24T10:58:31 INFO __main__ Sanity checking [meta-virtualization]
2023-01-24T10:58:31 INFO __main__ Checking for local changes in [meta-virtualization]
2023-01-24T10:58:31 INFO __main__ [meta-virtualization] is up-to-date.
2023-01-24T10:58:31 INFO __main__ Sanity checking [meta-qt6]
2023-01-24T10:58:31 INFO __main__ Checking for local changes in [meta-qt6]
2023-01-24T10:58:31 INFO __main__ [meta-qt6] is up-to-date.
2023-01-24T10:58:31 INFO __main__ Sanity checking [meta-webosose]
2023-01-24T10:58:31 INFO __main__ Checking for local changes in [meta-webosose]
2023-01-24T10:58:31 INFO __main__ [meta-webosose] is up-to-date.
2023-01-24T10:58:31 INFO __main__ Sanity checking [meta-raspberrypi]
2023-01-24T10:58:31 INFO __main__ Checking for local changes in [meta-raspberrypi]
2023-01-24T10:58:31 INFO __main__ [meta-raspberrypi] is up-to-date.
2023-01-24T10:58:31 INFO __main__ Sanity checking [meta-security]
2023-01-24T10:58:31 INFO __main__ Checking for local changes in [meta-security]
2023-01-24T10:58:31 INFO __main__ [meta-security] is up-to-date.
2023-01-24T10:58:31 INFO __main__ Repo Update Summary
2023-01-24T10:58:31 INFO __main__ ===================
2023-01-24T10:58:31 INFO __main__     *) switched branches from heads/2.0 to 2.0
2023-01-24T10:58:31 WARNING __main__ WARNING: ICECC package installation check failed, disabling build from using ICECC.
2023-01-24T10:58:31 INFO __main__ MCF-6.2.5: Configuring build directory BUILD
2023-01-24T10:58:31 INFO __main__ MCF-6.2.5: Done configuring build directory BUILD
2023-01-24T10:58:31 WARNING __main__ No mirror for github.com was detected, please define mirrors in ~/.gitconfig if some are available
2023-01-24T10:58:31 INFO __main__ Done.
shr-project commented 1 year ago

mcf doesn't run the build, only configures the build directory, you need to run bitbake (or make as you did before).

csdougliss commented 1 year ago

@shr-project Oops yes indeed. Thanks! resuming now.