ossia / libossia

A modern C++, cross-environment distributed object model for creative coding and interaction scoring
https://ossia.io
GNU Lesser General Public License v3.0
206 stars 34 forks source link

build fails with gcc 6.2 #119

Closed avilleret closed 7 years ago

avilleret commented 7 years ago

I got the following error :

18:47:17: Exécution des étapes pour le projet OSSIA...
18:47:17: Débute : "/usr/bin/cmake" --build . --target all -- -j2
[1/13 0.0/sec] Building CXX object OSSIA/CMakeFiles/ossia.dir/ossia/dataflow/graph.cpp.o
FAILED: OSSIA/CMakeFiles/ossia.dir/ossia/dataflow/graph.cpp.o 
/usr/bin/g++   -DASIO_STANDALONE=1 -DBOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE -DFMT_HEADER_ONLY=1 -DRAPIDJSON_HAS_STDSTRING=1 -DSERVUS_USE_AVAHI_CLIENT -DTINYSPLINE_DOUBLE_PRECISION -Dossia_EXPORTS -IOSSIA -I/home/antoine/lib-src/OSSIA/i-score/API/OSSIA -isystem /home/antoine/lib-src/OSSIA/i-score/API/3rdparty/readerwriterqueue -isystem /home/antoine/lib-src/OSSIA/i-score/API/3rdparty/asio/asio/include -isystem /home/antoine/lib-src/OSSIA/i-score/API/3rdparty/websocketpp -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/Servus -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/variant/include -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/nano-signal-slot/include -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/spdlog/include -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/brigand/include -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/fmt -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/hopscotch-map/src -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/chobo-shl/include -I/home/antoine/lib-src/OSSIA/i-score/API/3rdparty/GSL/include -isystem /home/antoine/lib-src/OSSIA/i-score/API/3rdparty/rapidjson/include -isystem /home/antoine/lib-src/OSSIA/i-score/API/3rdparty/ModernMIDI -isystem /home/antoine/lib-src/OSSIA/i-score/API/3rdparty/ModernMIDI/third_party -isystem /home/antoine/lib-src/OSSIA/i-score/API/3rdparty/oscpack -I3rdparty/ModernMIDI -std=c++14  -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++1z -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -Wno-missing-braces -Wnon-virtual-dtor -pedantic -Wunused -Woverloaded-virtual -pipe -Werror=return-type -Werror=trigraphs -Wmissing-field-initializers -fvar-tracking-assignments -Wa,--compress-debug-sections -Wl,--compress-debug-sections=zlib -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wmisleading-indentation -Winvalid-pch -include /home/antoine/lib-src/OSSIA/i-score/build-API-Desktop_Qt_5_8_0_GCC_64bit-Debug/OSSIA/cotire/ossia_CXX_prefix.hxx -std=gnu++14 -MMD -MT OSSIA/CMakeFiles/ossia.dir/ossia/dataflow/graph.cpp.o -MF OSSIA/CMakeFiles/ossia.dir/ossia/dataflow/graph.cpp.o.d -o OSSIA/CMakeFiles/ossia.dir/ossia/dataflow/graph.cpp.o -c /home/antoine/lib-src/OSSIA/i-score/API/OSSIA/ossia/dataflow/graph.cpp
/home/antoine/lib-src/OSSIA/i-score/API/OSSIA/ossia/dataflow/graph.cpp: In static member function ‘static void ossia::graph::pull_from_address(ossia::inlet&, ossia::execution_state&)’:
/home/antoine/lib-src/OSSIA/i-score/API/OSSIA/ossia/dataflow/graph.cpp:492:17: warning: unused variable ‘pattern’ [-Wunused-variable]
   else if (auto pattern = in.address.target<std::string>())
                 ^~~~~~~
/home/antoine/lib-src/OSSIA/i-score/API/OSSIA/ossia/dataflow/graph.cpp: In lambda function:
/home/antoine/lib-src/OSSIA/i-score/API/OSSIA/ossia/dataflow/graph.cpp:334:9: internal compiler error: Erreur de segmentation
         init_node(first_node, e);
         ^~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
ninja: build stopped: subcommand failed.
18:47:32: Le processus "/usr/bin/cmake" s'est terminé avec le code 1.
Erreur lors de la compilation/déploiement du projet OSSIA (kit : Desktop Qt 5.8.0 GCC 64bit)
When executing step "Make"

which is really really weird...

Switching to GCC 7.1 works I'm on 612b76d and it used to work few days ago...

jcelerier commented 7 years ago

just pushed a test to fix this on master, could you try ?

avilleret commented 7 years ago

yes ! it builds