End of File
-> Erstelle Arbeitskopie des simgear git Repos...
Klone nach 'simgear'...
Fertig.
==> Beginne prepare()...
patching file simgear/scene/tgdb/obj.cxx
Hunk #1 FAILED at 81.
1 out of 1 hunk FAILED -- saving rejects to file simgear/scene/tgdb/obj.cxx.rej
patching file simgear/scene/tgdb/obj.hxx
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 40.
2 out of 2 hunks FAILED -- saving rejects to file simgear/scene/tgdb/obj.hxx.rej
==> FEHLER: Ein Fehler geschah in prepare().
Breche ab...
Sorry, what are Hunks, and where can I find them?
Similar error with 2024.1.6-1 in pamac:
[ 60%\] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/CanvasWindow.cxx.o
[ 61%\] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o
/var/tmp/pamac-build-peterb/simgear/src/simgear-2024.1.6/simgear/canvas/ODGauge.cxx: In member function »void simgear::canvas::ODGauge::allocRT(osg::NodeCallback\*)«:
/var/tmp/pamac-build-peterb/simgear/src/simgear-2024.1.6/simgear/canvas/ODGauge.cxx:269:23: error: »GL_FOG« wurde in diesem Gültigkeitsbereich nicht deklariert; meinten Sie »GL_XOR«?
269 | stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
| ^\~\~\~\~\~
| GL_XOR
[ 61%\] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/VGInitOperation.cxx.o
make\[2\]: \*\*\* \[simgear/CMakeFiles/SimGearScene.dir/build.make:807: simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o\] Fehler 1
make\[2\]: \*\*\* Es wird auf noch nicht beendete Prozesse gewartet …
make\[1\]: \*\*\* \[CMakeFiles/Makefile2:1087: simgear/CMakeFiles/SimGearScene.dir/all\] Fehler 2
make: \*\*\* \[Makefile:166: all\] Fehler 2
==> FEHLER: Ein Fehler geschah in build().
Breche ab...
Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text
Neither the simgear nor the flightgear AUR package have any patches, how are you attempting to install it?
Whatever the source is, the patches are failing to apply.
In the PKGBUILD it is trying to apply some patches
prepare() {
cd simgear
# patch -p1 < ../../simgear-osg.patch # Fix build with openscenegraph 3.6.5
patch -p1 < ../../0001-remove_boost_lexical.patch
patch -p1 < ../../0002-remove_boost_containers.patch
}
and it fails. Possibly because the patches cannot be applied to the current version of simgear as pulled from git. I see the AUR package has not been updated for over a year. I guess you could contact the AUR package maintainer. Or try to work out what the patch files are there for.
Normal with Pamac:
photoscenery-git and openscenegraph-git did compile without problems
I take that back
I used chrootbuild and I couldn’t build them all.
So I don’t think you will get it to work 
The targets are difficult to build - there is a lot of dependency on other custom scripts and a qt6-tools source package that doesn’t exist.
- simgear => OK
- flightgear depends on
- simgear => OK
- plib => OK
qt6-tools => fail - source does not exist 
git clone https://aur.archlinux.org/simgiear
git clone https://aur.archlinux.org/flightgear
git clone https://aur.archlinux.org/plib
sudo chrootbuild -p simgear -n -p plib -n -p flightgear
Which PKGBUILD? simgear has no patches in the source array nor a prepare function.
I just built flightgear along with it’s plib and simgear AUR dependencies with no issue.
The title said simgear from git so I looked at this: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=simgear-git
But I realise I was making assumptions 
We shouldn’t have to. @bssmusic Please clarify which package you are trying to build.
Also, I’ve fixed the formatting in the first post.
flightgear-git 2024.1.0r16085.1757b1d5b-5
and
flightgear 2024.1.6-1
from 07. Jun 2026
( as they are in Pamac)
thanks, found it
Moderator edit: Merged consecutive posts
Make sure you’re building flightgear with simplegear, not simplegear-git. As mentioned above, it builds fine.