nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
107.42k stars 29.52k forks source link

issue while building an old version - node-v8.9.1 #40646

Closed Ruturaj4 closed 1 year ago

Ruturaj4 commented 2 years ago

Version

node-v8.9.1

Platform

GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

I am using an old version of node - node-v8.9.1. I need this particular version, as I am using it as a benchmark (as suggested in one of the research papers). I have to use that particular version to build. I am using clang-3.7 to build.

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

it is expected to compile normally

What do you see instead?

Stack dump:
0.  Program arguments: /nfs/volatile/zephyr/Ruturaj/cfi_project/frameworks/LLVM-CFI/source_code/install/bin/clang-3.7 -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -disable-free -main-file-name umutex.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -v -dwarf-column-info -fno-unique-section-names -coverage-file /nfs/volatile/zephyr/Ruturaj/cfi_project/playground/my_examples/llvm-cfi-benchmarks/node-v8.9.1/out/Release/obj.target/icuucx/deps/icu-small/source/common/umutex.o -resource-dir /nfs/volatile/zephyr/Ruturaj/cfi_project/frameworks/LLVM-CFI/source_code/install/bin/../lib/clang/3.7.0 -dependency-file /nfs/volatile/zephyr/Ruturaj/cfi_project/playground/my_examples/llvm-cfi-benchmarks/node-v8.9.1/out/Release/.deps//nfs/volatile/zephyr/Ruturaj/cfi_project/playground/my_examples/llvm-cfi-benchmarks/node-v8.9.1/out/Release/obj.target/icuucx/deps/icu-small/source/common/umutex.o.d.raw -MT /nfs/volatile/zephyr/Ruturaj/cfi_project/playground/my_examples/llvm-cfi-benchmarks/node-v8.9.1/out/Release/obj.target/icuucx/deps/icu-small/source/common/umutex.o -D U_COMMON_IMPLEMENTATION=1 -D U_ATTRIBUTE_DEPRECATED= -D _CRT_SECURE_NO_DEPRECATE= -D U_STATIC_IMPLEMENTATION=1 -D UCONFIG_NO_SERVICE=1 -D UCONFIG_NO_REGULAR_EXPRESSIONS=1 -D U_ENABLE_DYLOAD=0 -D U_HAVE_STD_STRING=0 -D UCONFIG_NO_BREAK_ITERATION=0 -I ../deps/icu-small/source/common -internal-isystem /usr/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /nfs/volatile/zephyr/Ruturaj/cfi_project/frameworks/LLVM-CFI/source_code/install/bin/../lib/clang/3.7.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wall -Wextra -Wno-unused-parameter -Wno-deprecated-declarations -std=gnu++0x -fdeprecated-macro -fdebug-compilation-dir /nfs/volatile/zephyr/Ruturaj/cfi_project/playground/my_examples/llvm-cfi-benchmarks/node-v8.9.1/out -ferror-limit 19 -fmessage-length 170 -femit-vtbl-checks -pthread -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /nfs/volatile/zephyr/Ruturaj/cfi_project/playground/my_examples/llvm-cfi-benchmarks/node-v8.9.1/out/Release/obj.target/icuucx/deps/icu-small/source/common/umutex.o -x c++ ../deps/icu-small/source/common/umutex.cpp 
1.  ../deps/icu-small/source/common/umutex.cpp:264:33: current parser token '{'
2.  ../deps/icu-small/source/common/umutex.cpp:241:1 <Spelling=../deps/icu-small/source/common/unicode/uversion.h:119:45>: parsing namespace 'icu_59'
3.  ../deps/icu-small/source/common/umutex.cpp:256:38: parsing function body 'umtx_initImplPreInit'
4.  ../deps/icu-small/source/common/umutex.cpp:256:38: in compound statement ('{}')
5.  ../deps/icu-small/source/common/umutex.cpp:263:12: in compound statement ('{}')
clang-3.7: error: unable to execute command: Aborted (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.7.0 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.7: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang-3.7: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.7: note: diagnostic msg: /tmp/umutex-759a30.cpp
clang-3.7: note: diagnostic msg: /tmp/umutex-759a30.sh
clang-3.7: note: diagnostic msg: 

********************
make[1]: *** [tools/icu/icuucx.target.mk:279: /nfs/volatile/zephyr/Ruturaj/cfi_project/playground/my_examples/llvm-cfi-benchmarks/node-v8.9.1/out/Release/obj.target/icuucx/deps/icu-small/source/common/umutex.o] Error 254
rm 11bf1c667bb52141d8d49821ce7a1f7de5be22c5.intermediate
make: *** [Makefile:81: node] Error 2
[node-v8.9.1]$ echo $?
2

Additional information

No response

Trott commented 2 years ago

Instead of compiling, would you be able to download an executable from https://nodejs.org/dist/v8.9.1/? Or install nvm and use nvm install 8.9.1?

Ruturaj4 commented 2 years ago

Instead of compiling, would you be able to download an executable from https://nodejs.org/dist/v8.9.1/? Or install nvm and use nvm install 8.9.1?

thanks for your reply. but unfortunately not. I have to use a custom llvm to compile.

Trott commented 2 years ago

@nodejs/build Anyone willing and able to help out?

Ruturaj4 commented 2 years ago

@Trott thanks