[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#856274: removal of ada-gcc-name patch causes build failures for non default gnat builds



On Mon, 2017-02-27 at 12:27 +0100, Matthias Klose wrote:
> Package: gnat-5,gnat-6,gnat-7
> Severity: important
> X-Debbugs-CC: Svante Signell <svante.signell@gmail.com>
> 
> The recent gcc-5 upload with the ada-gcc-name patch removed results in build
> failures, because gnatmake now calls /usr/bin/gcc (which points to gcc-6), and
> doesn't find an installed gnat1 binary [1]. So I think that the workaround
> from
> #814978 only works for the default gnat version, and we should properly fix
> this
> issue.  Just adding gnat-6 as a build dependency won't help, because we cannot
> assume that a newer gnat is able to build an older gnat.
> 
> So we need to investigate where the doubled suffix comes from.

Agreed. Just two observations:

1) In ada-acats.diff the gcc version should be gcc-5 not gcc-6:
-+echo exec /usr/bin/gnatchop --GCC=gcc-6 '$*' >> host_gnatchop
++echo exec /usr/bin/gnatchop --GCC=gcc-5 '$*' >> host_gnatchop

2) Why do the compiler driver call gcc instead of gcc-<version>?
(This is probably here the ada-gcc-name.diff comes into play)
gnatmake -v xnmake
GNATMAKE 5.4.1
Copyright (C) 1992-2015, Free Software Foundation, Inc.
  "xnmake.ali" being checked ...
  -> "xnmake.ali" missing.
gcc -c xnmake.adb
gcc: error trying to exec 'gnat1': execvp: No such file or directory
End of compilation
gnatmake: "xnmake.adb" compilation error

ls -l /usr/bin/gnatmake
lrwxrwxrwx 1 root root 10 Feb  5 22:06 /usr/bin/gnatmake -> gnatmake-5

gnatmake-5 -v xnmake
<same as above>


Reply to: