Thanks Ben, It works with the flag.
I also figured out the issue. sudo apt-get install gcc-5 does not install g++-5 installing g++-5 (and update-alternatives) solved it .. Best Regards, Deepak On Wednesday, January 27, 2016 at 10:48:07 AM UTC+1, Ben Noordhuis wrote: > > On Wed, Jan 27, 2016 at 10:10 AM, Deepak Subramanian > <subud...@gmail.com <javascript:>> wrote: > > Hi Ben, > > > > This is the output > > > > make[1]: Entering directory > > `/home/username/Programming/seperateV8_temp/v8/out' > > > > > /home/username/Programming/seperateV8_temp/v8/third_party/llvm-build/Release+Asserts/bin/clang++ > > > > '-DV8_TARGET_ARCH_X64' '-DENABLE_GDB_JIT_INTERFACE' > > '-DV8_DEPRECATION_WARNINGS' '-DV8_I18N_SUPPORT' > > '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' '-DU_USING_ICU_NAMESPACE=0' > > '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION' > '-DENABLE_DISASSEMBLER' > > '-DV8_ENABLE_CHECKS' '-DOBJECT_PRINT' '-DVERIFY_HEAP' '-DDEBUG' > > '-DTRACE_MAPS' '-DENABLE_HANDLE_ZAPPING' '-DENABLE_SLOW_DCHECKS' -I../. > > -I../third_party/icu/source/i18n -I../third_party/icu/source/common > -Wall > > -Werror -W -Wno-unused-parameter -Wno-long-long -pthread -fno-exceptions > > -pedantic -Wno-missing-field-initializers -m64 -m64 -g -O0 > > -Woverloaded-virtual -Woverloaded-virtual -fdata-sections > > -ffunction-sections -fdata-sections -ffunction-sections > -Wnon-virtual-dtor > > -fno-rtti -std=gnu++0x -MMD -MF > > > /home/username/Programming/seperateV8_temp/v8/out/x64.debug/.deps//home/username/Programming/seperateV8_temp/v8/out/x64.debug/obj.target/v8_base/src/accessors.o.d.raw > > > > -c -o > > > /home/username/Programming/seperateV8_temp/v8/out/x64.debug/obj.target/v8_base/src/accessors.o > > > > ../src/accessors.cc > > In file included from ../src/accessors.cc:5: > > In file included from .././src/v8.h:32: > > In file included from .././src/allocation.h:8: > > In file included from .././src/globals.h:13: > > .././src/base/macros.h:11:10: fatal error: 'cstring' file not found > > #include <cstring> > > ^ > > 1 error generated. > > make[1]: *** > > > [/home/username/Programming/seperateV8_temp/v8/out/x64.debug/obj.target/v8_base/src/accessors.o] > > > > Error 1 > > make[1]: Leaving directory > > `/home/username/Programming/seperateV8_temp/v8/out' > > make: *** [x64.debug] Error 2 > > > > Thanks a lot. I tried reverting to my old gcc 4.8 but am still stuck > with > > the same issue. > > > > BTW, when I compile > > test.cc > > #include <iostream> > > #include <cstring> > > > > int main() > > { > > std::cout<<"test"; > > } > > > > with g++ test.cc -o test > > > > it works great > > > > with gcc test.cc -o test it does not. > > > > Deepak > > So I think the problem is that the bundled clang can't find your > system's headers. What happens when you run `make V=1 > GYPFLAGS="-Dclang=0"`? > -- -- 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.