Bug 247015 - www/node clang frontend command failed due to signal
Summary: www/node clang frontend command failed due to signal
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Bradley T. Hughes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-05 17:53 UTC by Rob Belics
Modified: 2020-09-06 19:50 UTC (History)
1 user (show)

See Also:
bhughes: maintainer-feedback+


Attachments
code-stub-assembler-227fb7.sh (5.74 KB, application/x-shellscript)
2020-06-05 17:53 UTC, Rob Belics
no flags Details
code-stub-assembler-538ff2.sh (5.89 KB, application/x-shellscript)
2020-09-05 15:16 UTC, Rob Belics
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Belics 2020-06-05 17:53:52 UTC
Created attachment 215272 [details]
code-stub-assembler-227fb7.sh

FreeBSD 12.1-RELEASE-p5 GENERIC 

Updating via portmaster

Note that the file size of stub assembler is 14Mb so cannot be attached here.

  c++ -o /usr/ports/www/node/work/node-v13.14.0/out/Release/obj.target/v8_initializers/deps/v8/src/codegen/code-stub-assembler.o ../deps/v8/src/codegen/code-stub-assembler.cc '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_ASM' '-DV8_TARGET_ARCH_IA32' '-DV8_EMBEDDER_STRING="-node.32"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DV8_INTL_SUPPORT' '-DV8_CONCURRENT_MARKING' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_EMBEDDED_BUILTINS' '-DV8_USE_SIPHASH' '-DDISABLE_UNTRUSTED_CODE_MITIGATIONS' '-DV8_WIN64_UNWINDING_INFO' '-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' -I../deps/v8 -I../deps/v8/include -I/usr/ports/www/node/work/node-v13.14.0/out/Release/obj/gen/torque-output-root -I/usr/ports/www/node/work/node-v13.14.0/out/Release/obj/gen/generate-bytecode-output-root  -pthread -Wno-unused-parameter -m32 -Wno-return-type -msse2 -mfpmath=sse -mmmx -fno-strict-aliasing -m32 -O3 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF /usr/ports/www/node/work/node-v13.14.0/out/Release/.deps//usr/ports/www/node/work/node-v13.14.0/out/Release/obj.target/v8_initializers/deps/v8/src/codegen/code-stub-assembler.o.d.raw -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -c
c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: i386-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/code-stub-assembler-227fb7.cpp
c++: note: diagnostic msg: /tmp/code-stub-assembler-227fb7.sh
c++: note: diagnostic msg: 

********************
gmake[3]: *** [tools/v8_gypfiles/v8_initializers.target.mk:273: /usr/ports/www/node/work/node-v13.14.0/out/Release/obj.target/v8_initializers/deps/v8/src/codegen/code-stub-assembler.o] Error 254
rm ee280ee7b8ba4f448405f33267815295158275ef.intermediate 6fcad5276e53cabab5d074f4194a43e3dd4288d7.intermediate
gmake[2]: *** [Makefile:101: node] Error 2
gmake[2]: Leaving directory '/usr/ports/www/node/work/node-v13.14.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/node
*** Error code 1
Comment 1 Bradley T. Hughes freebsd_committer freebsd_triage 2020-08-20 21:41:31 UTC
This line stands out to me:

c++: error: unable to execute command: Killed

It makes me wonder if the c++ compiler was killed by the out-of-memory handler?
Comment 2 Rob Belics 2020-09-05 15:16:24 UTC
Created attachment 217767 [details]
code-stub-assembler-538ff2.sh
Comment 3 Rob Belics 2020-09-05 15:19:15 UTC
Again I had this issue trying to update node using 'make'. Attached the new .sh file. Still can't upload the .cpp file because it's too large (over 5MB).
Comment 4 Bradley T. Hughes freebsd_committer freebsd_triage 2020-09-06 18:09:20 UTC
And how about the out-of-memory handler? Do you see anything in /var/log/messages about c++/clang being killed due to a lack of memory? How much memory do you have available? How much swap?
Comment 5 Rob Belics 2020-09-06 18:21:17 UTC
(In reply to Bradley T. Hughes from comment #4)

After reporting that, I looked at my logs to see I did have an out-of-swap error reported and I'm betting that was the same problem the first time I saw it. 

Color me embarrassed and I'll close this for that reason.
Comment 6 Rob Belics 2020-09-06 18:26:15 UTC
Apparently I can't close this myself as "not a bug".
Comment 7 Bradley T. Hughes freebsd_committer freebsd_triage 2020-09-06 19:50:03 UTC
I am glad it was "only" that and not something worse. Thanks for the report, regardless. :)