Hi, I'm trying to build on the CentOS 7 current stable version of V8 
7.8.279.23 (i.e. version picked from the current stable Chrome version 
78.0.3904.108) and getting error. 

Here's what I've done:

I've checked out sources and synchronized dependencies.

I've prepared following gn config file

# FILE: v8/out.gn.linux/x64.debug/gn.args
symbol_level=2
is_debug=true
is_component_build=true
target_cpu="x64"
v8_target_cpu="x64"
v8_postmortem_support=true
use_debug_fission=false
# END OF FILE

And run 
gn args out.gn.linux/x64.debug

After this I'm trying to run build process itself:
ninja -j3 -v -C out.gn.linux/x64.debug d8

and I am getting following output with error (see in the bottom in *RED*):

ninja: Entering directory `out.gn.linux/x64.debug'
[1/1302] ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF 
obj/torque_base/class-debug-reader-generator.o.d -DUSE_UDEV -DUSE_AURA=1 
-DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE 
-DCR_CLANG_REVISION=\"369647-8288453f-2\" -D__STDC_CONSTANT_MACROS 
-D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE 
-D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD 
-DCR_LIBCXX_REVISION=361348 
-DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -D_DEBUG 
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DENABLE_DISASSEMBLER 
-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE 
-DENABLE_MINOR_MC -DOBJECT_PRINT -DVERIFY_HEAP -DV8_TRACE_MAPS 
-DV8_ENABLE_ALLOCATION_TIMEOUT -DV8_ENABLE_FORCE_SLOW_PATH 
-DV8_ENABLE_DOUBLE_CONST_STORE_CHECK -DV8_INTL_SUPPORT 
-DENABLE_HANDLE_ZAPPING -DV8_USE_SNAPSHOT 
-DV8_SNAPSHOT_NATIVE_CODE_COUNTERS -DV8_USE_EXTERNAL_STARTUP_DATA 
-DV8_CONCURRENT_MARKING -DV8_ENABLE_LAZY_SOURCE_POSITIONS 
-DV8_CHECK_MICROTASKS_SCOPES_CONSISTENCY -DV8_EMBEDDED_BUILTINS 
-DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO 
-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_CHECKS 
-DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS 
-DV8_TARGET_ARCH_X64 -DDEBUG -DDISABLE_UNTRUSTED_CODE_MITIGATIONS 
-DBUILDING_V8_SHARED -DV8_ENABLE_CHECKS -DV8_DEPRECATION_WARNINGS 
-DV8_IMMINENT_DEPRECATION_WARNINGS -DUSING_V8_BASE_SHARED -I../.. -Igen 
-I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 
-fstack-protector -funwind-tables -fPIC 
-B../../third_party/binutils/Linux_x64/Release/bin -pthread 
-fcolor-diagnostics -fmerge-all-constants 
-fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm 
-Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -m64 
-march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= 
-D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . 
-no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough 
-Wthread-safety -Wextra-semi -Wno-missing-field-initializers 
-Wno-unused-parameter -Wno-c++11-narrowing 
-Wno-unneeded-internal-declaration -Wno-undefined-var-template 
-Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion 
-Wno-xor-used-as-pow -fno-omit-frame-pointer -g2 -ggnu-pubnames 
-fvisibility=hidden -Wheader-hygiene -Wstring-conversion 
-Wtautological-overlap-compare -Wmissing-field-initializers 
-Wunreachable-code -Wshorten-64-to-32 -O3 -fno-ident -fdata-sections 
-ffunction-sections -Wexit-time-destructors -Wno-undefined-bool-conversion 
-Wno-tautological-undefined-compare -std=c++14 -nostdinc++ 
-isystem../../buildtools/third_party/libc++/trunk/include 
-isystem../../buildtools/third_party/libc++abi/trunk/include 
--sysroot=../../build/linux/debian_sid_amd64-sysroot 
-fvisibility-inlines-hidden -fexceptions -frtti -c 
../../src/torque/class-debug-reader-generator.cc -o 
obj/torque_base/class-debug-reader-generator.o
FAILED: obj/torque_base/class-debug-reader-generator.o 
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF 
obj/torque_base/class-debug-reader-generator.o.d -DUSE_UDEV -DUSE_AURA=1 
-DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE 
-DCR_CLANG_REVISION=\"369647-8288453f-2\" -D__STDC_CONSTANT_MACROS 
-D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE 
-D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD 
-DCR_LIBCXX_REVISION=361348 
-DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -D_DEBUG 
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DENABLE_DISASSEMBLER 
-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE 
-DENABLE_MINOR_MC -DOBJECT_PRINT -DVERIFY_HEAP -DV8_TRACE_MAPS 
-DV8_ENABLE_ALLOCATION_TIMEOUT -DV8_ENABLE_FORCE_SLOW_PATH 
-DV8_ENABLE_DOUBLE_CONST_STORE_CHECK -DV8_INTL_SUPPORT 
-DENABLE_HANDLE_ZAPPING -DV8_USE_SNAPSHOT 
-DV8_SNAPSHOT_NATIVE_CODE_COUNTERS -DV8_USE_EXTERNAL_STARTUP_DATA 
-DV8_CONCURRENT_MARKING -DV8_ENABLE_LAZY_SOURCE_POSITIONS 
-DV8_CHECK_MICROTASKS_SCOPES_CONSISTENCY -DV8_EMBEDDED_BUILTINS 
-DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO 
-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_CHECKS 
-DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS 
-DV8_TARGET_ARCH_X64 -DDEBUG -DDISABLE_UNTRUSTED_CODE_MITIGATIONS 
-DBUILDING_V8_SHARED -DV8_ENABLE_CHECKS -DV8_DEPRECATION_WARNINGS 
-DV8_IMMINENT_DEPRECATION_WARNINGS -DUSING_V8_BASE_SHARED -I../.. -Igen 
-I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 
-fstack-protector -funwind-tables -fPIC 
-B../../third_party/binutils/Linux_x64/Release/bin -pthread 
-fcolor-diagnostics -fmerge-all-constants 
-fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm 
-Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -m64 
-march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= 
-D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . 
-no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough 
-Wthread-safety -Wextra-semi -Wno-missing-field-initializers 
-Wno-unused-parameter -Wno-c++11-narrowing 
-Wno-unneeded-internal-declaration -Wno-undefined-var-template 
-Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion 
-Wno-xor-used-as-pow -fno-omit-frame-pointer -g2 -ggnu-pubnames 
-fvisibility=hidden -Wheader-hygiene -Wstring-conversion 
-Wtautological-overlap-compare -Wmissing-field-initializers 
-Wunreachable-code -Wshorten-64-to-32 -O3 -fno-ident -fdata-sections 
-ffunction-sections -Wexit-time-destructors -Wno-undefined-bool-conversion 
-Wno-tautological-undefined-compare -std=c++14 -nostdinc++ 
-isystem../../buildtools/third_party/libc++/trunk/include 
-isystem../../buildtools/third_party/libc++abi/trunk/include 
--sysroot=../../build/linux/debian_sid_amd64-sysroot 
-fvisibility-inlines-hidden -fexceptions -frtti -c 
../../src/torque/class-debug-reader-generator.cc -o 
obj/torque_base/class-debug-reader-generator.o
*../../third_party/llvm-build/Release+Asserts/bin/clang++: 
/lib64/libc.so.6: version `GLIBC_2.18' not found (required by 
/home/ivan/genesys/build/v8x/7.8.279.23_work/v8/third_party/llvm-build/Release+Asserts/bin/../lib/libstdc++.so.6)*

I assume this is because CentOS 7 has earlier version of glibc with which 
supplied version of clang doesn't work. Is there a way to fix this? 
Please note: things like "use pre-built V8 version" or "upgrade to CentOS 
8" don't work for me. Need to build it exactly on the CentOS 7.

-- 
-- 
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/35e63537-c662-4c88-9ab4-3253100f2b2e%40googlegroups.com.

Reply via email to