Package Base Details: gprbuild

Git Clone URL: (read-only, click to copy)
Submitter: None
Maintainer: charlie5 (xiretza)
Last Packager: charlie5
Votes: 27
Popularity: 0.000001
First Submitted: 2010-02-03 13:25 (UTC)
Last Updated: 2022-11-22 00:46 (UTC)

Packages (2)

Latest Comments

1 2 3 4 5 6 Next › Last »

charlie5 commented on 2022-01-27 09:37 (UTC)


I've encountered the same problem. A second ...

$ pacaur -S gnat-gps

... completed the install.

Armag67 commented on 2022-01-27 01:16 (UTC)

@charlie5 & @xiretza, thanks for your advices.

It worked, but with same build failures:

:: Construction du paquet gnat-gps...
==> Création du paquet gnat-gps 2021-3 (mer. 26 janv. 2022 16:20:00)
==> Vérification des dépendances pour l’exécution…
==> Installation des dépendances manquantes…
erreur : impossible de trouver la cible : ada_language_server
==> ERREUR : « pacman » n’a pas pu installer les dépendances manquantes.
==> Dépendances manquantes :
  -> ada_language_server
  -> python2-gobject
==> Vérification des dépendances pour la compilation…
==> ERREUR : Échec de résolution des dépendances.
:: ada-libfswatch is now an orphan package
:: ada_spawn is now an orphan package
:: gnatcoll-db2ada is now an orphan package
:: gnatcoll-gmp is now an orphan package
:: gnatcoll-python2 is now an orphan package
:: gnatcoll-xref is now an orphan package
:: gprbuild is now an orphan package
:: python2-yaml is now an orphan package
:: failed to build langkit package(s)
:: failed to build libadalang package(s)
:: failed to build libadalang-tools package(s)
:: failed to build ada_language_server package(s)
:: failed to build gnat-gps package(s)

I needed to build and install one by one langkit, libadalang, libadalang-tools, ada_language_server and then gnat-gps.

charlie5 commented on 2022-01-26 12:16 (UTC) (edited on 2022-01-26 12:16 (UTC) by charlie5)


Hard to diagnose when I can't repeat the problem.

All I can suggest is this ...

$ sudo pacman -Rsc gcc-ada

$ pacaur -S gnat-gps

... that is wipe all ada packages and rebuild all from scratch.

Armag67 commented on 2022-01-25 13:58 (UTC) (edited on 2022-01-25 13:59 (UTC) by Armag67)

I tried cloning gprbuild in an empty folder and made makepkg -si, but AFTER upgrading libgpr with an AUR helper. And then upgrading gprbuild failed...

Unfortunately, I cleared my AUR cache and I don't know how to downgrade AUR packages as libgpr. How could I git clone an old commit of an AUR package?

charlie5 commented on 2022-01-23 14:57 (UTC) (edited on 2022-01-24 07:08 (UTC) by charlie5)


Perhaps try cloning into a new folder and doing 'makepkg' from there. You may have old build artifacts if you have just 'git pull'ed into an existing gprbuild git repo folder. Or just delete the 'src' folder there.

If you are using pacaur, then delete the gprbuild folder in ~/.cache/pacaur and try again.

xiretza commented on 2022-01-23 11:59 (UTC)

That depends on what you did in the first place, but downgrading libgpr to match gprbuild might lead you in the right direction.

Armag67 commented on 2022-01-23 11:56 (UTC) (edited on 2022-01-23 11:56 (UTC) by Armag67)


@charlie5, my version of GCC is 11.1.0-3

@xiretza, what can y do now?

xiretza commented on 2022-01-23 09:03 (UTC)

@Armag67: it looks like you upgraded libgpr without upgrading gprbuild, so now gprbuild (linked against the old version of the library) can't find a symbol that no longer exists in the new version.

charlie5 commented on 2022-01-23 07:20 (UTC) (edited on 2022-01-23 07:28 (UTC) by charlie5)

hi @Armag67,

I cannot reproduce that error. I will try again soon.

Is your system fully up to date ? Which GCC version are you using ?

Possibly @xiretza can shed some light.

Armag67 commented on 2022-01-22 21:49 (UTC) (edited on 2022-01-22 21:54 (UTC) by Armag67)


This evening, libgpr built fine, but with gprbuild, by using the git clone way, I had this traceback:

==> Starting build()...
gprbuild -p -m   -j0 -XBUILD=production -R -cargs -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2           -fstack-clash-protection -fcf-protection -largs -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -gargs gpr/gpr.gpr -XLIBRARY_TYPE=static \
gprbuild: symbol lookup error: gprbuild: undefined symbol: gpr__empty_file
make: *** [Makefile:146:] Error 127
==> ERROR: A failure occurred in build().

And now gnatstudio fails with the traceback:

gnatstudio: symbol lookup error: /usr/lib/ undefined symbol: gpr__empty_string