Package Details: gnat_util 2020-1

Git Clone URL: https://aur.archlinux.org/gnat_util.git (read-only, click to copy)
Package Base: gnat_util
Description: Internal GNAT compiler components used by (at least) ASIS.
Upstream URL: https://libre.adacore.com/
Licenses: GPL V3.0 without any Runtime Exception
Submitter: aayjaychan
Maintainer: charlie5
Last Packager: charlie5
Votes: 6
Popularity: 0.000000
First Submitted: 2013-07-27 09:44 (UTC)
Last Updated: 2020-10-13 05:10 (UTC)

Latest Comments

zrmyers commented on 2020-03-08 01:06 (UTC)

The source is broken for this repository.

I had to change the source variable in the PKGBUILD so that it used the following instead of the mirrors.cdn.adacore.com link:

'https://community.download.adacore.com/v1/ccd37abcc9fbbe89b782dbe789b77278cb1d3789?filename=gnat_util-2019-20190517-194CA-src'

jockej commented on 2018-04-03 12:37 (UTC)

I had the same issue as guyzmo while building some Ada code of my own. Turns out the problem is with the installation of gprbuild (or gprbuild-bootstrap) which puts the knowledge database in /usr/share while gprconfig looks for it in /share.

I solved it temporarily with a symlink, but the real solution is of course to fix the gprbuild package. I will comment there and see what happens.

guyzmo commented on 2017-03-05 22:41 (UTC)

Installing gnat_util I'm getting the following error, and I'm struggling to understand the issue, I have more than enough disk space in both tmp and local directory: ``` % makepkg -si ==> Making package: gnat_util 2016-1 (Sun Mar 5 23:30:58 CET 2017) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found gnat_util-gpl-2016-src.tar.gz ==> Validating source files with sha256sums... gnat_util-gpl-2016-src.tar.gz ... Passed ==> Extracting sources... -> Extracting gnat_util-gpl-2016-src.tar.gz with bsdtar ==> Removing existing $pkgdir/ directory... ==> Starting build()... mkdir -p gen_src cp -p xsnamest.adb xutil.* snames.adb-tmpl snames.ads-tmpl snames.h-tmpl gen_src (cd gen_src && \ gnatmake -gnatf -gnatwae -gnatyg -gnatyS xsnamest && \ ./xsnamest && mv snames.ns snames.ads && mv snames.nb snames.adb) gnatmake: "xsnamest" up to date. cp -p sdefault_adb.gnat_util gen_src/sdefault.adb gprbuild -j0 -m -XOS=unix -XBUILD=Production \ -XLIBRARY_TYPE=static -Pgnat_util -p No valid configuration found Generation of configuration files failed GNAT-TEMP-000001.TMP:1:01: "project" expected gprbuild: processing of configuration project "/tmp/makepkg/gnat_util/src/gnat_util-gpl-2016-src/obj/static/GNAT-TEMP-000001.TMP" failed make: *** [Makefile:26: all] Error 4 ==> ERROR: A failure occurred in build(). Aborting... ``` I tried installing manually using the sources directly, and ran into the same issue. I installed gprbuild from the AUR, as well as the other dependencies. It feels like gprbuild is not getting the same kind of arguments the makefile is giving to it.

charlie5 commented on 2016-11-30 08:23 (UTC)

Hi Sebmor, I do not experience the same problem here. Has anyone else had Sebmors issue ?

sebmor commented on 2016-11-18 18:43 (UTC)

Hi, Actually this build is not working if you have to created tow symbolic links on your system: ln -s /usr/share /share ln -s /usr/libexec /libexec Afterwards, that's ok.

charlie5 commented on 2016-07-25 09:37 (UTC)

fusion809, I've added gprbuild as a make dep. Seems ok here now, when I test the build in a pristine Archy. Sorry for the bother (ie not checking deps properly). Cheers.

charlie5 commented on 2016-07-24 12:03 (UTC)

Right you are. Thanks for pointing this out.

fusion809 commented on 2016-07-24 09:32 (UTC)

gprbuild should be added as a make dependency, as without it the build fails.

Visaoni commented on 2016-06-30 05:11 (UTC) (edited on 2016-07-09 07:32 (UTC) by Visaoni)

Update: Works now, thanks! (2016-9-7) Thanks for the packages, having some trouble building latest though (2016-06-05 02:55 update). I'm on 4.6.2-1-ARCH #1 SMP PREEMPT i686 GNU/Linux. Using pacaur: gprbuild -j0 -m -XOS=unix -XBUILD=Production \ -XLIBRARY_TYPE=static-pic -Pgnat_util -p object directory "/home/visaoni/.cache/pacaur/gnat_util/src/gnat_util-gpl-2016-src/obj/static-pic/" created library directory "/home/visaoni/.cache/pacaur/gnat_util/src/gnat_util-gpl-2016-src/lib/static-pic" created for project gnat_util gnat_util.gpr:16:25: illegal value for Library_Kind

charlie5 commented on 2016-04-09 06:03 (UTC)

sitquietly, Good to hear ... and you're welcome :). Cheers for the feedback.

sitquietly commented on 2016-04-08 23:29 (UTC)

gnat_util compiled and installed for me; I simply installed each dependency in order, starting with gcc-ada. I haven't tested in projects yet but the build was successful. Thank you for supporting this package. Ada, and gps, are important.

charlie5 commented on 2016-04-08 05:34 (UTC)

Been flat out, sorry. I did not have same prob when rebuilding locally. I plan to update the gnat_util PKGBUILD this w/e, with luck.

charlie5 commented on 2016-04-01 05:27 (UTC)

saifikhan, trying it here atm.

saifikhan commented on 2016-03-31 07:57 (UTC)

on building gnat_util on Arch Linux 4.4.5-1-debug #2 SMP PREEMPT ... gprlib gnat_util.lexch gcc -shared -o /home/saifi/arch-ada/gnat_util/src/gnat_util-5.1.0/lib/relocatable/libgnat_util.so ... /home/saifi/arch-ada/gnat_util/src/gnat_util-5.1.0/.build-relocatable/version.o ... /usr/bin/ld: /home/saifi/arch-ada/gnat_util/src/gnat_util-5.1.0/.build-relocatable/prefix.o: relocation R_X86_64_PC32 against undefined symbol `strdup@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status gprlib: /usr/bin/gcc execution error gprbuild: could not build library for project gnat_util Makefile:48: recipe for target 'lib-relocatable-stamp' failed make: *** [lib-relocatable-stamp] Error 4 ==> ERROR: A failure occurred in build(). Aborting... Any patches or workarounds to this ?

charlie5 commented on 2015-12-04 02:14 (UTC)

This build consumes around 5.6G of disk space (or tmpfs space, if using yaourt). Please make sure you have enough free space (esp for yaourt builds in /tmp).

charlie5 commented on 2015-11-24 01:46 (UTC)

Hi valexey, I can't reproduce this problem locally. Advice I received was to ask that you check that your archLinux is up to date (which I expect it already is). Otherwise, I'm at a loss. Has anyone else struck this problem ?

valexey commented on 2015-11-21 18:45 (UTC)

Error while compiling: === gcc -c -fPIC -O2 prj-util.adb gprlib gnat_util.lexch gcc -shared -o /home/valexey/Downloads/gnat_util/src/gnat_util-5.1.0/lib/relocatable/libgnat_util.so ... /home/valexey/Downloads/gnat_util/src/gnat_util-5.1.0/.build-relocatable/version.o ... /usr/bin/ld: /home/valexey/Downloads/gnat_util/src/gnat_util-5.1.0/.build-relocatable/prefix.o: relocation R_X86_64_PC32 against undefined symbol `strdup@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status gprlib: /usr/bin/gcc execution error gprbuild: could not build library for project gnat_util Makefile:48: recipe for target 'lib-relocatable-stamp' failed make: *** [lib-relocatable-stamp] Error 4 ==> ERROR: A failure occurred in build(). Aborting... ===

kaptoxic commented on 2015-11-08 04:01 (UTC)

I spent quite some time trying to fix this, but without success. I believe indeed gprbuild is the problem: $ gprconfig No compilers found for target x86_64-unknown-linux-gnu I also managed to compile the whole thing by changing "GPRBUILD ?= gnatmake" in the Makefile. The problem afterwards is that on `make install`, gprinstall cannot find compilers and complains: gnat_util.gpr:21:09: warning: no compiler specified for language "C", ignoring all its sources gnat_util.gpr:21:09: warning: no compiler specified for language "Ada", ignoring all its sources gnat_util.gpr:27:25: warning: libraries are not supported on this platform

charlie5 commented on 2015-10-18 03:43 (UTC)

Hi again, I've not been able to replicate the prob locally. I did strike some probs in running out of tmpfs (/tmp) ram. The build takes well over 4 Gig of storage space. You seem to have plenty of room for /tmp tho. Your architecture should be no prob (same as mine). The "faulty gprbuild install" was likely a red herring (my mistake). So not much help really, sorry.

kaptoxic commented on 2015-10-17 05:31 (UTC)

I see. Well, my guess would be that this depends more on the knowledge of the library (so that some things get shipped as precompiled binaries, with the package). (Note I am not particularly familiar with Ada and its libraries/runtime.) $ uname -a Linux pc 4.2.2-1-ARCH #1 SMP PREEMPT Tue Sep 29 22:21:33 CEST 2015 x86_64 GNU/Linux Cheers!

charlie5 commented on 2015-10-17 02:28 (UTC)

After a closer look (google), it appears to be a faulty 'gprbuild' install (also one of my packages :( ). Re the tools to quicken build, I am not sure. They would be nice but I am not expert enuff in Arch builds to know for sure. Possibly ppl on the #archlinux irc channel may know. I'll look into gprbuild some more asap and see if I can find the prob. Can you tell me your architecture ? (ie x86 or x86_64 ?) Cheers.

kaptoxic commented on 2015-10-13 17:18 (UTC)

Also, are there perhaps some binaries that can be useful for avoiding the long compilation?

kaptoxic commented on 2015-10-13 17:17 (UTC)

I do not think so. I have 23GB free space on the drive I used for temporary files (I also tried building in RAM, I got the same error).

charlie5 commented on 2015-10-13 10:59 (UTC)

Hi kaptoxic, Thanks for problem report. Is it possible that '/home/user/tmp/yaourt-tmp-user/' has run out of disk space ? ps. Yeap, it's very slow to build ... equiv of rebuilding gcc/ada.

kaptoxic commented on 2015-10-12 22:40 (UTC)

I got these errors (after a very, very long build): http://pastebin.com/RqFgFFef Any idea what might be wrong? I got these when trying to install the gnat-gps package.

kaptoxic commented on 2014-11-10 06:36 (UTC)

Is 2014 version available?