This is the mail archive of the gcc@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]

cross gnat tools on head question


Hi,

I am trying to build a cross gnat on the head.  I am configuring
and building like this:

./gcc/configure --target=powerpc-rtems4.7 --enable-threads=rtems --prefix=/opt/rtems-test --with-gnu-as --with-gnu-ld --with-newlib --verbose --with-system-zlib --disable-nls --enable-version-specific-runtime-libs --enable-languages=c,c++,ada
make


The above is for the powerpc but this issue is CPU independent and
probably not even RTEMS specific.

The builds all fail when attempting to build gnatlink.  It is using
the native gnatbind and the newly cross xgcc.  In this case, that
is an x86 gnatbind and a PowerPC xgcc.  I think the "--GCC" argument to
gnatbind should be using the CC_FOR_HOST not CC. Can someone comment
on that?

If it is supposed to be CC_FOR_HOST, does something need to be changed
to get it passin properly?

gnatbind -I/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/../adainclude -I/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/ -I. -I/opt/usr3/ftp_archive/gnu/gcc/ss/b-head/gcc/gcc/ada -static -x gnatlink
gnatlink -v gnatlink -o ../../gnatlinknew \


--GCC="/usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/gcc/xgcc -B/usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/gcc/ -nostdinc -B/usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/powerpc-rtems4.7/newlib/ -isystem /usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/powerpc-rtems4.7/newlib/targ-include -isystem /usr3/ftp_archive/gnu/gcc/ss/b-head/gcc/newlib/libc/include -B/opt/rtems-test/powerpc-rtems4.7/bin/ -B/opt/rtems-test/powerpc-rtems4.7/lib/ -isystem /opt/rtems-test/powerpc-rtems4.7/include -isystem /opt/rtems-test/powerpc-rtems4.7/sys-include -I/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/../adainclude -I/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/ -I. -I/opt/usr3/ftp_archive/gnu/gcc/ss/b-head/gcc/gcc/ada" ../../prefix.o ../../version.o link.o ../../../libiberty/libiberty.a

GNATLINK 4.0.0 20050113 (experimental)
Copyright 1995-2004 Free Software Foundation, Inc
xgcc -c -gnatA -gnatWb -gnatiw -B/usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/gcc/ -nostdinc -B/usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/powerpc-rtems4.7/newlib/ -isystem /usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/powerpc-rtems4.7/newlib/targ-include -isystem /usr3/ftp_archive/gnu/gcc/ss/b-head/gcc/newlib/libc/include -B/opt/rtems-test/powerpc-rtems4.7/bin/ -B/opt/rtems-test/powerpc-rtems4.7/lib/ -isystem /opt/rtems-test/powerpc-rtems4.7/include -isystem /opt/rtems-test/powerpc-rtems4.7/sys-include -I/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/../adainclude -I/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/ -I. -I/opt/usr3/ftp_archive/gnu/gcc/ss/b-head/gcc/gcc/ada -gnatws b~gnatlink.adb
/usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/gcc/xgcc b~gnatlink.o ../../prefix.o ../../version.o link.o ./alloc.o ./debug.o ./gnatvsn.o ./hostparm.o ./rident.o ./types.o ./csets.o ./output.o ./indepsw.o ./sdefault.o ./switch.o ./tree_io.o ./opt.o ./table.o ./ali.o ./osint.o ./fname.o ./fmap.o ./butil.o ./gnatlink.o ./widechar.o ./namet.o ./casing.o -o ../../gnatlinknew ../../../libiberty/libiberty.a -L./ -L/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/../adainclude/ -L/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/ -L./ -L/opt/usr3/ftp_archive/gnu/gcc/ss/b-head/gcc/gcc/ada/ -L/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/ /opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/libgnat.a -B/usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/gcc/ -nostdinc -B/usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/powerpc-rtems4.7/newlib/ -isystem /usr3/ftp_archive/gnu/gcc/ss/b-head/b-powerpc-rtems4.7/powerpc-rtems4.7/newlib/targ-include -isystem /usr3/ftp_archive/gnu/gcc/ss/b-head/gcc/newlib/libc/include -B/opt/rtems-test/powerpc-rtems4.7/bin/ -B/opt/rtems-test/powerpc-rtems4.7/lib/ -isystem /opt/rtems-test/powerpc-rtems4.7/include -isystem /opt/rtems-test/powerpc-rtems4.7/sys-include -I/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/../adainclude -I/opt/gcc-40-CVS/lib/gcc/i686-pc-linux-gnu/4.0.0/adalib/ -I. -I/opt/usr3/ftp_archive/gnu/gcc/ss/b-head/gcc/gcc/ada
/opt/rtems-test/powerpc-rtems4.7/bin/ld: ../../prefix.o: Relocations in generic ELF (EM: 3)
../../prefix.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status



-- Joel Sherrill, Ph.D. Director of Research & Development joel@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985


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