This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: Help! Errors when building a Linux hosted Compiler for lynxOS 2.5 / Alignment not a power of 2





Hi all

Just to let you know, i no longer get the 'command not found' errors, but still
get the ' Alignment not a power of 2' message ...   Anybody know how to fix
this??

Thanks

Manoj



Hi everyone,

I am really stuck on building gcc (v 2.95.3)  at the moment .....   I manage to
build bin-utils (v. 2.10.1), but that is as far as i get at the moment.  I was
getting the common error when the stdlib.h are not found, these are sorted by
configureing using the --with-headers option etc.
At the moment i get warnings with a couple of files, and eventually, some
errors.  Please find the results below.
Thanks for any help!

Regards

Manoj



host=host=i686-pc-linux
target=i386-unknown-lynxos
prefix=/new_gcc
i=$prefix/bin


cd build-binutils/
../binutils-2.10.1/configure --target=$target --prefix=$prefix
--with-headers=../lynxOS-usr/include --with-libs=/home/solankim/lynxOS-usr/lib
--enable-languages=c++
make all install

---    "builds fine"      ---


cd ../build-gcc
../gcc-2.95.3/configure --target=$target --prefix=$prefix
--with-headers=../lynxOS-usr/include --with-libs=/home/solankim/lynxOS-usr/lib
--enable-languages=c++
make all install

../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type
../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type
../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type
../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type
../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type
../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type
../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type
../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type
../../gcc-2.95.3/gcc/toplev.c:1179: warning: initialization from incompatible
pointer type


../libiberty/libiberty.a(choose-temp.o): In function `choose_temp_base':
/home/solankim/build-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'

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}; \
  /home/solankim/build-gcc/gcc/xgcc -B/home/solankim/build-gcc/gcc/
-B/new_gcc/i386-unknown-lynxos/bin/ -I/new_gcc/i386-unknown-lynxos/include -O2
-DCROSS_COMPILE -DIN_GCC     -g -O2 -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; \
  i386-unknown-lynxos-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
/bin/sh: i386-unknown-lynxos-ar: command not found
_divdi3
/bin/sh: i386-unknown-lynxos-ar: command not found
_moddi3
/bin/sh: i386-unknown-lynxos-ar: command not found
_udivdi3
/bin/sh: i386-unknown-lynxos-ar: command not found
_umoddi3
/bin/sh: i386-unknown-lynxos-ar: command not found
_negdi2
/bin/sh: i386-unknown-lynxos-ar: command not found
_lshrdi3
/bin/sh: i386-unknown-lynxos-ar: command not found
_ashldi3
/bin/sh: i386-unknown-lynxos-ar: command not found
_ashrdi3
/bin/sh: i386-unknown-lynxos-ar: command not found
_ffsdi2
/bin/sh: i386-unknown-lynxos-ar: command not found
_udiv_w_sdiv
/bin/sh: i386-unknown-lynxos-ar: command not found
_udivmoddi4
/bin/sh: i386-unknown-lynxos-ar: command not found
_cmpdi2
/bin/sh: i386-unknown-lynxos-ar: command not found
_ucmpdi2
/bin/sh: i386-unknown-lynxos-ar: command not found
_floatdidf
/tmp/ccgtDQvz.s: Assembler messages:
/tmp/ccgtDQvz.s:103: Error: Alignment not a power of 2











------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com





------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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