Created attachment 761455 [details] build.log Specific snippet of code: x86_64-pc-linux-gnu-g++ -o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/mksnapshot.o ../deps/v8/src/snapshot/mksnapshot.cc '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CERT_STORE' '-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.14"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-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' -I../deps/v8 -I../deps/v8/include -I/var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj/gen/generate-bytecode-output-root -I/var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj/gen -pthread -Wno-unused-parameter -m64 -Wno-return-type -fno-strict-aliasing -m64 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++14 -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb -c x86_64-pc-linux-gnu-g++ -o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/snapshot-empty.o ../deps/v8/src/snapshot/snapshot-empty.cc '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CERT_STORE' '-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.14"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-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' -I../deps/v8 -I../deps/v8/include -I/var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj/gen/generate-bytecode-output-root -I/var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj/gen -pthread -Wno-unused-parameter -m64 -Wno-return-type -fno-strict-aliasing -m64 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++14 -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb -c x86_64-pc-linux-gnu-g++ -o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/mksnapshot -pthread -rdynamic -m64 -m64 -Wl,-O1 -Wl,--as-needed -fuse-ld=mold -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--start-group /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/embedded-empty.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/embedded-file-writer.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-win.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/mksnapshot.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/snapshot-empty.o /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/tools/v8_gypfiles/libv8_base_without_compiler.a /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/tools/v8_gypfiles/libv8_init.a /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/tools/v8_gypfiles/libv8_libbase.a /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/tools/v8_gypfiles/libv8_libplatform.a /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/tools/v8_gypfiles/libv8_zlib.a /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/tools/v8_gypfiles/libv8_compiler.a /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/obj.target/tools/v8_gypfiles/libv8_initializers.a -lz -luv -lbrotlidec -lbrotlienc -lcares -lnghttp2 -lcrypto -lssl -licui18n -licuuc -licudata -ldl -lrt -Wl,--end-group collect2: fatal error: ld terminated with signal 9 [Killed] compilation terminated. make: *** [tools/v8_gypfiles/mksnapshot.target.mk:190: /var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out/Release/mksnapshot] Error 1 rm 9e48847a93c11d9563dd6ef22473f947c0868473.intermediate f0a2806414e267cfd65dd0d093c8dc3dbc74b359.intermediate make: Leaving directory '/var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1/out' * ERROR: net-libs/nodejs-16.13.1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-libs/nodejs-16.13.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-libs/nodejs-16.13.1::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-libs/nodejs-16.13.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-libs/nodejs-16.13.1/temp/environment'. * Working directory: '/var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1' * S: '/var/tmp/portage/net-libs/nodejs-16.13.1/work/node-v16.13.1'
Created attachment 761456 [details] info.log
I'm not nodejs maintainer, but please stop filing pointless non-actionable bugs for mold. Bug has to be filed if: there's clear mistake in ebuild. there's a helpful analysis provided why it does not build. there's understanding what you are doing. there's something that CAN be done. this bug is none of those things. yeah we know it's a new linker and things will be broken. what do you expect maintainer to do here? non-actionable. you can just maintain a list of packages in tracker bug without needlessly polluting bugzilla.
if you file a bug and analysis what happened and maybe a solution or at least a link to upstream patch that fixes it - it's helpful. just a saying "it failed with mold" is not
Closing as error 9 is a memory exhaustion and it's not related to linker itself. Sorry for all the noise.