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]

Please help get me started...


Hi everyone:

First, let me see if I am on the right track.  What I eventually want is
a c/c++ compiler that is hosted on i386-linux and generates code for
arm-linux-elf and links against the uC-libc library.  This library
should include the linux-threads package.  Do I build a cross compiler
first with newlib then use that to compile uC-libc or can I start
building the compiler wiith uC-libc.

What I am trying to do is build a gcc cross compiler hosted on a
i386-intel machine running linux and cross compiling to
target=arm-linux-elf.  I have read the CrossGcc FAQ.  I have run the
one-tree-1.6.sh with binutils-2.10.tar.gz,  gcc-2.95.tar.gz and
newlib-1.9.0.tar.gz in the tars directory.

What I have done so far is:

1) run one-tree-1.6.sh in ~/crossgcc

2) copy the header files from
~crossgcc/newlib-1.9.0/newlib/libc/include to
/usr/local/arm-linux/include

3) make ~/crossgcc/build

4) enter this directory and issue the command:

../src/configure --target=arm-linux --with-newlib

5) make all

This stops with an error as follows:

cp ../../src/gcc/config/arm/lib1funcs.asm libgcc1.S
for name in _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx; \
do \
  echo ${name}; \
  /home/rob/crosscompiler/build/gcc/xgcc
-B/home/rob/crosscompiler/build/gcc/ -B/usr/local/arm-linux/bin/
-I/usr/local/arm-linux/include -O2  -DCROSS_COMPILE -DIN_GCC     -g -O2
-I./include  -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I.
-I../../src/gcc -I../../src/gcc/config -I../../src/gcc/../include -c
-DL${name} libgcc1.S; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  mv libgcc1.o ${name}.o; \
  /home/rob/crosscompiler/build/binutils/ar rc tmplibgcc1.a ${name}.o; \

  rm -f ${name}.o; \
done
_udivsi3
_divsi3
_umodsi3
_modsi3
_dvmd_lnx
libgcc1.S:438: asm/unistd.h: No such file or directory
make[1]: *** [libgcc1-asm.a] Error 1

I have noticed that there are much newer compilers, ie.
gcc-2.95.3.tar.gz.  Should I use this one?  If not what have I done
wrong?



------
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]