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/13076] New: gnatlib can't be built cross


configure --target=i386-rtems --enable-languages=c,ada --with-newlib ...

# make -C gcc gnatlib
...
../../xgcc -B../../ -c -DCROSS_COMPILE -DIN_GCC   `echo -g -O2  -fexceptions -DI
N_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`      \
         -I. -I.. -I../.. -I/users/rtems/src/packages/BUILD/rtems-4.7-i386-rtems
4.7-gcc-newlib-gcc3.3.2newlib1.11.0/gcc-3.3.2/gcc/ada -I/users/rtems/src/package
s/BUILD/rtems-4.7-i386-rtems4.7-gcc-newlib-gcc3.3.2newlib1.11.0/gcc-3.3.2/gcc/ad
a/.. -I/users/rtems/src/packages/BUILD/rtems-4.7-i386-rtems4.7-gcc-newlib-gcc3.3
.2newlib1.11.0/gcc-3.3.2/gcc/ada/../config -I/users/rtems/src/packages/BUILD/rte
ms-4.7-i386-rtems4.7-gcc-newlib-gcc3.3.2newlib1.11.0/gcc-3.3.2/gcc/ada/../../inc
lude -I./../.. -I/users/rtems/src/packages/BUILD/rtems-4.7-i386-rtems4.7-gcc-new
lib-gcc3.3.2newlib1.11.0/gcc-3.3.2/gcc/ada/../.. -I../.. \
      -DPREFIX=\"/opt/rtems-4.7\" /users/rtems/src/packages/BUILD/rtems-4.7-i386
-rtems4.7-gcc-newlib-gcc3.3.2newlib1.11.0/gcc-3.3.2/gcc/ada/../prefix.c
In file included from /users/rtems/src/packages/BUILD/rtems-4.7-i386-rtems4.7-gc
c-newlib-gcc3.3.2newlib1.11.0/gcc-3.3.2/gcc/prefix.c:69:
/users/rtems/src/packages/BUILD/rtems-4.7-i386-rtems4.7-gcc-newlib-gcc3.3.2newli
b1.11.0/gcc-3.3.2/gcc/system.h:117:22: strings.h: No such file or directory
make[2]: *** [prefix.o] Error 1

Apparent cause is prefix.c including config.h, which subsequently includes
auto-host.h.

auto-host.h contains the configure-detected values for the build-host, not for
the target as building gnatlib assumes

=> gnatlib is being compiled by the cross-compiler, using the configuation
values having been detected for the build-host

=> gnatlib can not be cross-compiled for *any* target.

-- 
           Summary: gnatlib can't be built cross
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: corsepiu at faw dot uni-ulm dot de
                CC: gcc-bugs at gcc dot gnu dot org,joel at oarcorp dot com
  GCC host triplet: any
GCC target triplet: any != host


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


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