Board index FlightGear Support Compiling

Here we go again with simgear and boost

Building FlightGear from source, and in the need for help?

Here we go again with simgear and boost

Postby Lenard Spencer » Tue May 12, 2020 7:06 pm

It seems when we think we have the answer to a problem, the boost devs change the questions.
It has happened again with boost 1.73. It seems to puke on seeing simgear version 2020.1.1 (did it on 2018.3.5 as well). Here is the log snippet:
Code: Select all

[ 26%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/math/leastsqs.cxx.o
[ 27%] Building C object simgear/CMakeFiles/SimGearCore.dir/math/sg_random.c.o
[ 27%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/CSSBorder.cxx.o
In file included from /usr/include/boost/config/detail/select_stdlib_config.hpp:24,
                 from /usr/include/boost/config.hpp:44,
                 from /usr/include/boost/static_assert.hpp:17,
                 from /usr/include/boost/iterator/iterator_adaptor.hpp:10,
                 from /usr/include/boost/token_iterator.hpp:22,
                 from /usr/include/boost/tokenizer.hpp:20,
                 from /tmp/SBo/simgear-2020.1.1/simgear/misc/CSSBorder.cxx:21:
/tmp/SBo/simgear-2020.1.1/version:1:1: error: too many decimal points in number
    1 | 2020.1.1
      | ^~~~~~~~
In file included from /usr/include/boost/config/detail/select_stdlib_config.hpp:24,
                 from /usr/include/boost/config.hpp:44,
                 from /usr/include/boost/static_assert.hpp:17,
                 from /usr/include/boost/iterator/iterator_adaptor.hpp:10,
                 from /usr/include/boost/token_iterator.hpp:22,
                 from /usr/include/boost/tokenizer.hpp:20,
                 from /tmp/SBo/simgear-2020.1.1/simgear/misc/CSSBorder.cxx:21:
/tmp/SBo/simgear-2020.1.1/version:1:1: error: expected unqualified-id before numeric constant
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/build.make:1123: simgear/CMakeFiles/SimGearCore.dir/misc/CSSBorder.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1005: simgear/CMakeFiles/SimGearCore.dir/all] Error 2
make: *** [Makefile:172: all] Error 2

Any ideas?
Lenard Spencer
 
Posts: 7
Joined: Mon Dec 23, 2013 1:36 am

Re: Here we go again with simgear and boost

Postby wkitty42 » Tue May 12, 2020 11:41 pm

i'd back out boost versions until it works and then stay there...

also note that boost is being slowly removed as C++xx (where xx is different numbers) is being more and more applied...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Here we go again with simgear and boost

Postby Alant » Wed May 13, 2020 12:35 am

Yes.
I had similar problems with Boost 1.73.
Boost 1-72 (used by Jenkins and fg-from-scratch ) is OK.
Alan
Alant
 
Posts: 1219
Joined: Wed Jun 23, 2010 6:58 am
Location: Portugal
Callsign: Tarnish99
Version: latest Git
OS: Windows 10/11

Re: Here we go again with simgear and boost

Postby Lenard Spencer » Wed May 13, 2020 3:22 pm

That was my fix here on my computer, downgrade boost to 1.72, build SimGear and FlightGear, then upgrade boost back to 1.73. At least it still runs afterward. But I also maintain the build scripts for these on Slackbuilds.org, and eventually there needs to be a fix.
I can't wait to see boost given the heave-ho once and for all...
Lenard Spencer
 
Posts: 7
Joined: Mon Dec 23, 2013 1:36 am

Re: Here we go again with simgear and boost

Postby mrozigor » Thu May 14, 2020 7:57 am

You can locally change 'version' file name to f.e. 'version2' and also change proper entry in CMakeLists.txt (as I wrote here -> https://bugs.gentoo.org/722008#c8).
mrozigor
 
Posts: 6
Joined: Tue Mar 26, 2019 5:53 pm


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests