Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving Build error under LINUX #41138

Open
Gumbit opened this issue Dec 10, 2021 · 3 comments
Open

Receiving Build error under LINUX #41138

Gumbit opened this issue Dec 10, 2021 · 3 comments
Labels
build Issues and PRs related to build files or the CI.

Comments

@Gumbit
Copy link

Gumbit commented Dec 10, 2021

Version

17.2.0

Platform

Operating System: Red Hat Enterprise Linux 8.4 (Ootpa)     Kernel: Linux 4.18.0-305.10.2.el8_4.x86_64       Architecture: x86-64

Subsystem

Garbage collection?

What steps will reproduce the bug?

Following is the configuration command I am using:

./configure --dest-cpu=x86 --shared --enable-static --with-intl=full-icu --with-icu-source=./deps/icu4c-70_1-src.tgz --openssl-no-asm

Following is my make command:

CXXFLAGS='-funsigned-char' CFLAGS=$CXXFLAGS gmake -j4

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

Consistently

What is the expected behavior?

Successful build.

What do you see instead?

g++ -o /app/engine_space/tgundrum/v8_builds/node-17.2.0/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/heap/cppgc/allocation.o ../deps/v8/src/heap/cppgc/allocation.cc '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_HAS_QUIC' '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_THREADS' '-DOPENSSL_NO_ASM' '-DV8_TARGET_ARCH_IA32' '-DV8_HAVE_TARGET_OS' '-DV8_TARGET_OS_LINUX' '-DV8_EMBEDDER_STRING="-node.12"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_USE_SIPHASH' '-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' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/v8 -I../deps/v8/include -I/app/engine_space/tgundrum/v8_builds/node-17.2.0/out/Release/obj/gen/inspector-generated-output-root -I../deps/v8/third_party/inspector_protocol -I/app/engine_space/tgundrum/v8_builds/node-17.2.0/out/Release/obj/gen -I/app/engine_space/tgundrum/v8_builds/node-17.2.0/out/Release/obj/gen/generate-bytecode-output-root -I../deps/icu/source/common -I../deps/icu/source/i18n -I../deps/icu/source/tools/toolutil -I../deps/v8/third_party/zlib -I../deps/v8/third_party/zlib/google -pthread -Wno-unused-parameter -m32 -fPIC -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++17 -MMD -MF /app/engine_space/tgundrum/v8_builds/node-17.2.0/out/Release/.deps//app/engine_space/tgundrum/v8_builds/node-17.2.0/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/heap/cppgc/allocation.o.d.raw -c
/tmp/ccg3qHC7.s: Assembler messages:
/tmp/ccg3qHC7.s:8: Error: bad register name %rbp' /tmp/ccg3qHC7.s:9: Error: bad register name %rsp'
/tmp/ccg3qHC7.s:11: Error: bad register name %rbx' /tmp/ccg3qHC7.s:12: Error: bad register name %r12'
/tmp/ccg3qHC7.s:13: Error: bad register name %r13' /tmp/ccg3qHC7.s:14: Error: bad register name %r14'
/tmp/ccg3qHC7.s:15: Error: bad register name %r15' /tmp/ccg3qHC7.s:16: Error: bad register name %rdx'
/tmp/ccg3qHC7.s:17: Error: bad register name %rsp' /tmp/ccg3qHC7.s:18: Error: bad register name %r8'
/tmp/ccg3qHC7.s:19: Error: bad register name %rsp' /tmp/ccg3qHC7.s:20: Error: bad register name %rbp'
gmake[1]: *** [tools/v8_gypfiles/v8_base_without_compiler.host.mk:993: /app/engine_space/tgundrum/v8_builds/node-17.2.0/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/heap/base/asm/x64/push_registers_asm.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....

Additional information

No response

@Gumbit
Copy link
Author

Gumbit commented Dec 10, 2021

Even though the build is running on a 64-bit operating system, I need to target a 32-bit system if that is possible. A large number of source files compile correctly before it fails.

@richardlau
Copy link
Member

richardlau commented Dec 10, 2021

FWIW we're not seeing errors in the x86 17.2.0 build over at https://github.com/nodejs/unofficial-builds.
Build log: https://unofficial-builds.nodejs.org/logs/202111301809-v17.2.0/x86.log
We're using devtoolset-9 (gcc 9, see nodejs/unofficial-builds#42 for why (doesn't look the same as the errors you are getting)) on centos7 there.

@Mesteery Mesteery added the build Issues and PRs related to build files or the CI. label Dec 13, 2021
@Marv-CZ
Copy link

Marv-CZ commented Mar 31, 2022

This report is duplicative to Cross compilation for 32bit on 64bit #39736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI.
Projects
None yet
Development

No branches or pull requests

4 participants