------- Comment #8 from simon at pushface dot org 2010-02-02 06:26 ------- It's much worse than that..
Aside from the other object file which triggers the same bug, the make of gnatlink and gnatmake calls in libgnat.a twice. And when you build the other GNAT tools, it calls in all the Ada-derived RTS object files explicitly as well as libgnat.a. I did try deleting them, but (a) the C-derived object files are required, (b) that would mean rebuilding the entire RTS for the smallest change. So I reorganised the bind/link not to call in libgnat.a; to do that you need a libgnatc.a for the C-derived object files. So far so good; but now 'make check-ada' fails for every test in exactly the same way! See http://gcc.gnu.org/ml/gcc-patches/2010-01/msg01596.html (also referenced in comment #4) for the last attempt at this approach (NB it has one error, see http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00005.html). I agree my latest patch here is rather global, but Fortran builds fine and 'make check-fortran' is only showing XFAILs. I can probably make an alternative, restricted to Ada only, might stand more chance of being accepted. -- simon at pushface dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Can't build gnatlink, |Can't build GNAT tools |gnatmake | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42554