This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

libgcc1.a - BALIGN and P2ALIGN


Hi.

I'm trying to build a cross compiler to FreeBSD on my Linux box:

- binutils 2.11, cross compiled with target i386-freebsd

- I copied the headers and the libs from the FreeBSD machine.

- I compiled the libgcc1.a on the FreeBSD machine (with the source
  configured to host Linux and target FreeBSD).
  
- GCC 2.95.3:
	./configure --target=i386-freebsd
	make

And I got this (in the libgcc phase):

mv -f cplib2.new cplib2.txt 
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}; \
  /usr/local/src/gcc-2.95.3/gcc/xgcc -B/usr/local/src/gcc-2.95.3/gcc/
-B/usr/local/i386-freebsd/bin/ -I/usr/local/i386-freebsd/include -O2
-DCROSS_COMPILE -DIN_GCC     -g -O2 -I./include   -g1  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I./config -I./../include -c
-DL${name} \
       ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  i386-freebsd-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
/tmp/ccI2WwME.s: Assembler messages:
/tmp/ccI2WwME.s:143: Error: Alignment not a power of 2
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/usr/local/src/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2


I tried to change the gcc/auto-host.h file, to define
HAVE_GAS_BALIGN_AND_P2ALIGN, but I got the same error. I'm doing something
wrong here, or this is a bug in the configuration? What can I do to get
this cross compiler compiled?

Thanks in advance.

Márcio.


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