This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Prob building libgcc2


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