http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47467
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot | |gnu.org --- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-01-26 21:49:12 UTC --- > Is targext.c really supposed to be part of LIBGNAT_SRCS for the target or is > this just a host side compiler helper? Unfortunately the former. The symbols defined in targext.c are included by s-os_lib.adb, which is renamed to g-os_lib.adb for the library. Does the following patch work? Index: targext.c =================================================================== --- targext.c (revision 169285) +++ targext.c (working copy) @@ -33,8 +33,13 @@ /* extension for object and executable files. It is used by the compiler, */ /* binder and tools. */ +#ifdef IN_RTS +#include "tconfig.h" +#include "tsystem.h" +#else #include "config.h" #include "system.h" +#endif #include "coretypes.h" #include "tm.h"