[Freeswitch-users] building v8 treats warnings as errors and will not compile

Brian West brian at freeswitch.org
Mon Dec 14 18:17:05 MSK 2015


Bug reports go on https://freeswitch.org/jira

Thanks,


On Thu, Dec 10, 2015 at 3:43 PM, Lee Azzarello <lee at seriesdigital.com>
wrote:

> Hello everyone,
>
> I'm compiling Freeswitch (both 1.6 and git HEAD as of this email
> timestamp) and I require a JavaScript interpreter. When the build process
> hits mod_v8 I get the following error[1]. System info: OS X 10.11.1 (El
> Capitan), homebrew updated as of this morning, current stable Xcode, all
> default ./configure options. One thing I noticed is the build system
> ignores my environment if I export CFLAGS="-Wno-errors" and
> CXXFLAGS="-Wno-errors". Warnings are always handled as errors because
> -Werror is always appended to the compiler flags.
>
> Thanks,
> Lee
>
> [1]
> making all mod_v8
>
> cd /Users/lazzarello/src/freeswitch/libs/v8-3.24.14 && (test -f
> .stamp-patch || patch -t -p0 <
> /Users/lazzarello/src/freeswitch/src/mod/languages/mod_v8/v8-build.patch)
>
> patching file Makefile
>
> touch /Users/lazzarello/src/freeswitch/libs/v8-3.24.14/.stamp-patch
>
> mkdir -p /Users/lazzarello/src/freeswitch/libs/v8-3.24.14
>
> if test "x86_64" = "x86_64"; then \
>
>   defines="v8_target_arch=x64 target_arch=x64"; \
>
> else \
>
>   if test "x86_64" = "arm"; then \
>
>       defines="v8_target_arch=arm target_arch=arm"; \
>
>   else \
>
>       if test "x36_64" = "i386"; then \
>
>         defines="v8_target_arch=ia32 target_arch=ia32"; \
>
>       fi; \
>
>   fi; \
>
> fi; \
>
> cd /Users/lazzarello/src/freeswitch/libs/v8-3.24.14 && CFLAGS=""
> CXXFLAGS="" \
>
> LINK=g++ CXX=g++ GYPFLAGS="" GYP_DEFINES="$defines" \
>
> OUTDIR=/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out \
>
> PYTHONPATH="/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/build/gyp/pylib:"
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C
> /Users/lazzarello/src/freeswitch/libs/v8-3.24.14 snapshot=off
> i18nsupport=off library=shared native
>
> PYTHONPATH="/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/tools/generate_shim_headers:/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/build/gyp/pylib:"
> \
>
> GYP_GENERATORS=make \
>
> build/gyp/gyp
> --generator-output="/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out"
> build/all.gyp \
>
>               -Ibuild/standalone.gypi --depth=. -S.native
>  -Dcomponent=shared_library -Dv8_enable_backtrace=1
> -Dv8_use_snapshot='false' -Dv8_enable_i18n_support=0 -Darm_fpu=default
> -Darm_float_abi=default
>
>   CXX(target)
> /Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out/native/obj.target/v8_base.x64/src/accessors.o
>
> In file included from ../src/accessors.cc:28:
>
> In file included from ../src/v8.h:62:
>
> In file included from ../src/objects-inl.h:38:
>
> In file included from ../src/elements.h:33:
>
> In file included from ../src/heap.h:36:
>
> In file included from ../src/incremental-marking.h:33:
>
> In file included from ../src/mark-compact.h:32:
>
> ../src/spaces.h:925:26: error: 'this' pointer cannot be null in
> well-defined C++ code; comparison may be
>
>       assumed to always evaluate to true
> [-Werror,-Wtautological-undefined-compare]
>
>   bool exists() { return this != NULL && code_range_ != NULL; }
>
>                          ^~~~    ~~~~
>
> ../src/spaces.h:927:9: error: 'this' pointer cannot be null in
> well-defined C++ code; comparison may be
>
>       assumed to always evaluate to false
> [-Werror,-Wtautological-undefined-compare]
>
>     if (this == NULL || code_range_ == NULL) return NULL;
>
>         ^~~~    ~~~~
>
> ../src/spaces.h:931:9: error: 'this' pointer cannot be null in
> well-defined C++ code; comparison may be
>
>       assumed to always evaluate to false
> [-Werror,-Wtautological-undefined-compare]
>
>     if (this == NULL || code_range_ == NULL) return false;
>
>         ^~~~    ~~~~
>
> 3 errors generated.
>
> make[5]: ***
> [/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out/native/obj.target/v8_base.x64/src/accessors.o]
> Error 1
>
> make[4]: *** [native] Error 2
>
> make[3]: ***
> [/Users/lazzarello/src/freeswitch/libs/v8-3.24.14/out/native/libv8.dylib]
> Error 2
>
> make[2]: *** [mod_v8-all] Error 1
>
> make[1]: *** [mod_v8] Error 2
>
> make: *** [mod_v8] Error 2
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151214/5cb81197/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list