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 ?

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/a617170c-cf14-4b70-8744-44856d463ca1%40googlegroups.com.

Reply via email to