Prob building libgcc2
Stuart J Adams
sja@world.std.com
Mon Dec 15 21:06:00 GMT 1997
Configured as per FAQ (patched srcs):
../gcc-2.7.2.2/configure --prefix=/usr/local/sh --target=sh-elf
Then I get the following errors building libgcc2:
...
echo ${name}; \
./xgcc -v -B./ -Dinhibit_libc -O2 -DCROSS_COMPILE -DIN_GCC -g -I./include
-g1 -I. -I../gcc-2.7.2.2 -I../gcc-2.7.2.2/config -c -DL${name} \
../gcc-2.7.2.2/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
/usr/local/sh/sh-elf/bin/ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
Reading specs from ./specs
gcc version 2.7.2.2
./cpp -lang-c -v -I./include -I. -I../gcc-2.7.2.2 -I../gcc-2.7.2.2/config -isys
tem ./include -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -D__sh__ -D__sh__ -Acpu(sh)
-Amachine(sh) -D__OPTIMIZE__ -g -g1 -Dinhibit_libc -DCROSS_COMPILE -DIN_GCC -DL
_muldi3 ../gcc-2.7.2.2/libgcc2.c /tmp/cca06252.i
GNU CPP version 2.7.2.2 (Hitachi SH)
#include "..." search starts here:
#include <...> search starts here:
./include
.
../gcc-2.7.2.2
../gcc-2.7.2.2/config
./include
/usr/local/sh/lib/gcc-lib/sh-elf/2.7.2.2/include
/usr/local/sh/lib/gcc-lib/sh-elf/2.7.2.2/sys-include
/usr/local/sh/sh-elf/include
End of search list.
./cc1 /tmp/cca06252.i -quiet -dumpbase libgcc2.c -g -g1 -O2 -version -o /tmp/cc
a06252.s
GNU C version 2.7.2.2 (Hitachi SH) compiled by GNU C version 2.7.2.1.
/usr/local/sh/sh-elf/bin/as -o _muldi3.o /tmp/cca06252.s
/tmp/cca06252.s: Assembler messages:
/tmp/cca06252.s:13: Error: Unknown pseudo-op: `.def'
/tmp/cca06252.s:13: Error: Unknown pseudo-op: `.scl'
/tmp/cca06252.s:13: Error: ignoring unrecognized symbol type ""
...
Any ideas ???
Thanks,
Stuart
More information about the crossgcc
mailing list