Build for 1:23.0.0-2 fails with
gprbuild: error while loading shared libraries: libgnarl-12.so: cannot open shared object file: No such file or directory
Git Clone URL: | https://aur.archlinux.org/xmlada.git (read-only, click to copy) |
---|---|
Package Base: | xmlada |
Description: | An XML parser for Ada95. |
Upstream URL: | https://github.com/AdaCore/xmlada |
Licenses: | custom, GPL3 |
Conflicts: | xmlada-git |
Submitter: | None |
Maintainer: | charlie5 |
Last Packager: | charlie5 |
Votes: | 24 |
Popularity: | 0.002931 |
First Submitted: | 2010-02-02 16:26 (UTC) |
Last Updated: | 2024-05-31 06:06 (UTC) |
Build for 1:23.0.0-2 fails with
gprbuild: error while loading shared libraries: libgnarl-12.so: cannot open shared object file: No such file or directory
I think I figured out the problem: the people here complaining about the "can't find a native toolchain for language 'ada'" error are building their packages on a dirty system that has a non-english locale. This causes the version output in gcc -v
to change, which breaks the regex in gprconfig as deduced by @andbue.
I'll add a patch to gprconfig, but for the future: please build packages in a clean chroot, especially when reporting bugs to maintainers - everything else is just a waste of everyone's time.
can't find a native toolchain for language 'ada' – can be solved by replacing "gcc -v" with "gcc --version" in /usr/share/cprconfig/compilers.xml. I've just opened an issue in https://github.com/AdaCore/gprconfig_kb/issues/10 as well.
@NJ4BIEXXQk, @xiretza
Unfortunately I can confirm that this error still exist. gprconfig can't find a native toolchain. Still happens with git and repo version.
I can confirm that i get the same error for gprbuild-bootstrap 2020-2
Sorry, can't reproduce in a clean chroot with gcc-ada-10.1.0-2
and gprbuild-bootstrap-2020-2
. It's always possible that AdaCore -git
packages are incompatible with the latest release versions of other packages, but if the same happens with gprbuild-bootstrap
, I have no idea.
@xiretza gcc-ada 10.1.0-2 gprbuild-bootstrap-git r3595.e7f7c8d5-1
I tried both available options for gprbuild-bootstrap and currently have the git version installed
@NJ4BIEXXQk: pacman -Q gcc-ada gprbuild-bootstrap
Hi, I get
Tgprbuild -j0 -m -R -p -XLIBRARY_TYPE=static -XBUILD=Production -XPROCESSORS=0 xmlada.gpr -cargs -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -largs -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
gprconfig: can't find a native toolchain for language 'ada'
gprconfig: can't find a native toolchain for language 'ada'
Setup
[mkdir] object directory for project XmlAda_Sax
[mkdir] library directory for project XmlAda_Sax
[mkdir] object directory for project XmlAda_Schema
xmlada_schema.gpr:31:25: warning: libraries are not supported on this platform
xmlada_sax.gpr:30:25: warning: libraries are not supported on this platform
xmlada_unicode.gpr:28:25: warning: libraries are not supported on this platform
xmlada_input.gpr:29:25: warning: libraries are not supported on this platform
xmlada_dom.gpr:30:25: warning: libraries are not supported on this platform
xmlada_dom.gpr:28:09: no compiler for language "Ada", cannot compile "dom-readers.adb"
gprbuild: *** compilation phase failed
make: *** [Makefile:68: static] Fehler 4
gprconfig -h returns
-db- : Do not load the standard knowledge base from:
/usr/share/gprconfig
Is this related to the previous problems? I would really appreciate any help
I've made a start on the 2019 packages. They should be ready by the end of the weekend.
Pinned Comments
charlie5 commented on 2023-07-09 16:48 (UTC)
This package is available in the Arch Ada Repository.
charlie5 commented on 2023-05-04 20:11 (UTC) (edited on 2023-05-04 20:12 (UTC) by charlie5)
@mindbound
The problem is due to gcc being updated to version 13. You'll have to re-build/re-install gprbuild-bootstrap, then xmlada, then gprbuild.
So ...
$ pacaur -S gprbuild-bootstrap
$ pacaur -S xmlada
$ pacaur -S gprbuild