I have recently encountered a problem in building the fg. Simgear builds OK, but attempting to build the fg produces a long list of DWARF errors and the following:
- Code: Select all
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: DWARF error: could not find variable specification at offset 2c721
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: DWARF error: could not find variable specification at offset 2c72c
CMakeFiles/fgelev.dir/fgelev.cxx.o: in function `main':
/usr/local/src/flightgear/fg_src/utils/fgelev/fgelev.cxx:189: undefined reference to `logstream::would_log(sgDebugClass, sgDebugPriority) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/src/flightgear/fg_src/utils/fgelev/fgelev.cxx:189: undefined reference to `logstream::log(sgDebugClass, sgDebugPriority, char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/src/flightgear/fg_src/utils/fgelev/fgelev.cxx:133: undefined reference to `logstream::would_log(sgDebugClass, sgDebugPriority) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/src/flightgear/fg_src/utils/fgelev/fgelev.cxx:133: undefined reference to `logstream::log(sgDebugClass, sgDebugPriority, char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/src/flightgear/fg_src/utils/fgelev/fgelev.cxx:151: undefined reference to `logstream::would_log(sgDebugClass, sgDebugPriority) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/src/flightgear/fg_src/utils/fgelev/fgelev.cxx:151: undefined reference to `logstream::log(sgDebugClass, sgDebugPriority, char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [utils/fgelev/CMakeFiles/fgelev.dir/build.make:120: utils/fgelev/fgelev] Error 1
make[1]: *** [CMakeFiles/Makefile2:2157: utils/fgelev/CMakeFiles/fgelev.dir/all] Error 2
make: *** [Makefile:180: all] Error 2
I would be grateful for any ideas. I have been successfully building the fg from the sources for years, so something has changed fairly recently.