Hello
@charlie5, my version of GCC is 11.1.0-3
@xiretza, what can y do now?
Git Clone URL: | https://aur.archlinux.org/gprbuild.git (read-only, click to copy) |
---|---|
Package Base: | gprbuild |
Description: | Builder for multi-language systems. |
Upstream URL: | https://github.com/AdaCore/gprbuild/ |
Licenses: | custom, GPL3 |
Conflicts: | gprbuild-bootstrap |
Submitter: | None |
Maintainer: | charlie5 |
Last Packager: | charlie5 |
Votes: | 36 |
Popularity: | 0.033594 |
First Submitted: | 2010-02-03 13:25 (UTC) |
Last Updated: | 2024-05-31 06:07 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 Next › Last »
Hello
@charlie5, my version of GCC is 11.1.0-3
@xiretza, what can y do now?
@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.
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.
Hello,
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 \
-XXMLADA_BUILD=static
gprbuild: symbol lookup error: gprbuild: undefined symbol: gpr__empty_file
make: *** [Makefile:146: libgpr.build.static] Error 127
==> ERROR: A failure occurred in build().
Aborting...
And now gnatstudio
fails with the traceback:
gnatstudio: symbol lookup error: /usr/lib/libgnatcoll.so.2021: undefined symbol: gpr__empty_string
Thanks @tfl5034 New version is now in the AUR.
I was able to update this package by making the following changes to the PKGBUILD. I removed the ld partial linker patch because it didn't apply cleanly. Looking at the history of linker.xml, they made changes to support partial linking by passing a no-pie flag.
diff --git a/PKGBUILD b/PKGBUILD
index 9f5060e..2780bc5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@
pkgbase=gprbuild
pkgname=(libgpr gprbuild)
epoch=1
-pkgver=21.0.0
-pkgrel=5
+pkgver=22.0.0
+pkgrel=1
pkgdesc="Builder for multi-language systems"
arch=('i686' 'x86_64')
url="https://github.com/AdaCore/gprbuild/"
@@ -19,20 +19,17 @@ source=(
"gprconfig_kb-$pkgver.tar.gz::https://github.com/AdaCore/gprconfig_kb/archive/v$pkgver.tar.gz"
'relocatable-build.patch'
'always-use-host-gprinstall.patch'
- '0001-Use-ld-as-Library_Partial_Linker.patch'
'0002-compilers.xml-use-gcc-version-to-get-version-number-.patch'
)
-sha256sums=('54b7d1a3298160109aaee4d8c263c1ab3ab4abae75d354f3e90a4c51639167a2'
- '2aec26afad5bb1a4685d9c041c9c797ff5beda211a5e81f2a97452d2ceabc557'
+sha256sums=('076e2b6ac0c7170753a6499094a6d30a98698aca2551c6796b3a617dd9ffc704'
+ 'cc19437e0982d9af31e09ad7c42eac6a445dac65336bd53d67ba61f630be7f13'
'd6479e03e6b6cfb09c133d94e3c47ea5d5e5e756b95554ab3106a679c3d57de4'
'3fe0fd1df3156c9a8488d98ee6e7e822ae904ce410838661c8fc14c29abe2620'
- 'b1a38e166f54d7b8e85f7351341109200c5712f7bfa79a9233adf8a24e036a3a'
'9aa8cd9e522fb8a39b2512698885016db1b7286d8fe87d35bdc92e1bc10b20b7')
prepare() {
cd "$srcdir/gprconfig_kb-$pkgver"
- patch -Np1 -i "$srcdir/0001-Use-ld-as-Library_Partial_Linker.patch"
patch -Np1 -i "$srcdir/0002-compilers.xml-use-gcc-version-to-get-version-number-.patch"
cd "$srcdir/$pkgbase-$pkgver"
No, not that I am aware of, but a little sed or patch would make the situation much less confusing.
@gbabin: does this cause any problems?
gprbuild 21.0.0 builds, however it reports "GPRBUILD Pro 18.0w (19940713)".
According to https://github.com/AdaCore/gprbuild/blob/v21.0.0/gpr/src/gpr-version.ads#L27, gpr/src/gpr-version.ads
is supposed to be patched during the build.
The patching tool does not seem to be in the repo: https://github.com/AdaCore/gprbuild/issues/53
hi @JanSurft
The name clash is unfortunate :( .
I know of no workaround other than to remove all packages that require grpc.
I can at least add gprc to the 'conflicts' array. Thanks for pointing out the issue.
Pinned Comments
charlie5 commented on 2023-09-16 01:56 (UTC)
hi @wvxvw
Apologies for these problems.
Can you please try the following ...
I've also redirected the doc build output to a log file.
Also, the Ada packages are now available in an unofficial Arch repository.
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.