gnatbind error on aws-net-std__gnat.adb when using the installed package

Bug #1348902 reported by Stephane Carrez on 2014-07-26
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libaws (Ubuntu)
Undecided
Unassigned

Bug Description

I have installed the GNAT compiler and the libaws2.10-2-dev (2.10.2-4) on Ubuntu 14.04 LTS with:

sudo apt-get install gnat-4.6 libaws2.10.2-dev libxmlada4.1-dev

When you try to use the library, you will get a gnatbind error:

gnatbind -shared -E -I- -x /home/jenkins/var/workspace/Ubuntu-Trusty-Ada-Util/ada-util-1.7.1/obj/util_harness.ali
error: "aws-net-std__gnat.adb" must be compiled
error: ("/usr/lib/ada/adalib/aws/aws-net-std__gnat.ali" is obsolete and read-only)
error: "g-socket.adb" must be compiled
error: ("/usr/lib/gcc/i686-linux-gnu/4.6/adalib/g-socket.ali" is obsolete and read-only)
error: "g-soliop.ads" must be compiled
error: ("/usr/lib/gcc/i686-linux-gnu/4.6/adalib/g-soliop.ali" is obsolete and read-only)
error: "g-socthi.adb" must be compiled
error: ("/usr/lib/gcc/i686-linux-gnu/4.6/adalib/g-socthi.ali" is obsolete and read-only)
error: "g-sothco.adb" must be compiled
error: ("/usr/lib/gcc/i686-linux-gnu/4.6/adalib/g-sothco.ali" is obsolete and read-only)
error: "g-soccon.ads" must be compiled
error: ("/usr/lib/gcc/i686-linux-gnu/4.6/adalib/g-soccon.ali" is obsolete and read-only)
gnatmake: *** bind failed.

I think the package must be rebuilt.

The following work arround worked for me:

- get the sources from http://packages.ubuntu.com/fr/trusty/libaws2.10.2
- run the command debuild -us -uc
- install the generated .deb packages

There is no need to change anything in [libaws_2.10.2-4.debian.tar.bz2], just re-build.

Tags: ada Edit Tag help
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libaws (Ubuntu):
status: New → Confirmed

Got the following error when trying the workaround :
make: Nothing to be done for `build'.
 fakeroot debian/rules binary
make: *** No rule to make target `config/setup/check_config.c', needed by `debian/tmp/check_config'. Stop.
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc -i -b failed

Any idea ?

This error shows up now and then after an upgrade of a dependency without change of the ALI version, as described in the Debian Policy for Ada.
In most cases, like this one, the origin is GCC, which does not bump its ALI version to spare a passage through the NEW queue.
This specific bug has been fixed for years and can be closed.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers