Problems building a powerpc-vxworks cross compiler (1)
SXTHREE
sxthree@penfeld.tls.mms.fr
Thu Apr 2 02:44:00 GMT 1998
Compilation of libgcc2 failed:
--->
for file in ../../egcs-980321/gcc/frame.c fp-bit.c dp-bit.c eabi.S eabi-ctors.c
tramp.S cplib2.txt ; do \
name=`echo ${file} | sed -e 's/[.][cSo]$//' -e 's/[.]asm$//' -e
's/[.]txt$//'`; \
oname=` echo ${name} | sed -e 's,.*/,,'`; \
if [ ${name}.txt = ${file} ]; then \
for f in .. `cat ${file}`; do if [ x${f} != x.. ]; then \
make GCC_FOR_TARGET="/thesee00/gnu/sources/obj/gcc/xgcc
-B/thesee00/gnu/sources/obj/gcc/" \
AR="powerpc-wrs-vxworks5.3-ar" AR_FLAGS="rc" CC="gcc" \
CFLAGS="-g -O2" HOST_PREFIX="" \
HOST_PREFIX_1="loser-" \
LANGUAGES="c c++" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2
-I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions
-mrelocatable-lib -mno-eabi -mstrict-align" ${f}; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
powerpc-wrs-vxworks5.3-ar rc tmplibgcc2.a ${f}; \
rm -f ${f}; \
else true; \
fi; done; \
else \
echo ${name}; \
if [ ${name}.asm = ${file} ]; then \
cp ${file} ${name}.s || exit 1; file=${name}.s; \
else true; fi; \
/thesee00/gnu/sources/obj/gcc/xgcc -B/thesee00/gnu/sources/obj/gcc/ -O2
-DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -fexceptions -mrelocatable-lib -mno-eabi
-mstrict-align -I. -I../../egcs-980321/gcc -I../../egcs-980321/gcc/config -c
${file}; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
powerpc-wrs-vxworks5.3-ar rc tmplibgcc2.a ${oname}.o; \
rm -f ${name}.s ${oname}.o; \
fi; \
done
../../egcs-980321/gcc/frame
fp-bit
dp-bit
eabi
eabi.S: Assembler messages:
eabi.S:135: Error: Relocation cannot be done when using -mrelocatable
eabi.S:136: Error: Relocation cannot be done when using -mrelocatable
eabi.S:137: Error: Relocation cannot be done when using -mrelocatable
eabi.S:138: Error: Relocation cannot be done when using -mrelocatable
eabi.S:141: Error: Relocation cannot be done when using -mrelocatable
make[3]: *** [libgcc2.a] Error 1
>---
config.status:
--->
#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# This directory was configured as follows:
../egcs-980321/configure --host=sparc-sun-solaris2.5.1 --prefix=/thesee00/gnu
--target=powerpc-wrs-vxworks5.3 --with-gn
u-as --with-gnu-ld --with-cpu=604 --norecursion
# using "mh-frag"
>---
as version:
GNU assembler 980303 - powerpc-wrs-elf32
(binutil does not support powerpc-wrs-vxworks5.3 target but elf32
works fine)
I think a "-D_RELOCATABLE" flag should be added (or -mrelocatable-lib
may imply -mrelocatable ?).
What do you think about this ?
More PPC VxWorks news later...
FM
FM
More information about the Gcc
mailing list