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

[help] - build a gcc 2.95.3 fpa tool chain from/with a 3.4.5 vfp chain



hi all,

this is my first submission as have only just begun looking into toolchains.

ive got a sharp zaurus sl-5500 that has Strongarm SA1110 cpu, and have the os/rom pdaxrom beta1 installed. this comes with the 3.5.4 gcc toolchain compiled as soft vfp.

im trying to compile some modules which require the same version of gcc as compiled the kernel (2.4.18-rmk7-pxa3-embedix) , in this case a cross-sdk/toolchain on my x86 with arm-linux-gcc 2.95.3.

so ive been trying to build a 2.95.3 fpa toolchain...

following the guide at LFS has helped some, and alot of scroogle searches, but i keep running into trouble with ld complaining about FPA conflicting with soft version files...


#1 - the current glibc is vfp, do i need to make fpa glibc before anything ?

#2 - the target is detecting as ' armv4l-unknown-linux-gnu ' , is this going to need extra configure/make paramaters ?

#3 - the errors i am coming across are durring the bootstrap section, if i dont do bootstrap it finish's, do i need bootstrap:

../gcc-2.95.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c --with-cpu=strongarm --with-fpu=fpa --with-float=hard && make bootstrap  

any tips, advice or pointers greatly appreaciated:
thankyou.

here is last part of 'make bootstrap':


make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make CC="stage1/xgcc -Bstage1/ -B/tools/armv4l-unknown-linux-gnu/bin/" CFLAGS=" -O2 -g -O2" LDFLAGS="" libdir=/tools/lib STAGE_PREFIX=stage1/ LANGUAGES="c proto gcov "
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
(cd intl && make all)
make[3]: Entering directory `/mnt/lfs/sources/gcc-build/gcc/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc/intl'
stage1/xgcc -Bstage1/ -B/tools/armv4l-unknown-linux-gnu/bin/ -c -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H -I. -I../../gcc-2.95.3/gcc -I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include \
../../gcc-2.95.3/gcc/gencheck.c
rm -f obstack.c
ln -s ../../gcc-2.95.3/gcc/../libiberty/obstack.c obstack.c
stage1/xgcc -Bstage1/ -B/tools/armv4l-unknown-linux-gnu/bin/ -c -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H -I. -I../../gcc-2.95.3/gcc -I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include obstack.c
stage1/xgcc -Bstage1/ -B/tools/armv4l-unknown-linux-gnu/bin/ -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H -o gencheck \
gencheck.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` 
/tools/armv4l-unknown-linux-gnu/bin/ld: ERROR: stage1/crtbegin.o uses FPA instructions, whereas gencheck does not
/tools/armv4l-unknown-linux-gnu/bin/ld: ERROR: stage1/crtbegin.o uses hardware FP, whereas gencheck uses software FP
/tools/armv4l-unknown-linux-gnu/bin/ld: failed to merge target specific data of file stage1/crtbegin.o
/tools/armv4l-unknown-linux-gnu/bin/ld: ERROR: gencheck.o uses FPA instructions, whereas gencheck does not
/tools/armv4l-unknown-linux-gnu/bin/ld: ERROR: gencheck.o uses hardware FP, whereas gencheck uses software FP
/tools/armv4l-unknown-linux-gnu/bin/ld: failed to merge target specific data of file gencheck.o
/tools/armv4l-unknown-linux-gnu/bin/ld: ERROR: obstack.o uses FPA instructions, whereas gencheck does not
/tools/armv4l-unknown-linux-gnu/bin/ld: ERROR: obstack.o uses hardware FP, whereas gencheck uses software FP
/tools/armv4l-unknown-linux-gnu/bin/ld: failed to merge target specific data of file obstack.o
/tools/armv4l-unknown-linux-gnu/bin/ld: ERROR: stage1/crtend.o uses FPA instructions, whereas gencheck does not
/tools/armv4l-unknown-linux-gnu/bin/ld: ERROR: stage1/crtend.o uses hardware FP, whereas gencheck uses software FP
/tools/armv4l-unknown-linux-gnu/bin/ld: failed to merge target specific data of file stage1/crtend.o
collect2: ld returned 1 exit status
make[2]: *** [gencheck] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2
lfs:/sources/gcc-build$


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