gnat broken with last gcc update

Bug #250173 reported by Kay Hayen
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnat-4.3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gnat-4.3

Hello,

with the current gnat it is impossible to compile anything. Neither gnat itself, nor any other file it seems.

To reproduce, install gnat and attempt to compile vanill gcc, it will report:

configure: error: GNAT is required to build ada

> dpkg -l gnat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=======================================-=======================================-==============================================================================================
ii gnat 4.3.1-1ubuntu2 The GNU Ada compiler

This was first noted when compiling our own Ada project broke for 2 people on independent machines.

Yours,
Kay Hayen

Related branches

Revision history for this message
David Sauvage (pariakanet) wrote :

Hi,

all gnat tools are not usable on this version [1] !!!,
----------------------------------
$ gnatclean
fatal error, run-time library not installed correctly
cannot locate file system.ads

raised TYPES.UNRECOVERABLE_ERROR : targparm.adb:174
----------------------------------
$ gnatmake -P gnatgpr
fatal error, run-time library not installed correctly
cannot locate file system.ads
gnatmake: *** make failed.

[1]
Ubuntu 8.10 / x86
ii gnat 4.3.1-1ubuntu2
ii gnat-4.3 4.3.1-2ubuntu1
ii gnat-4.3-base 4.3.1-2ubuntu1
ii gnat-4.3-doc 4.3.1-2ubuntu1
ii gnat-doc 4.3.1-1ubuntu2
ii gnat-gps 4.3~2008.08.09ubuntu1
ii gnat-gps-doc 4.3~2008.08.09ubuntu1
ii gpgv 1.4.9-3ubuntu1
ii libgnat-4.3 4.3.1-2ubuntu1
ii libgnatprj4.3 4.3.1-2ubuntu1
ii libgnatvsn-dev 4.3.1-1ubuntu2
ii libgnatvsn4.3 4.3.1-2ubuntu1
ii libgnatvsn4.3-dev 4.3.1-2ubuntu1

Revision history for this message
Kay Hayen (kayhayen) wrote :

Hello,

Using the Ubuntu Development version if gnat is important to you, appears to be a specifically bad idea as they appear to have disabled all the tests at least for Ada.

I am no longer an Ubuntu user myself, as its Development version has become too unstable for me. But I can confirm having seen my collegue struck by your problem too.

Also don't necessarily expect any feedback, the last time it was fixed silently (and left open) too.

Best regards,
Kay Hayen

Revision history for this message
David Sauvage (pariakanet) wrote :

Concerning my first comment,

here is the solution to be able to us again the gnat compiler tool chain :

sudo ln -s /usr/lib/gcc/i486-linux-gnu/4.3 /usr/lib/gcc/i486-linux-gnu/4.3.1

strace tell us that the gnat command try to open /usr/lib/gcc/i486-linux-gnu/4.3.1/adainclude/system.ads,
and crash as this file does not exist.

A symlink to /usr/lib/gcc/i486-linux-gnu/4.3 solve the problem ....

Revision history for this message
David Sauvage (pariakanet) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

> Using the Ubuntu Development version if gnat is important to you,
> appears to be a specifically bad idea as they appear to have disabled
> all the tests at least for Ada.

nothing changed from the debian package. please could you file a bug for Debian? afaicr this was disabled because the tests don't work with the changes made to the package.

Revision history for this message
Matthias Klose (doko) wrote :

> with the current gnat it is impossible to compile anything. Neither gnat itself, nor any other file it seems.

is cpp-4.3 installed on the system?

Revision history for this message
Matthias Klose (doko) wrote :

closing. checked with 4.3.2-1ubuntu1 in intrepid

Changed in gnat-4.3:
status: New → Fix Released
Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
Download full text (12.1 KiB)

Reopening, this bug still happen on natty.

Trying to execute appears:

$ gnat
fatal error, run-time library not installed correctly
cannot locate file system.ads

raised TYPES.UNRECOVERABLE_ERROR : targparm.adb:177

Searching with strace, show that gnat look for gcc 4.4, but the folder is 4.4.4:

$ strace gnat
execve("/usr/bin/gnat", ["gnat"], [/* 42 vars */]) = 0
brk(0) = 0x849f000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb774f000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=118164, ...}) = 0
mmap2(NULL, 118164, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7732000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/i386-linux-gnu/libgnat-4.4.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\\\f\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=2906304, ...}) = 0
mmap2(NULL, 2959424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x67a000
mmap2(0x938000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2bd) = 0x938000
mmap2(0x941000, 47168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x941000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgnatvsn.so.4.4", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \2\5\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=967636, ...}) = 0
mmap2(NULL, 3272432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x110000
mmap2(0x1fa000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe9) = 0x1fa000
mmap2(0x1fd000, 2301680, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1fd000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgnatprj.so.4.4", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\347\3\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1294248, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7731000
mmap2(NULL, 3833224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa80000
mmap2(0xbb9000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x139) = 0xbb9000
mmap2(0xbbc000, 2538888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbbc000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\37\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=108040, ...}) = 0
mmap2(NULL, 111148, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x42f000
mmap2(0x449000, 8...

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.