Board index FlightGear Support Installation Linux

Problem with d&c under Debian GNU/Linux 11 Bullseye

Installing FlightGear, scenery, aircraft etc. on Linux systems like Ubuntu.

Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby WoodSTokk » Sun Nov 28, 2021 9:19 pm

I updated my Debian to Bullseye (11) and want recompile Flightgear with download_and_compile.sh, but have a error.
Code: Select all
Scanning dependencies of target SimGearScene
[ 41%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shArrays.c.o
[ 41%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shContext.c.o
[ 42%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shExtensions.c.o
[ 42%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shGeometry.c.o
[ 42%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shImage.c.o
[ 42%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shPaint.c.o
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shParams.c.o
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shPath.c.o
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shPipeline.c.o
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shVectors.c.o
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shVgu.c.o
[ 44%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasElement.cxx.o
[ 44%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasGroup.cxx.o
[ 44%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasImage.cxx.o
[ 44%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasMap.cxx.o
[ 45%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasPath.cxx.o
In file included from /home/woodstokk/flightgear-next/simgear/simgear/canvas/elements/CanvasPath.hxx:23,
                 from /home/woodstokk/flightgear-next/simgear/simgear/canvas/elements/CanvasPath.cxx:22:
/home/woodstokk/flightgear-next/simgear/simgear/canvas/elements/CanvasElement.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/woodstokk/flightgear-next/simgear/simgear/canvas/elements/CanvasElement.hxx:552:35:   required from ‘static simgear::canvas::Element::StyleSetterFuncUnchecked simgear::canvas::Element::bindStyleSetter(const string&, const std::function<void(Derived&, T2)>&) [with T1 = float; T2 = float; Derived = simgear::canvas::Path; simgear::canvas::Element::StyleSetterFuncUnchecked = std::function<void(simgear::canvas::Element&, const SGPropertyNode*)>; std::string = std::__cxx11::basic_string<char>]’
/home/woodstokk/flightgear-next/simgear/simgear/canvas/elements/CanvasElement.hxx:348:52:   required from ‘static simgear::canvas::Element::StyleSetter simgear::canvas::Element::addStyle(const string&, const string&, const std::function<void(Derived&, T2)>&, bool) [with T1 = float; T2 = float; Derived = simgear::canvas::Path; std::string = std::__cxx11::basic_string<char>]’
/home/woodstokk/flightgear-next/simgear/simgear/canvas/elements/CanvasElement.hxx:441:9:   required from ‘static simgear::canvas::Element::StyleSetter simgear::canvas::Element::addStyle(const string&, const string&, void (Other::*)(T), OtherRef Derived::*, bool) [with T = float; Derived = simgear::canvas::Path; Other = simgear::canvas::Path::PathDrawable; OtherRef = osg::ref_ptr<simgear::canvas::Path::PathDrawable>; std::string = std::__cxx11::basic_string<char>]’
/home/woodstokk/flightgear-next/simgear/simgear/canvas/elements/CanvasPath.cxx:688:76:   required from here
/home/woodstokk/flightgear-next/simgear/simgear/canvas/elements/CanvasElement.hxx:552:35: internal compiler error: Speicherzugriffsfehler
  552 |                          std::bind(&getValue<T1>, std::placeholders::_2));
      |                          ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Does everybody know whats wrong or missing here?
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby wkitty42 » Mon Nov 29, 2021 12:01 am

have you cleared out the cache and tried a clean build? you should be able to remove/rename the dnc-managed/build directory... when you run dnc the next time, it will recreate it and do its thing... you might also want to let dnc do the update thing so it can be sure you have all the needed libraries and tools installed...

FWIW: i always run dnc so it reconfigures every time... just to be sure... but i have had to clear the build directory a time or three, too...
"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: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby WoodSTokk » Mon Nov 29, 2021 12:18 am

Yes, because i had problems in the past. So i do allways start with --cleanup.
Code: Select all
./download_and_compile.sh -an -pn -b Release --cleanup --git-clone-default-proto=git ALL

At the start all dependencies will be checked and are okay, so no missing lib.
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby saiarcot895 » Mon Nov 29, 2021 2:04 am

The error message says that the compiler itself hit some error, with something about a memory access failure. Do you have enough free memory? Are you building for amd64?
Saikrishna Arcot

My FlightGear PPAs: FlightGear Stable, FlightGear Development (Edge)
saiarcot895
 
Posts: 343
Joined: Sat Feb 02, 2013 5:26 pm
Callsign: flyhigh
Version: -next PPA
OS: Ubuntu 20.04

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby FlugHund » Mon Nov 29, 2021 2:27 am

I've been waiting for months for this now. I've got the same problem but I don't have time to investigate plus segmentation faults are not my strong suit, to say the least.

The system it happens on is Devuan Chimaera which is based on Debian Bullseye. It happens on my Laptop as well as inside a VM. I've even tried different compiler versions, gcc 9.3.0 and 10.2.1. So it most likely is not an issue special to WoodSTokk's system. It does not always break at the same position (like 45 % in WoodSTokk's log) once it even went through. If I had time to investigate I wouldn't even know where to report it, fg-devel or on gcc's site. Mayhap clang works better here but I have never used that either. In any case I am very interested in a solution since I am maintaining a wiki page for compilation (http://wiki.flightgear.org/Devuan). Thanks!
User avatar
FlugHund
 
Posts: 568
Joined: Thu Mar 01, 2007 4:27 pm
Location: Inside ground effect
Callsign: D-HUND
IRC name: D-HUND / debdog
Version: next
OS: Devuan

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby WoodSTokk » Mon Nov 29, 2021 5:26 am

saiarcot895 wrote in Mon Nov 29, 2021 2:04 am:The error message says that the compiler itself hit some error, with something about a memory access failure. Do you have enough free memory? Are you building for amd64?

I'm compiling on amd64, thats right and i think with 24GB RAM i have enough memory.
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby WoodSTokk » Mon Nov 29, 2021 5:31 am

FlugHund wrote in Mon Nov 29, 2021 2:27 am:I've been waiting for months for this now. I've got the same problem but I don't have time to investigate plus segmentation faults are not my strong suit, to say the least.

The system it happens on is Devuan Chimaera which is based on Debian Bullseye. It happens on my Laptop as well as inside a VM. I've even tried different compiler versions, gcc 9.3.0 and 10.2.1. So it most likely is not an issue special to WoodSTokk's system. It does not always break at the same position (like 45 % in WoodSTokk's log) once it even went through.

Thats what i have also observed. Sometimes SIMGEAR will be build, but building FGFS run into a error.

FlugHund wrote in Mon Nov 29, 2021 2:27 am:In any case I am very interested in a solution since I am maintaining a wiki page for compilation (http://wiki.flightgear.org/Devuan). Thanks!

I'm also interested in a solution. Otherwise i can't further develope for Flightgear.
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby cgdae » Mon Nov 29, 2021 1:00 pm

I've seen the same internal compiler errors on devuan with g++ 10. /etc/issue is "Devuan GNU/Linux 3", i don't know what Devuan name that corresponds to).

Forcing the use of g++ 9 seems to work. (I think this can be done with 'CXX=g++-9 ./download_and_compile.sh ...'. but haven't checked this.)

Here are the exact g++ versions on my machine:
g++-10 (Debian 10.2.1-6) 10.2.1 20210110
g++-9 (Debian 9.3.0-22) 9.3.0


- Jules
cgdae
 
Posts: 117
Joined: Tue May 31, 2016 8:35 pm

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby wkitty42 » Mon Nov 29, 2021 1:35 pm

saiarcot895 wrote in Mon Nov 29, 2021 2:04 am:The error message says that the compiler itself hit some error, with something about a memory access failure. Do you have enough free memory? Are you building for amd64?

and what compiler is being used...
"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: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby wkitty42 » Mon Nov 29, 2021 1:42 pm

FlugHund wrote in Mon Nov 29, 2021 2:27 am:The system it happens on is Devuan Chimaera which is based on Debian Bullseye. It happens on my Laptop as well as inside a VM. I've even tried different compiler versions, gcc 9.3.0 and 10.2.1.

interesting... ubuntu 20.04 comes with gcc 9.3.0 and i've not had any problems there... am currently building the latest next... gotta wonder what else has changed...
"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: 9162
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby WoodSTokk » Mon Nov 29, 2021 2:13 pm

It must have to do with the code, because i had a run with
Code: Select all
LANG=C ./download_and_compile.sh -s -j4 -bRelease --cleanup -an -pn --git-clone-default-proto=git ALL

that compiled the version 2020.3.11 successfully.
Only the next branch for 2020.4.0 break with errors.

Currently i compiled with
Code: Select all
CXX=g++-9 LANG=C ./download_and_compile.sh -j4 -bRelease --cleanup -an -pn --git-clone-default-proto=git ALL

and it freaking works, thanks cgdae!

My compiler are:
gcc-10 (Debian 10.2.1-6) 10.2.1 20210110
gcc-9 (Debian 9.3.0-22) 9.3.0
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: Problem with d&c under Debian GNU/Linux 11 Bullseye

Postby MariuszXC » Mon Nov 29, 2021 5:05 pm

internal compiler error: Speicherzugriffsfehler

may point to some problem with gcc-10 (as your success with gcc-9 would suggest), but, if you can, have memtest run overnight on this computer. Possibly in multithreading mode. Just to exclude hardware issues.
INOP
MariuszXC
 
Posts: 1062
Joined: Tue May 18, 2021 5:38 pm
Location: Europe
Callsign: SP-MRM
Version: 2020.4
OS: Ubuntu 16.04


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest