Subject: Building gcc 2.95.2 on an ELF system
To: None <port-i386@netbsd.org>
From: Matthias Scheler <tron@zhadum.de>
List: port-i386
Date: 02/17/2000 12:45:40
Hello,
has anybody successfully built gcc 2.95.2 on an i386 ELF system? On my
system it dies while creating "libgcc2":
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}; \
/src/NetBSD-current/pkgsrc/lang/gcc/work/gcc-2.95.2/gcc/xgcc -B/src/NetBSD-current/pkgsrc/lang/gcc/work/gcc-2.95.2/gcc/ -B/usr/pkg/i386--netbsd/bin/ -I/usr/pkg/i386--netbsd/include -O2 -DIN_GCC -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -I./../include -c -DL${name} \
-DUSE_COLLECT2 ./libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
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
_floatdidf
/tmp/cc8TRc9h.s: Assembler messages:
/tmp/cc8TRc9h.s:130: Error: Alignment not a power of 2
gmake[1]: *** [libgcc2.a] Error 1
gmake[1]: Leaving directory `/src/NetBSD-current/pkgsrc/lang/gcc/work/gcc-2.95.2/gcc'
gmake: *** [all-gcc] Error 2
*** Error code 2
I configured it with options "-with-gnu-as --with-gnu-ld --host=i386--netbsd".
Kind regards
--
Matthias Scheler http://www.sighardstrasse.de/~tron/