Package Base Details: gprbuild

Git Clone URL: https://aur.archlinux.org/gprbuild.git (read-only, click to copy)
Submitter: None
Maintainer: charlie5
Last Packager: charlie5
Votes: 35
Popularity: 0.49
First Submitted: 2010-02-03 13:25 (UTC)
Last Updated: 2023-10-17 23:51 (UTC)

Pinned Comments

charlie5 commented on 2023-09-16 01:56 (UTC)

hi @wvxvw

Apologies for these problems.

Can you please try the following ...

$ pamac build gprbuild-bootstrap
$ pamac build xmlada
$ pamac build gprbuild gprbuild-toolbox

I've also redirected the doc build output to a log file.

Also, the Ada packages are now available in an unofficial Arch repository.

https://wiki.archlinux.org/title/Unofficial_user_repositories

Thanks for reporting.

Regards.

charlie5 commented on 2023-07-09 16:43 (UTC) (edited on 2023-09-16 01:56 (UTC) by charlie5)

This package is available in the Arch Ada Repository.

https://wiki.archlinux.org/title/Unofficial_user_repositories

Latest Comments

1 2 3 4 5 6 .. 10 Next › Last »

gurban commented on 2024-03-12 02:42 (UTC) (edited on 2024-03-12 02:51 (UTC) by gurban)

I wanna install aur/gprbuild 1:24.0w-6.

gcc is 13.2.1

clang is 17.0.6

I installed gprbuild-bootstrap 1:24.0w-1 successfully. But gprbuild after successfully compiles in static build, fails in relocatable build.

I tried it manually and with the yay. Here is makepkg output.

[gmt@arch ~]$ git clone https://aur.archlinux.org/gprbuild.git
[gmt@arch ~]$ cd gprbuild
[gmt@arch gprbuild]$ makepkg -i
...
...
==> 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 -g \
         -ffile-prefix-map=/home/gmt/gprbuild/src=/usr/src/debug/gprbuild \
         -flto=auto -largs -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now \
         -flto=auto -gargs gpr/gpr.gpr -XLIBRARY_TYPE=static -XXMLADA_BUILD=static
Setup
   [mkdir]        object directory for project GPR
   [mkdir]        library directory for project GPR
Compile
   [C]            gpr_imports.c
   [Ada]          gpr-sinput.adb
...
...
   [Ada]          gpr-nmsc.adb
   [Ada]          gpr-compilation-slave.adb
Build Libraries
   [gprlib]       gpr-gnat.lexch
   [archive]      libgpr-gnat.a
   [index]        libgpr-gnat.a
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 -g \
         -ffile-prefix-map=/home/gmt/gprbuild/src=/usr/src/debug/gprbuild \
         -flto=auto -largs -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now \
         -flto=auto -gargs gpr/gpr.gpr -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable
Setup
   [mkdir]        object directory for project GPR
   [mkdir]        library directory for project GPR
Compile
   [C]            gpr_imports.c
   [Ada]          gpr-sinput.adb
...
...
   [Ada]          gpr-nmsc.adb
   [Ada]          gpr-compilation-slave.adb
Build Libraries
   [gprlib]       gpr-gnat.lexch
   [link library] libgpr-gnat.so
/home/gmt/gprbuild/src/gprbuild-24.0w-20230430-16222-src/gpr/libobj/production/relocatable/gpr_imports.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
gprlib: /usr/bin/gcc execution error
gprbuild: could not build library for project gpr
make: *** [Makefile:142: libgpr.build.shared] Error 4
==> ERROR: A failure occurred in build().
    Aborting...
[gmt@arch gprbuild]$ file /home/gmt/gprbuild/src/gprbuild-24.0w-20230430-16222-src/gpr/libobj/production/relocatable/gpr_imports.o
/home/gmt/gprbuild/src/gprbuild-24.0w-20230430-16222-src/gpr/libobj/production/relocatable/gpr_imports.o: LLVM IR bitcode

slondr commented on 2023-10-30 23:10 (UTC)

@charlie5 Yes, I am using pacaur; this is blocking a regular system update (pacaur -Syu) for me.

charlie5 commented on 2023-10-21 03:19 (UTC)

hi @slondr

Are you using an AUR helper ?

slondr commented on 2023-10-21 02:14 (UTC) (edited on 2023-10-21 02:15 (UTC) by slondr)

Last update seems to have borked something for me, trying to do a general system update and I get:

:: resolving dependencies...
tsort: -: input contains a loop:
tsort: gprbuild
tsort: libgpr
tsort: -: input contains a loop:
tsort: gprbuild
tsort: libgpr
:: dependency cycle detected

charlie5 commented on 2023-09-16 01:56 (UTC)

hi @wvxvw

Apologies for these problems.

Can you please try the following ...

$ pamac build gprbuild-bootstrap
$ pamac build xmlada
$ pamac build gprbuild gprbuild-toolbox

I've also redirected the doc build output to a log file.

Also, the Ada packages are now available in an unofficial Arch repository.

https://wiki.archlinux.org/title/Unofficial_user_repositories

Thanks for reporting.

Regards.

wvxvw commented on 2023-09-15 18:51 (UTC)

This is not installable on Manjaro with pamac. No sequence of pamac build <> where the argument is either gprbuild or xmlada or gprbuild-bootstrap leads to this package building and installing all that it is supposed to install.

Subsequently, it's not possible to install all-ada or most (maybe all?) Ada-related packages on Manjaro using pamac.

At least a minimal documentation on how this is supposed to be installed would go a long way to make this work.

The closest I can get with pamac is if I first install gprbuild-bootstrap, then xmlada, then libgpr, then python-sphinx, then gprbuild.

Sphinx documentation generates a lot of warnings when building and, sometimes the step that builds gprbuild fails w/o any error message (just "build failed"). This is easy to misinterpret as a problem with Sphinx, but I don't think this is the case.

Finally, even if pamac build gprbuild finishes successfully, gprconfig is still missing, and it's still impossible to install most (maybe all?) Ada-related packages.

charlie5 commented on 2023-09-01 15:52 (UTC)

@slondr

grpc contains a libgpr file which conflicts with gprbuild's libgpr.

tfl5034 commented on 2023-08-29 01:46 (UTC) (edited on 2023-08-29 02:01 (UTC) by tfl5034)

Should this package provide gprconfig? If not, which package provides that binary?

EDIT: I think the issue is that paru doesn't install all of the packages in the pkgbase gprbuild when I run paru -S gprbuild

slondr commented on 2023-08-29 01:46 (UTC)

Also, when I try to build this package, I get the following error:

==> 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 \ -XXMLADA_BUILD=static gprbuild: could not locate gprconfig for auto-configuration make: *** [Makefile:146: libgpr.build.static] Error 5 ==> ERROR: A failure occurred in build().

slondr commented on 2023-08-29 01:04 (UTC)

Why does this package conflict with grpc, the Google Remote Procedure Call framework?