This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/15819] New: ada compiler not working after installation


When installing gcc 3.4.0 from scratch using a non default prefix and exec 
prefix, the resulting ADA compiler cannot compile anything after installation.

The compiler has been configured as noted below, compiled with "make bootstrap 
&& make -C gcc gnatlib_and_tools" and installed with "make install".

After installation, the following ADA programm cannot be compiled: "procedure 
conftest is begin null; end conftest;". The command "gcc -c conftest.adb" 
results in the following error message:

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

gcc -v -c conftest.adb gives the following output:

Reading specs from /net/camos/opt/exec/Linux-i686/lib/gcc/i686-pc-linux-
gnu/3.4.0/specs
Configured with: /home/schoepf/net/src/extern/gcc-3.4.0/configure --
prefix=/net/camos/opt --exec-prefix=/net/camos/opt/exec/Linux-i686 --enable-
languages=c,c++,ada
Thread model: posix
gcc version 3.4.0
 /net/camos/opt/exec/Linux-i686/libexec/gcc/i686-pc-linux-gnu/3.4.0/gnat1 -
quiet -dumpbase conftest.adb -mtune=pentiumpro conftest.adb -o /tmp/ccp9fm08.s
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned

"strace /net/camos/opt/exec/Linux-i686/libexec/gcc/i686-pc-linux-
gnu/3.4.0/gnat1 -quiet -dumpbase conftest.adb -mtune=pentiumpro conftest.adb -
o /tmp/ccp9fm08.s" gives the following results:

...
open("/net/camos/opt/exec/Linux-i686/exec/Linux-i686/lib/gcc/i686-pc-linux-
gnu/3.4.0/ada_source_path", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/net/camos/opt/exec/Linux-i686/exec/Linux-i686/lib/gcc/i686-pc-linux-
gnu/3.4.0/ada_object_path", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("system.ads", 0xbfffecd0)        = -1 ENOENT (No such file or directory)
stat64("/net/camos/opt/exec/Linux-i686/exec/Linux-i686/lib/gcc/i686-pc-linux-
gnu/3.4.0/adainclude/system.ads", 0xbfffec10) = -1 ENOENT (No such file or 
directory)
write(1, "fatal error, run-time library no"..., 54fatal error, run-time library 
not installed correctly
) = 54
write(1, "cannot locate file system.ads\n", 30cannot locate file system.ads
) = 30
write(2, "compilation abandoned\n", 22compilation abandoned
...

It looks like the compiler doubles the exec prefix in the path, therefore it 
doesn't find the file located here:

/net/camos/opt/exec/Linux-i686/lib/gcc/i686-pc-linux-
gnu/3.4.0/adainclude/system.ads

-- 
           Summary: ada compiler not working after installation
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: markus dot schoepflin at comsoft dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15819


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]