FlightGear Next Failing to Build, seg faulting the compiler.
From https://gitlab.com/flightgear/simgear
8febf6b9..e002a481 next -> origin/next
Updating 8febf6b9..e002a481
From https://gitlab.com/flightgear/flightgear
199adf90d..ee12883eb next -> origin/next
Updating 199adf90d..ee12883eb
[ 54%] Building CXX object CMakeFiles/fgfsObjects.dir/src/GUI/MouseCursor.cxx.o
[ 54%] Building CXX object CMakeFiles/fgfsObjects.dir/src/GUI/MessageBox.cxx.o
In file included from /home/reglnx/FGDC/Sources/FG/src/GUI/FileDialog.cxx:27:
/home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx: In substitution of ‘template<class _Result, class _Func, class ... _BoundArgs> typename std::_Bindres_helper<_Result, _Func, _BoundArgs>::type std::bind(_Func&&, _BoundArgs&& ...) [with _Result = <missing>; _Func = <missing>; _BoundArgs = <missing>]’:
/home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:773:38: required from ‘nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>& nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method(const string&, const std::function<Ret(typename T::element_type&, const nasal::CallContext&)>&) [with Ret = void; T = std::shared_ptr<FGFileDialog>; typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type = void; std::string = std::__cxx11::basic_string<char>; typename T::element_type = FGFileDialog]’
/home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:813:22: required from ‘nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>& nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::method(const string&, Ret (element_type::*)(Args ...)) [with Ret = void; Args = {const nasal::CallContext&}; T = std::shared_ptr<FGFileDialog>; typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type = void; std::string = std::__cxx11::basic_string<char>; typename T::element_type = FGFileDialog; nasal::Ghost<T, typename std::enable_if<nasal::is_strong_ref<T>::value, void>::type>::raw_type = FGFileDialog]’
/home/reglnx/FGDC/Sources/FG/src/GUI/FileDialog.cxx:168:63: required from here
/home/reglnx/FGDC/FlightGear-Next/include/simgear/nasal/cppbind/Ghost.hxx:773:38: internal compiler error: Segmentation fault
773 | return method(name, std::bind(method_invoker<Ret>,
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
774 | func,
| ~~~~~
775 | std::placeholders::_1,
| ~~~~~~~~~~~~~~~~~~~~~~
776 | std::placeholders::_2));
| ~~~~~~~~~~~~~~~~~~~~~~
0x7f62b6f84d5f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f62b6f6fd09 __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/fgfsObjects.dir/build.make:1460: CMakeFiles/fgfsObjects.dir/src/GUI/FileDialog.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1946: CMakeFiles/fgfsObjects.dir/all] Error 2
make: *** [Makefile:182: all] Error 2
Hi there,
"internal compiler error" would suggest the compiler is faulty, and a compiler upgrade could fix it.
But from past experience, it could also be memory related, you could try a
to force using only one thread to minimize memory usage. It might also be some hardware memory issue, compiling is doing a good job in stressing memory :)
Good luck!
Good point, it's worth running a memory tester to check this, since non-repeatable or inconsistent compiler errors do occasionaly indicate an unreliable system.
As this report was issued two years ago and may have been an unreliable system, I'll close it. Please report back if you can still reproduce it with current next.