Compiling Matplot++ on a Raspberry Pi Zero 2 W Running Raspbian OS Lite (64-bit) #331
Unanswered
embsysblog
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried compiling Matplot++ on Raspberry Pi Zero 2 W Running Raspbian OS Lite (64-bit). But was unsuccessful.
I'm running the latest version of the Raspbian OS:
Release date: September 22nd 2022
System: 64-bit
Kernel version: 5.15
Debian version: 11 (bullseye)
I have the following software installed:
I get the following output when building:
me@rpiz2w:/Development/matplotplusplus/build $ cmake --build . --parallel 2 --config Release
[ 13%] Built target nodesoup
[ 18%] Building CXX object source/matplot/CMakeFiles/matplot.dir/core/axes_type.cpp.o
[ 18%] Building CXX object source/matplot/CMakeFiles/matplot.dir/backend/gnuplot.cpp.o
/home/halherta/Development/matplotplusplus/source/matplot/core/axes_type.cpp: In member function ‘std::pair<float, float> matplot::axes_type::view() const’:
/home/halherta/Development/matplotplusplus/source/matplot/core/axes_type.cpp:1879:47: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
1879 | std::pair<float, float> axes_type::view() const {
| ^~~~~
/home/halherta/Development/matplotplusplus/source/matplot/core/axes_type.cpp: In member function ‘const std::pair<double, double> matplot::axes_type::color_box_range() const’:
/home/halherta/Development/matplotplusplus/source/matplot/core/axes_type.cpp:1998:66: note: parameter passing for argument of type ‘std::pair<double, double>’ when C++17 is enabled changed to match C++14 in GCC 10.1
1998 | const std::pair<double, double> axes_type::color_box_range() const {
| ^~~~~
In file included from /usr/include/c++/10/utility:70,
from /usr/include/c++/10/algorithm:60,
from /home/halherta/Development/matplotplusplus/source/matplot/core/axes_type.cpp:5:
/usr/include/c++/10/bits/stl_pair.h: In instantiation of ‘constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = const float&; _T2 = const float&; typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type = float; typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type = float]’:
/home/halherta/Development/matplotplusplus/source/matplot/core/axes_type.cpp:1880:51: required from here
/usr/include/c++/10/bits/stl_pair.h:567:5: note: parameter passing for argument of type ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC 10.1
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
/home/halherta/Development/matplotplusplus/source/matplot/core/axes_type.cpp:1998:37: note: parameter passing for argument of type ‘std::pair<double, double>’ when C++17 is enabled changed to match C++14 in GCC 10.1
1998 | const std::pair<double, double> axes_type::color_box_range() const {
| ^~~~~~~~~
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gmake[2]: *** [source/matplot/CMakeFiles/matplot.dir/build.make:121: source/matplot/CMakeFiles/matplot.dir/core/axes_type.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:179: source/matplot/CMakeFiles/matplot.dir/all] Error 2
gmake: *** [Makefile:171: all] Error 2
The build process hanged for an hour or so before failing. It looks like the G++ compiler has some issue with C++17 support which is weird because I thought that G++ version 10 already had C++17 support but I could be wrong.
Perhaps there's some ARM related bug in G++ version 10? Any help with this matter is appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions