Building with gcc 4.8.2

73 views
Skip to first unread message

Matt Harrison

unread,
Jul 8, 2014, 2:06:08 PM7/8/14
to sil...@googlegroups.com
If building with gcc 4.8.2 then

run 
    export CXX="g++ -Wno-unused-local-typedefs -Wno-aggressive-loop-optimizations -Wno-narrowing"

before the make to get around the following error related to warnings treated as errors.



Checked out revision 1501.
make[2]: Leaving directory `/home/ubuntu/workspace/SilkJS/src/v8-read-only'
make[2]: Entering directory `/home/ubuntu/workspace/SilkJS/src/v8-read-only'
GYP_GENERATORS=make \
        build/gyp/gyp --generator-output="out" build/all.gyp \
                      -Ibuild/standalone.gypi --depth=. \
                      -Dv8_target_arch=x64 \
                      -S.x64  -Dcomponent=shared_library -Dv8_can_use_vfp3_instructions=true
make[3]: Entering directory `/home/ubuntu/workspace/SilkJS/src/v8-read-only/out'
  CXX(target) /home/ubuntu/workspace/SilkJS/src/v8-read-only/out/x64.release/obj.target/preparser_lib/src/allocation.o
  CXX(target) /home/ubuntu/workspace/SilkJS/src/v8-read-only/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
  CXX(target) /home/ubuntu/workspace/SilkJS/src/v8-read-only/out/x64.release/obj.target/preparser_lib/src/bignum.o
  CXX(target) /home/ubuntu/workspace/SilkJS/src/v8-read-only/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
  CXX(target) /home/ubuntu/workspace/SilkJS/src/v8-read-only/out/x64.release/obj.target/preparser_lib/src/cached-powers.o
  CXX(target) /home/ubuntu/workspace/SilkJS/src/v8-read-only/out/x64.release/obj.target/preparser_lib/src/conversions.o
In file included from ../src/utils.h:36:0,
                 from ../src/conversions.h:31,
                 from ../src/conversions-inl.h:40,
                 from ../src/conversions.cc:32:
../src/scanner.h: In member function 'void v8::internal::Scanner::Init()':
../src/checks.h:251:22: error: typedef '__StaticAssertTypedef__450' locally defined but not used [-Werror=unused-local-typedefs]
     SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__)
                      ^
../src/checks.h:241:39: note: in definition of macro 'SEMI_STATIC_JOIN_HELPER'
 #define SEMI_STATIC_JOIN_HELPER(a, b) a##b
                                       ^
../src/checks.h:251:5: note: in expansion of macro 'SEMI_STATIC_JOIN'
     SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__)
     ^
../src/checks.h:283:30: note: in expansion of macro 'STATIC_CHECK'
 #define STATIC_ASSERT(test)  STATIC_CHECK(test)
                              ^
../src/scanner.h:450:5: note: in expansion of macro 'STATIC_ASSERT'
     STATIC_ASSERT(kCharacterLookaheadBufferSize == 1);
     ^
cc1plus: all warnings being treated as errors
make[3]: *** [/home/ubuntu/workspace/SilkJS/src/v8-read-only/out/x64.release/obj.target/preparser_lib/src/conversions.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/ubuntu/workspace/SilkJS/src/v8-read-only/out'
make[2]: *** [x64.release] Error 2
make[2]: Leaving directory `/home/ubuntu/workspace/SilkJS/src/v8-read-only'
make[1]: *** [v8-read-only/out/x64.release/obj.target/tools/gyp/libv8_base.a] Error 2
make[1]: Leaving directory `/home/ubuntu/workspace/SilkJS/src'
make: *** [all] Error 2
Reply all
Reply to author
Forward
0 new messages