To use the system compiler, try: $ make ia32.release GYPFLAGS=-Dclang=0
I don't know whether it will also use system headers though. (Also note that the make/GYP-based build is deprecated. The new hotness is "gn"; see the wiki <https://github.com/v8/v8/wiki/Building-with-GN> for instructions. tools/dev/gm.py gives you an experience that's very similar to the Makefile.) On Mon, Jul 31, 2017 at 9:49 AM, Georgi Sotirov <gdsoti...@gmail.com> wrote: > Is there a way to build V8 natively on linux with system's compiler (GCC), > library and headers? How to make the build use GCC, system headers from > /usr/include, instead of /usr/src/v8/build/linux/debian_jessie_i386- > sysroot/usr/? > > $ time make ia32.release > PYTHONPATH="/usr/src/v8/tools/generate_shim_headers:/usr/ > src/v8/gypfiles::/usr/src/v8/tools/gyp/pylib:" \ > GYP_GENERATORS=make \ > tools/gyp/gyp --generator-output="out" gypfiles/all.gyp \ > -Igypfiles/standalone.gypi --depth=. \ > -Dv8_target_arch=ia32 \ > -Dtarget_arch=ia32 \ > \ > -S.ia32.release -Dv8_enable_backtrace=1 -Darm_fpu=default - > Darm_float_abi=default > make[1]: Entering directory '/usr/src/v8/out' > ACTION Generating inspector protocol sources from protocol json > definition /usr/src/v8/out/ia32.release/obj/gen/src/js_protocol.stamp > TOUCH /usr/src/v8/out/ia32.release/obj.target/src/inspector/protoc > ol_compatibility.stamp > TOUCH bdc92efe44eca1954fdff70fd086c7e138d0fbb1.intermediate > ACTION Generating inspector protocol sources from protocol json > bdc92efe44eca1954fdff70fd086c7e138d0fbb1.intermediate > TOUCH /usr/src/v8/out/ia32.release/obj.target/src/inspector/protoc > ol_generated_sources.stamp > ACTION src_inspector_inspector_gyp_inspector_injected_script_ > target_convert_js_to_cpp_char_array /usr/src/v8/out/ia32.release/obj/gen/ > src/inspector/injected-script-source.h > TOUCH /usr/src/v8/out/ia32.release/obj.target/src/inspector/inspec > tor_injected_script.stamp > ACTION src_inspector_inspector_gyp_inspector_debugger_script_ > target_convert_js_to_cpp_char_array /usr/src/v8/out/ia32.release/obj/gen/ > src/inspector/debugger-script.h > TOUCH /usr/src/v8/out/ia32.release/obj.target/src/inspector/inspec > tor_debugger_script.stamp > CXX(target) /usr/src/v8/out/ia32.release/obj.target/v8_base/gen/src/insp > ector/protocol/Protocol.o > In file included from /usr/src/v8/out/ia32.release/obj/gen/src/inspector/ > protocol/Protocol.cpp:7: > In file included from /usr/src/v8/out/ia32.release/obj/gen/src/inspector/ > protocol/Protocol.h:8: > In file included from /usr/src/v8/out/ia32.release/obj/gen/src/inspector/ > protocol/Forward.h:8: > In file included from .././src/inspector/string-util.h:8: > In file included from /usr/src/v8/build/linux/debian_jessie_i386-sysroot/ > usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/c++/4.8/memory:72: > In file included from /usr/src/v8/build/linux/debian_jessie_i386-sysroot/ > usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/c++/4.8/iosfwd:40: > In file included from /usr/src/v8/build/linux/debian_jessie_i386-sysroot/ > usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/c++/4.8/bits/postypes.h > :40: > In file included from /usr/src/v8/build/linux/debian_jessie_i386-sysroot/ > usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/c++/4.8/cwchar:44: > /usr/src/v8/build/linux/debian_jessie_i386-sysroot/usr/include/wchar.h:39: > 11: fatal error: 'stdarg.h' file not found > # include <stdarg.h> > ^~~~~~~~~~ > 1 error generated. > make[1]: *** [src/v8_base.target.ia32.release.mk:725: /usr/src/v8/out/ia32 > .release/obj.target/v8_base/gen/src/inspector/protocol/Protocol.o] Error 1 > rm bdc92efe44eca1954fdff70fd086c7e138d0fbb1.intermediate > make[1]: Leaving directory '/usr/src/v8/out' > make: *** [Makefile:315: ia32.release] Error 2 > > For information I'm trying to build on Slackware Linux. > > -- > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- -- 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. For more options, visit https://groups.google.com/d/optout.