First, the basics:

  - OpenSuSE 15
  - v8 5.9
  - gcc 7.3.0

Trying to build v8 5.9 on OpenSuSE 15 (new platform we're supporting for 
one of my company's products) and hitting a strange error that my Google-fu 
has failed to find any sort of solution or explanation to.  The initial 
error I saw was the following:

    ../../third_party/llvm-build/Release+Asserts/bin/clang++: error while 
loading shared libraries: libtinfo.so.5: cannot open shared object file: No 
such file or directory

which after a bit of searching I found that it might be solved using 
'is_clang=false' in the V8 args. This did indeed seem to help, but the next 
attempt hit a stranger issue:

    g++ -MMD -MF obj/v8_libbase/bits.o.d -DBUILDING_V8_BASE_SHARED 
-DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 
-DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE_BROWSING 
-DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD 
-DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS 
-D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -DNDEBUG 
-DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DENABLE_GDB_JIT_INTERFACE 
-DV8_I18N_SUPPORT -DENABLE_HANDLE_ZAPPING -DV8_USE_SNAPSHOT 
-DV8_TARGET_ARCH_X64 -DUSING_V8_BASE_SHARED -I../.. -Igen -I../.. 
-fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector 
-Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= 
-funwind-tables -fPIC -pipe -B../../third_party/binutils/Linux_x64/Release/bin 
-m64 -march=x86-64 -pthread -Wall -Werror -Wno-unused-local-typedefs 
-Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter 
-fomit-frame-pointer -g0 
--sysroot=../../build/linux/debian_jessie_amd64-sysroot -O3 -fno-ident 
-fdata-sections -ffunction-sections -fvisibility=default 
-fvisibility-inlines-hidden -std=gnu++11 -Wno-narrowing -fno-rtti 
-fno-exceptions -c ../../src/base/bits.cc -o obj/v8_libbase/bits.o
In file included from 
../../build/linux/debian_jessie_amd64-sysroot/usr/include/stdint.h:25:0,        
          from /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/stdint.h:9, 
                 from ../../src/base/bits.h:8,                  from 
../../src/base/bits.cc:5:  
../../build/linux/debian_jessie_amd64-sysroot/usr/include/features.h:374:12: 
fatal error: sys/cdefs.h: No such file or directory   #  include <sys/cdefs.h>  
               ^~~~~~~~~~~~~


On the Docker container I'm building this on, sys/cdefs.h does indeed exist in 
/usr/include, but the 'debian_jessie_amd64_sysroot' part is throwing me off, as 
I'm not sure now where it's trying to find the include file.  Might someone be 
able to shed some light on this?  I'm more than willing to give additional 
information, if needed.


Thanks in advance.


- Ken


-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to