Centos 8 Build failure.

71 views
Skip to first unread message

Jeffrey Smith

unread,
Oct 14, 2019, 6:46:02 AM10/14/19
to v8-users

I'm trying to build V8 6.9.427.23 on CentOS 8 using GCC 8.2.1 with the following commands

gn gen --args='is_clang=false use_sysroot=false is_debug=false v8_use_snapshot=true v8_use_external_startup_data=false treat_warnings_as_errors=false v8_static_library=true v8_monolithic=true use_drfuzz=false use_libfuzzer=false v8_enable_test_features="" v8_experimental_extra_library_files=[] v8_extra_library_files=[] use_glib = false use_custom_libcxx=false use_custom_libcxx_for_host=false v8_enable_i18n_support=false' out/x64.release

ninja
-C out/x64.release v8_monolith


Im getting the follwoing errors which I belive is because its using the gold linker.

[1/540] LINK ./torque
FAILED
: torque
python
"../../build/toolchain/gcc_link_wrapper.py" --output="./torque" -- g++ -pie -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -Wl,--threads -Wl,--thread-count=4 -Wl,--icf=all -m64 -rdynamic -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,-O2 -Wl,--gc-sections -o "./torque" -Wl,--start-group @"./torque.rsp"  -Wl,--end-group   -latomic -ldl -lpthread -lrt
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crti.o(.gnu.build.attributes+0x14): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crti.o(.gnu.build.attributes+0x1c): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/crtendS.o(.gnu.build.attributes+0x14): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crtn.o(.gnu.build.attributes+0x14): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/crtendS.o(.gnu.build.attributes+0x1c): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crtn.o(.gnu.build.attributes+0x1c): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/Scrt1.o(.gnu.build.attributes.hot+0x18): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/Scrt1.o(.gnu.build.attributes.hot+0x20): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/Scrt1.o(.gnu.build.attributes.unlikely+0x18): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/Scrt1.o(.gnu.build.attributes.unlikely+0x20): warning: relocation refers to discarded section
/usr/lib64/libc_nonshared.a(elf-init.oS)(.gnu.build.attributes.hot+0x18): warning: relocation refers to discarded section
/usr/lib64/libc_nonshared.a(elf-init.oS)(.gnu.build.attributes.hot+0x20): warning: relocation refers to discarded section
/usr/lib64/libc_nonshared.a(elf-init.oS)(.gnu.build.attributes.unlikely+0x18): warning: relocation refers to discarded section
/usr/lib64/libc_nonshared.a(elf-init.oS)(.gnu.build.attributes.unlikely+0x20): warning: relocation refers to discarded section
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: treating warnings as errors
collect2
: error: ld returned 1 exit status
ninja
: build stopped: subcommand failed.
make
[1]: *** [Makefile:28: /home/build/esp/supplier_source/../supplier_linux//v8] Error 1
make
[1]: Leaving directory '/home/build/esp/supplier_source/v8'
make
: *** [Makefile:26: all] Error 2

Any ideas how to switch this off or am I barking up the wrong tree here and the issue is something else ?

Nagendra Y

unread,
Dec 15, 2019, 12:56:47 PM12/15/19
to v8-users
I built v8(static v8_monolith)  7.9.317.32 on Centos 8 using clang. Building with GCC  ie; is_clang=false causes  trouble. It is not an officially supported configuration. 
Reply all
Reply to author
Forward
0 new messages