Package Details: gnat_util 2018-1

Git Clone URL: https://aur.archlinux.org/gnat_util.git (read-only)
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: 5
Popularity: 0.000862
First Submitted: 2013-07-27 09:44
Last Updated: 2018-10-01 01:31

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

charlie5 commented on 2016-04-08 05:34

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

saifikhan, trying it here atm.

saifikhan commented on 2016-03-31 07:57

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

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

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

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

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

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

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

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.