Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g++ make check results in error #312

Closed
whackashoe opened this issue Sep 15, 2016 · 10 comments
Closed

g++ make check results in error #312

whackashoe opened this issue Sep 15, 2016 · 10 comments
Labels
solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope) state: help needed the issue needs help to proceed

Comments

@whackashoe
Copy link
Contributor

$ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.9.3-8ubuntu2~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.3 (Ubuntu 4.9.3-8ubuntu2~14.04)

$ make check
make[1]: Entering directory `/home/whackashoe/code/nlohmann-json/test'
[CXX]   src/unit.o
[CXX]   src/unit-algorithms.o
[CXX]   src/unit-allocator.o
[CXX]   src/unit-capacity.o
[CXX]   src/unit-class_const_iterator.o
[CXX]   src/unit-class_iterator.o
[CXX]   src/unit-class_lexer.o
[CXX]   src/unit-class_parser.o
src/unit-class_parser.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____37()’:
src/unit-class_parser.cpp:148:206: error: expression cannot be used as a function
                 CHECK(json::parser("\"\\/\"").parse() == R"("/")"_json);
                                                                                                                                                                                                              ^
make[1]: *** [src/unit-class_parser.o] Error 1

Even if I comment this out, I still get more errors:

$ make check
make[1]: Entering directory `/home/whackashoe/code/nlohmann-json/test'
[CXX]   src/unit-class_parser.o
[CXX]   src/unit-comparison.o
[CXX]   src/unit-concepts.o
[CXX]   src/unit-constructor1.o
src/unit-constructor1.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____42()’:
src/unit-constructor1.cpp:1282:22: warning: ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::basic_json(std::istream&, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::parser_callback_t) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; std::istream = std::basic_istream<char>; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::parser_callback_t = std::function<bool(int, nlohmann::basic_json<>::parse_event_t, nlohmann::basic_json<>&)>]’ is deprecated (declared at ../src/json.hpp:1945) [-Wdeprecated-declarations]
             json j(ss);
                      ^
src/unit-constructor1.cpp:1301:14: warning: ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::basic_json(std::istream&, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::parser_callback_t) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; std::istream = std::basic_istream<char>; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::parser_callback_t = std::function<bool(int, nlohmann::basic_json<>::parse_event_t, nlohmann::basic_json<>&)>]’ is deprecated (declared at ../src/json.hpp:1945) [-Wdeprecated-declarations]
             });
              ^
src/unit-constructor1.cpp:1308:21: warning: ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::basic_json(std::istream&, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::parser_callback_t) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; std::istream = std::basic_istream<char>; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::parser_callback_t = std::function<bool(int, nlohmann::basic_json<>::parse_event_t, nlohmann::basic_json<>&)>]’ is deprecated (declared at ../src/json.hpp:1945) [-Wdeprecated-declarations]
             json j(f);
                     ^
[CXX]   src/unit-constructor2.o
[CXX]   src/unit-convenience.o
[CXX]   src/unit-conversions.o
[CXX]   src/unit-deserialization.o
src/unit-deserialization.cpp:82:13: error: stray ‘\’ in program
             CHECK("[\"foo\",1,2,3,false,{\"one\":1}]"_json == json({"foo", 1, 2, 3, false, {{"one", 1}}}));
             ^
src/unit-deserialization.cpp:82:13: error: stray ‘\’ in program
src/unit-deserialization.cpp:123:13: error: stray ‘\’ in program
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
             ^
src/unit-deserialization.cpp:123:13: error: stray ‘\’ in program
src/unit-deserialization.cpp:124:13: error: stray ‘\’ in program
             CHECK_THROWS_WITH("[\"foo\",1,2,3,false,{\"one\":1}"_json,
             ^
src/unit-deserialization.cpp:124:13: error: stray ‘\’ in program
src/unit-deserialization.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____36()’:
src/unit-deserialization.cpp:82:203: error: expected primary-expression before ‘(’ token
             CHECK("[\"foo\",1,2,3,false,{\"one\":1}]"_json == json({"foo", 1, 2, 3, false, {{"one", 1}}}));
                                                                                                                                                                                                           ^
src/unit-deserialization.cpp:82:293: error: expected ‘}’ before ‘)’ token
             CHECK("[\"foo\",1,2,3,false,{\"one\":1}]"_json == json({"foo", 1, 2, 3, false, {{"one", 1}}}));
                                                                                                                                                                                                                                                                                                     ^
src/unit-deserialization.cpp:82:294: error: expected ‘]’ before ‘;’ token
             CHECK("[\"foo\",1,2,3,false,{\"one\":1}]"_json == json({"foo", 1, 2, 3, false, {{"one", 1}}}));
                                                                                                                                                                                                                                                                                                      ^
src/unit-deserialization.cpp:123:334: error: expected ‘]’ before ‘;’ token
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                              ^
src/unit-deserialization.cpp:123:296: error: ambiguous overload for ‘operator[]’ (operand types are ‘nlohmann::json {aka nlohmann::basic_json<>}’ and ‘nlohmann::json {aka nlohmann::basic_json<>}’)
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                        ^
src/unit-deserialization.cpp:123:296: note: candidates are:
In file included from src/unit-deserialization.cpp:31:0:
../src/json.hpp:3330:15: note: nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type& nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::operator[](nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::size_type) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::reference = nlohmann::basic_json<>&; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type = nlohmann::basic_json<>; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::size_type = long unsigned int]
     reference operator[](size_type idx)
               ^
In file included from src/unit-deserialization.cpp:31:0:
../src/json.hpp:3378:21: note: const value_type& nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::operator[](nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::size_type) const [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::const_reference = const nlohmann::basic_json<>&; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type = nlohmann::basic_json<>; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::size_type = long unsigned int]
     const_reference operator[](size_type idx) const
                     ^
In file included from src/unit-deserialization.cpp:31:0:
../src/json.hpp:3418:15: note: nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type& nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::operator[](const typename nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::object_t::key_type&) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::reference = nlohmann::basic_json<>&; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type = nlohmann::basic_json<>; typename nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::object_t::key_type = std::basic_string<char>]
     reference operator[](const typename object_t::key_type& key)
               ^
In file included from src/unit-deserialization.cpp:31:0:
../src/json.hpp:3469:21: note: const value_type& nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::operator[](const typename nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::object_t::key_type&) const [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::const_reference = const nlohmann::basic_json<>&; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type = nlohmann::basic_json<>; typename nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::object_t::key_type = std::basic_string<char>]
     const_reference operator[](const typename object_t::key_type& key) const
                     ^
In file included from src/unit-deserialization.cpp:31:0:
../src/json.hpp:9879:15: note: nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type& nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::operator[](const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::json_pointer&) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::reference = nlohmann::basic_json<>&; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type = nlohmann::basic_json<>]
     reference operator[](const json_pointer& ptr)
               ^
In file included from src/unit-deserialization.cpp:31:0:
../src/json.hpp:9906:21: note: const value_type& nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::operator[](const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::json_pointer&) const [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::const_reference = const nlohmann::basic_json<>&; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType>::value_type = nlohmann::basic_json<>]
     const_reference operator[](const json_pointer& ptr) const
                     ^
src/unit-deserialization.cpp:123:334: error: expected ‘]’ before ‘;’ token
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                              ^
src/unit-deserialization.cpp:123:413: error: expected ‘while’ before ‘(’ token
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                             ^
src/unit-deserialization.cpp:123:437: error: expected primary-expression before ‘)’ token
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
src/unit-deserialization.cpp:123:439: error: expected ‘;’ before ‘{’ token
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
src/unit-deserialization.cpp:123:441: error: ‘__catchResult’ was not declared in this scope
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
src/unit-deserialization.cpp:123:496: error: expected primary-expression before ‘catch’
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
src/unit-deserialization.cpp:123:594: error: expected ‘}’ before ‘else’
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
src/unit-deserialization.cpp:123:599: error: ‘__catchResult’ was not declared in this scope
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
src/unit-deserialization.cpp:123:656: error: ‘__catchResult’ was not declared in this scope
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
src/unit-deserialization.cpp:123:713: error: ‘__catchResult’ was not declared in this scope
             CHECK_THROWS_AS("[\"foo\",1,2,3,false,{\"one\":1}"_json, std::invalid_argument);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
src/unit-deserialization.cpp:124:164: error: expected ‘]’ before ‘)’ token
             CHECK_THROWS_WITH("[\"foo\",1,2,3,false,{\"one\":1}"_json,
                                                                                                                                                                    ^
src/unit-deserialization.cpp:124:20: error: no match for ‘operator[]’ (operand types are ‘const char [1]’ and ‘nlohmann::json {aka nlohmann::basic_json<>}’)
             CHECK_THROWS_WITH("[\"foo\",1,2,3,false,{\"one\":1}"_json,
                    ^
src/unit-deserialization.cpp: At global scope:
src/unit-deserialization.cpp:127:5: error: expected declaration before ‘}’ token
     }
     ^
make[1]: *** [src/unit-deserialization.o] Error 1

Using CXX=clang++ make check works fine.

@nlohmann
Copy link
Owner

It seems that all errors are related to the user-defined string literal _json which should be supported by GCC 4.9 and in fact Travis runs a GCC 4.9, see https://travis-ci.org/nlohmann/json/jobs/160010551.

Can you make sure that make check does use the right compiler? Try removing the @ from the Makefile to see which compiler is actually called.

@whackashoe
Copy link
Contributor Author

Yeah it is using 4.9. Calling 4.9 directly results in same problem.

$ g++-4.9 -std=c++11 -Wall -Wextra -pedantic -Weffc++ -Wcast-align -Wcast-qual -Wno-ctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch -Wundef -Wno-unused -Wnon-virtual-dtor -Wreorder -Wdeprecated -Wno-float-equal -I ../src -I . -c src/unit-class_parser.cpp -o src/unit-class_parser.o
src/unit-class_parser.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____37()’:
src/unit-class_parser.cpp:148:206: error: expression cannot be used as a function
                 CHECK(json::parser("\"\\/\"").parse() == R"("/")"_json);

@whackashoe
Copy link
Contributor Author

Upgraded to 4.9.4 from 4.9.3 yet problem still occurring.

$ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.9.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.4 (Ubuntu 4.9.4-2ubuntu1~14.04.1)

@nlohmann
Copy link
Owner

nlohmann commented Oct 6, 2016

I'm still clueless about this, because the Linux builds succeed at Travis.

@nlohmann nlohmann added the state: help needed the issue needs help to proceed label Oct 6, 2016
@whackashoe
Copy link
Contributor Author

whackashoe commented Oct 11, 2016

I decided to spin up a fresh ubuntu server vm (14.04.4) using ppa:ubuntu-toolchain-r/test for g++ 4.9. I was not able to reproduce this issue. Additionally:

$ sha256sum /usr/bin/g++-4.9
d0a85ff2ff5dfc3a3e6cb44dbf49ae2f1658f98d1e5c00ad126bca88364ce82a  /usr/bin/g++-4.9

This result is the same both on my normal computer as well as vm.

@nlohmann
Copy link
Owner

So the code now compiles without error and the test cases succeed?

@whackashoe
Copy link
Contributor Author

No. It still fails with same issue on my main computer. On a vm I created to test this on ubuntu 14.04 make check works.

@nlohmann
Copy link
Owner

nlohmann commented Nov 2, 2016

I fear I have to label this as "won't fix"...

@whackashoe
Copy link
Contributor Author

Heh well um yeah it's a bit of a mystery. That's fine- if I figure it out will update issue.

@nlohmann
Copy link
Owner

nlohmann commented Nov 2, 2016

Thanks!

@nlohmann nlohmann added the solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope) label Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope) state: help needed the issue needs help to proceed
Projects
None yet
Development

No branches or pull requests

2 participants