A problem about building a cross GCC compiler on WIN32

guobing guobing at sohu.com
Wed Feb 16 12:34:09 UTC 2000


Hello,folks!Recently I want to build a cross GNU compiler on Windows NT 4.0 with Cygwin-B20.All stuff includs egcs-1.1.2,binutils-2.9.1,newlib-1.8.1,egcs-1_1_2-x86-win32-diff.zip.My target is i386-pc-coff.I have built binutils-2.9.1 completely and its path have been added into cygnus.bat.But when I build cross gcc with command"./configure --verbose --target=i386-pc-coff --prefix=/gcc-i386 --with-newlib",error always occur.The error message is shown in following:

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}; \
  //d/temp/unix/build/egcs-1.1.2/gcc/xgcc -B//d/temp/unix/build/egcs-1.1.2/gcc/ -O2  -DCROSS_COMPILE -DIN_GCC    -g -O2 -I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I../../../source/egcs-1.1.2/gcc -I../../../source/egcs-1.1.2/gcc/config -c -DL${name} \
      ../../../source/egcs-1.1.2/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  i386-pc-coff-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_lshrdi3
_ashldi3
_ashrdi3
_ffsdi2
_udiv_w_sdiv
_udivmoddi4
_cmpdi2
_ucmpdi2
_floatdidf
C:\TEMP\ccvMzOpj.s: Assembler messages:
C:\TEMP\ccvMzOpj.s:112: Error: Alignment not a power of 2
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `//d/temp/unix/build/egcs-1.1.2/gcc'
make: *** [cross] Error 2

The more details can been seen in the attachments.Anyone can help me?Thanks.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: myerrlog
Type: application/octet-stream
Size: 50001 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20000216/0cd2b25c/attachment.obj>


More information about the users mailing list