Arch Linux gcc 7.1.1 update


#1

It looks like gcc 7.1.1 update broke something in OF, I cannot build anymore any project. I get this error. There’s an issue with nlohmann’s json.hpp in conjuction with gcc 7.1.1 it seems: https://github.com/nlohmann/json/issues/590

/home/thinkpad2000/Downloads/of_v20170517_linux64_release/libs/json/include/json.hpp:5002:62: error: wrong number of template arguments (1, should be 2)
                   return *lhs.m_value.array < *rhs.m_value.array;
                                                            ^~~~~
In file included from /usr/include/c++/7.1.1/tuple:39:0,
               from /usr/include/c++/7.1.1/bits/unique_ptr.h:37,
               from /usr/include/c++/7.1.1/bits/locale_conv.h:41,
               from /usr/include/c++/7.1.1/locale:43,
               from /usr/include/c++/7.1.1/iomanip:43
...

So it looks like that update brought in a incompability between the new tuple and json.hpp… can anyone confirm this? And does anyone know about a possible fix?


#2

I get this error with compilePG.sh (compileOF.sh works fine).

Your link @alberto2000 includes now a solution.


#4

this is now fixed in latest master (and re-running download_libs.sh)