For AMD64 and IA32 builds, I get a warning from GCC about a potential signed overflow, which, due to the -Werror option, is treated like an error and aborts the build. See below for the complete error message.
I can build just fine by disabling treatment of the warning as an error with the -Wno-error=strict-overflow argument in out/Release??/obj/src/double_conversion.ninja and the same file in out/Release??/obj.host/src/
ninja: Entering directory `out/ReleaseX64'
[88/347] CXX obj/third_party/double-conversion/src/double_conversion.bignum.o
FAILED: obj/third_party/double-conversion/src/double_conversion.bignum.o
../../tools/cxx_wrapper.py -MMD -MF obj/third_party/double-conversion/src/double_conversion.bignum.o.d -DDARTINO_ENABLE_LIVE_CODING -DDARTINO_ENABLE_DEBUGGING -DDARTINO_ENABLE_FFI -DDARTINO_ENABLE_NATIVE_PROCESSES -DDARTINO_ENABLE_PRINT_INTERCEPTORS -DDARTINO_TARGET_OS_LINUX -DDARTINO_TARGET_OS_POSIX -DNDEBUG -DDARTINO64 -DDARTINO_TARGET_X64 -I../../.. -O3 -fomit-frame-pointer -fno-strict-aliasing -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-format -Wno-comment -Wno-non-virtual-dtor -Werror -std=c++11 -fdata-sections -ffunction-sections -fvisibility=hidden -Wno-invalid-offsetof -fno-rtti -fno-exceptions -c ../../third_party/double-conversion/src/bignum.cc -o obj/third_party/double-conversion/src/double_conversion.bignum.o
../../third_party/double-conversion/src/bignum.cc: In member function ‘void double_conversion::Bignum::AssignDecimalString(double_conversion::Vector<const char>)’:
../../third_party/double-conversion/src/bignum.cc:102:6: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
void Bignum::AssignDecimalString(Vector<const char> value) {
^
cc1plus: all warnings being treated as errors
[89/347] CXX obj.host/third_party/doub...version/src/double_conversion.bignum.o
FAILED: obj.host/third_party/double-conversion/src/double_conversion.bignum.o
../../tools/cxx_wrapper.py -MMD -MF obj.host/third_party/double-conversion/src/double_conversion.bignum.o.d -DDARTINO_ENABLE_LIVE_CODING -DDARTINO_ENABLE_DEBUGGING -DDARTINO_ENABLE_FFI -DDARTINO_ENABLE_NATIVE_PROCESSES -DDARTINO_ENABLE_PRINT_INTERCEPTORS -DDARTINO_TARGET_OS_LINUX -DDARTINO_TARGET_OS_POSIX -DNDEBUG -DDARTINO64 -DDARTINO_TARGET_X64 -I../../.. -O3 -fomit-frame-pointer -fno-strict-aliasing -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-format -Wno-comment -Wno-non-virtual-dtor -Werror -std=c++11 -fdata-sections -ffunction-sections -fvisibility=hidden -Wno-invalid-offsetof -fno-rtti -fno-exceptions -c ../../third_party/double-conversion/src/bignum.cc -o obj.host/third_party/double-conversion/src/double_conversion.bignum.o
../../third_party/double-conversion/src/bignum.cc: In member function ‘void double_conversion::Bignum::AssignDecimalString(double_conversion::Vector<const char>)’:
../../third_party/double-conversion/src/bignum.cc:102:6: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
void Bignum::AssignDecimalString(Vector<const char> value) {
^
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
Steps to setup a Dartino SDK development environment for the STM Discovery:
P.S. g++-multilib should be added as a prerequisite at the Building wiki page.
--
You received this message because you are subscribed to the Google Groups "Dartino Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartino-discu...@googlegroups.com.
To post to this group, send email to dartino...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartino-discuss/a10b1b6e-00aa-45f4-8673-52879e167cd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartino-discuss/CAOmX%2ByPWgt4CdmkbOUwv4mQZKkYXZ1bJ8XiZQExD5-dvEZG8%2Bg%40mail.gmail.com.