[uClibc] gcc compile error under sh

Jeff Mak ourfun_jeff at yahoo.com
Sat Mar 20 02:43:30 UTC 2004


Hi,
 
When I tried to build a SH target system, I've got the following errors when building libgcc2.c.  Indeed, i didn't have this problem when building ARM and I386.  Does anyone come across that before?  I search back the archive mail list and find similar
 
http://www.uclibc.org/lists/uclibc/2002-August/004177.html
 
but not sure if it is related.
 
Many thanks,
Jeff
 
======================================================

gcc -c -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H    -I. -I/local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc -I/local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/config -I/local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/../include /local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/genattrtab.c
gcc -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H  -o genattrtab \
 genattrtab.o rtl.o bitmap.o print-rtl.o rtlanal.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 ` 
if cmp -s Makefile   /local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/config/sh/sh.md; \
then                          \
  echo Using ;    \
  cp  tmp-attrtab.c;    \
else                          \
  ./genattrtab /local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/config/sh/sh.md > tmp-attrtab.c;   \
fi
/local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/move-if-change tmp-attrtab.c insn-attrtab.c
insn-attrtab.c is unchanged
touch s-attrtab
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  /local_sh_default/buildroot/toolchain_build_sh/gcc2_95-initial/gcc/xgcc -B/local_sh_default/buildroot/toolchain_build_sh/gcc2_95-initial/gcc/ -B/local_sh_default/buildroot/build_sh/staging_dir/sh-linux-uclibc/bin/ -I/local_sh_default/buildroot/build_sh/staging_dir/sh-linux-uclibc/include -O2  -DCROSS_COMPILE -DIN_GCC     -g -O2 -I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -I. -I/local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc -I/local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/config -I/local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/../include -c -DL${name} \
       /local_sh_default/buildroot/toolchain_build_sh/gcc-20011006/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  sh-linux-uclibc-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
/tmp/ccojCU9x.s: Assembler messages:
/tmp/ccojCU9x.s:6: Error: unknown pseudo-op: `.def'
/tmp/ccojCU9x.s:6: Error: unknown pseudo-op: `.scl'
/tmp/ccojCU9x.s:6: Error: unrecognized symbol type ""
/tmp/ccojCU9x.s:6: Warning: rest of line ignored; first ignored character is `0'
/tmp/ccojCU9x.s:6: Error: expected comma after name `' in .size directive
/tmp/ccojCU9x.s:6: Warning: rest of line ignored; first ignored character is `4'
/tmp/ccojCU9x.s:6: Error: unknown pseudo-op: `.endef'
=============================================================



Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20040319/1d8c8a0d/attachment-0002.htm 


More information about the uClibc mailing list