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

Bug#903694: Bug#856274: patch



On 15.07.2018 17:12, Nicolas Boulenguez wrote:
> Hello.
> 
> The attached reproducer_installed demonstrates that
> * 903694 is a bug in gcc-7, not in the source for gcc-snapshot.
> * 856274 is fixed in gcc-7.
> 
> I have tried to rebuild gcc-7 with itself, replacing the former
> debian/patches/ada-gcc-name.diff with the attached version.
> 
> Then reproducer_in_tree reported no error,
> so I hope that the fixed gcc-7 will be able to build gcc-snapshot
> and will cause no regression with 856274.
> I have not been able to test the installed version in a porterbox.
> 
> It may be possible to enforce the gnatlink executable name manually in
> gcc-snapshot and make it buildable by unfixed gcc-7 versions, but it
> is much work because of the mess with recursive Make invokations.

this patch calls the unversioned gcc again, and makes gcc-8-cross ftbfs with GCC
7 as the default, and makes gcc-7-cross ftbfs with GCC 8 as the default:

rm -f ada/bldtools/sinfo/sinfo.ads ada/bldtools/sinfo/sinfo.adb
ada/bldtools/sinfo/xsinfo.adb ada/bldtools/sin
fo/csinfo.adb
cp -p ../../src/gcc/ada/sinfo.ads ../../src/gcc/ada/sinfo.adb
../../src/gcc/ada/xsinfo.adb ../../src/gcc/ada/c
sinfo.adb ada/bldtools/sinfo
(cd ada/bldtools/sinfo; gnatmake -q xsinfo ; ./xsinfo sinfo.h )
gcc: error trying to exec 'gnat1': execvp: No such file or directory
gnatmake: "xsinfo.adb" compilation error
/bin/bash: ./xsinfo: No such file or directory
make[5]: *** [../../src/gcc/ada/Make-generated.in:45: ada/sinfo.h] Error 127
make[5]: *** Waiting for unfinished jobs....


Reply to: