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]

Problem: Error: Alignment not a power of 2. Re: Help building GCC2.95.3 For LynxOS 2.3, dwarf2 error


Hi Folks

I have overcome the last problem only to get an error "Error: Alignment
not a power of 2".  I have searched the archives for a solution to this,
there are a few posts there but nothing which has helped me.  How can I
fix this problem?

Cheers

Tony

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  Error MEssage
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
  echo "" > cplib2.new;; \
esac
mv -f cplib2.new cplib2.txt 
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi_ashrdi3 _ffsdi2 _udiv_w_
sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdi _fixunsdfsi
_fixunssfsi _fixunsdfdi _fixdfdi _fix
unssfdi _fixsfdi _fixxfdi _funsxfdi _floatdixf _fixunsxfsi _fixtfdi
_fixunstfdi _floatditf __gcc_bcmp _
vargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit
_ctors _pe; \
do \
  echo ${name}; \
  ./xgcc -B/usr/local/i386-unknown-lynxos2.3.0/bin/ -B./
-I/usr/local/i386-unkwn-lynxos2.3.0/include -O
2   -DIN_GCC     -g -I./include   -g1  -DIN_LIBGCC2
-_GCC_FLOAT_NOT_NEEDED   -I. -I../../gcc-2.95.3/gcc
 -I../../gcc-2.95.3/gcc/conf -I../../gcc-2.95.3/gcc/../include -c
-DL${name} \
       ../../gcc-2.95.3/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ` if [ -f /home3/antony/objdir/gcc/../binutils/ar ] ; then echo
/home3/antonobjdir/gcc/../binutils/ar
 ; else if [ "i386-unknown-lynxos" = "i386-unknown-lyos" ] ; then echo
ar; else t='s,x,x,'; echo ar | s
ed -e $t ; fi; fi` rc tmplibc2.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/ccgQoWlS.s: Assembler messages:
/tmp/ccgQoWlS.s:94: Error: Alignment not a power of 2
make[2]: *** [libgcc2.a] Error 1
make[1]: *** [bootstrap] Error 1
make: *** [bootstrap] Error 1
bash$ pwd



Antony Stace wrote:
> 
> Hi Folks
> 
> I want to compile gcc 2.95.3 on LynxOS 2.3.  I ran the configure script
> as
> 
> $CFLAG="-mposix" LIBS="-lnetinet" ../gcc-2.95.3/configure --with-gnu-as
> --with-gnu-ld
> 
> And then the make as
> 
> $CFLAGS="-mposix" LIBS="-lnetinet"  make bootstrap
> 
> The make goes for ages and ages and compiles many files only to fail
> with the error
> 
> do \
>   echo ${name}; \
>   ./xgcc -B/usr/local/i386-unknown-lynxos2.3.0/bin/ -B./
> -I/usr/local/i386-unkno
> wn-lynxos2.3.0/include -O2   -DIN_GCC     -g -I./include   -g1
> -DIN_LIBGCC2 -D_
> _GCC_FLOAT_NOT_NEEDED   -I. -I../../gcc-2.95.3/gcc
> -I../../gcc-2.95.3/gcc/config
>  -I../../gcc-2.95.3/gcc/../include -c -DL${name} \
>        ../../gcc-2.95.3/gcc/libgcc2.c -o ${name}.o; \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   ` if [ -f /home3/antony/objdir/gcc/../binutils/ar ] ; then echo
> /home3/antony/
> objdir/gcc/../binutils/ar ; else if [ "i386-unknown-lynxos" =
> "i386-unknown-lynx
> os" ] ; then echo ar; else t='s,x,x,'; echo ar | sed -e $t ; fi; fi` rc
> tmplibgc
> c2.a ${name}.o; \
>   rm -f ${name}.o; \
> done
> _muldi3
> /tmp/cc9Q5Z7t.s: Assembler messages:
> /tmp/cc9Q5Z7t.s:1: Fatal error: dwarf2 is not supported for this object
> file for
> 
> I have installed binutils 2.11 which I successfully built before I tried
> to make gcc,  I
> made the binutils with
> 
> $CFLAG="-mposix" LIBS="-lnetinet" ./configure
> $make
> 
> Can someone please tell me how to get this build to work.
> 
> Cheers
> 
> Antony


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