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]

3.0.2 cross compiler 686->ppc-linux


I'm having a bit of a headache producing a  i686-pc-linux-gnu to ppc-linux cross
compiler with 3.0.2. here, I've followed the (meagre) instructions in the new
info docs.

contents of /usr/local/ppc-linux/lib:

HOLLY:/tmp/scratch# ls -l /usr/local/ppc-linux/lib/
total 2804
-rw-r--r--    1 root     staff         580 Oct 30 12:24 Mcrt1.o
-rw-r--r--    1 root     staff        1228 Oct 30 12:24 crt1.o
-rw-r--r--    1 root     staff        1096 Oct 30 12:24 crti.o
-rw-r--r--    1 root     staff         775 Oct 30 12:24 crtn.o
-rw-r--r--    1 root     staff        1664 Oct 30 12:24 gcrt1.o
-rw-r--r--    1 root     staff     2842536 Oct 26 17:19 libc.a
-rw-r--r--    1 root     staff         178 Oct 26 17:19 libc.so
lrwxrwxrwx    1 root     staff           7 Oct 30 16:32 libc.so.6 -> libc.so

config.status:
../gcc-3.0.2/configure --with-gcc-version-trigger=/tmp/gcc-3.0.2/gcc/version
.c --host=i686-pc-linux-gnu --target=ppc-linux
 --norecursion


make cross bails at the first cross link, like so:

if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/tmp/scratch/gcc/xgcc -B/tmp/scratch/gcc/ -B/usr/local/ppc-linux/bin/ -B/usr
/local/ppc-linux/lib/ -isystem
/usr/local/ppc-linux/include -O2  -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-s
trings -Wstrict-prototypes -Wmissing-prototypes -isystem
/include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -share
d -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o
libgcc_s.so  -fPIC -mstrict-align libgcc/./_muldi3.o libgcc/./_divdi3.o
libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_negdi2.o
libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrd
i3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_udiv_w_sdiv.o
libgcc/./_udivmoddi4.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o
libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o
libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o
libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o
libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o
libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o
libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o
libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o
libgcc/./_addvsi3.o libgcc/./_add
vdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o
libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o
libgcc/./_pack_sf.o libgcc/./_unpack_sf.o libgcc/./_addsub_sf.o
libgcc/./_mul_sf.o libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o
libgcc/./_compare_sf.o libgcc/./_eq_sf.o libgcc/./_ne_sf.o libgcc/./_gt_sf.o
libgcc/./_ge_sf.o libgcc/./_lt_sf.o libgcc/./_le_sf.o libgcc/./_unord_sf.o
libgcc/./_si_to_sf.o libgcc/./_sf_to_si.o libgcc/./_negate_sf.o
libgcc/./_make_sf.o libgcc/./_sf_to_df.o libgcc/./_thenan_sf.o
libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o libgcc/./_pack_df.o
libgcc/./_unpack_df.o libgcc/./_addsub_df.o libgcc/./_mul_df.o
libgcc/./_div_df.o libgcc/./_fpcmp_parts_df.o libgcc/./_compare_df.o
libgcc/./_eq_df.o libgcc/./_ne_df.o libgcc/./_gt_df.o libgcc/./_ge_df.o
libgcc/./_lt_df.o libgcc/./_le_df
.o libgcc/./_unord_df.o libgcc/./_si_to_df.o libgcc/./_df_to_si.o
libgcc/./_negate_df.o libgcc/./_make_df.o libgcc/./_df_to_sf.o
libgcc/./_thenan_df.o libgcc/./_df_to_usi.o libgcc/./_usi_to_df.o
libgcc/./tramp.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o
libgcc/./unwind-sjlj.o -lc && rm -f libgcc_s.so.1 && ln -s libgcc_s.so
libgcc_s.so.1

If anyone can point out what i'm doing wrong, i'd be very happy :)
(BTW, i'd also love to be able to build a cross compiler with a different
--prefix, but this causes even more problems, with the wrong 'as' getting called
being the 1st error)

Thanks to anyone that can help,

Rob Taylor
FPS


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