problem compiling a cross compiler

problem compiling a cross compiler

Post by maja.ostrou.. » Sun, 11 Jul 1999 04:00:00

Hi !
            I wolud like to compile a cross compiler. I use the
egcs-1.1.2. src and when i isue the command
make LANGUAGES=c i get the following error:

rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_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 _*oline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  /usr/src/egcscros/gcc/xgcc -B/usr/src/egcscros/gcc/ -O2
-DCROSS_COMPILE -DIN_GCC    -g -O2 -I./include  -fPIC -g1  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED   -I. -I/usr/src/egcs-1.1.2/gcc
-I/usr/src/egcs-1.1.2/gcc/config -c -DL${name} \
      /usr/src/egcs-1.1.2/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  i686-pc-linux-gnu-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
/usr/src/egcs-1.1.2/gcc/libgcc2.c:41: stdlib.h: No such file or
/usr/src/egcs-1.1.2/gcc/libgcc2.c:42: unistd.h: No such file or
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/usr/src/egcscros/gcc'
make: *** [all-gcc] Error 2

Can Anybody tell me why ? I use  Slackware 3.6.

Thank zou in advance and best regards


1. Gcc Cross-Compiler Compile Troubles ...

Hello all,

I have successfully built bin utils (binutils- I have added
the bin directory of this build to my PATH.

Here is the command sequence I am attempting:
 > ./configure --target=powerpc-linux --enable-shared
--enable-languages=c --with-newlib
 > make

During the second command is where I see the -mppc error ... I think he
must have to do with the make system not getting the right "as" passed
into the "gcc" directory. If so though I would assume people have seen
it before.

As well I am seeing a problem during the call to configure as well ...
configure spawns a thread that calls "dialogue" which simply hangs ...
but if I suspend configure then kill the thread runnning dialogue it
seems to recover ... maybe this problem is causing the other. This hang
does not occur if I try configure on gcc-3.x.x.

Any help or insight would be greatly appreciated,

ps should I remove the "enable-shared" ?

2. speedtouch.c will not compile

3. Compiling Packages for an embedded Linux with cross compiler ?

4. Updating my XFree86 3.3.2 to 3.3.3 under S.u.S.E. , help.....

5. Gcc Cross Compiler Compile Troubles

6. How to configure the kde menu?

7. problem in setup cross-compiler in cygwin.

8. nodelay problem on serial terminals

9. HELP!! Cross compiler/linker problem

10. Cross Compiler Problems

11. Problems building a cross-compiler

12. HELP!! Cross compiler/linker problem

13. problems building cross-compiler host/build in linux for target i686-pc-msdosdjgpp (long)