Pierre Taczynski wrote:
> Bonjour,
> J'ai d�fini les
> variables ainsi:
> host=i586-pc-linux target=sparc-sun-solaris
> Les sources (newlib, binutils, gcc et gdb) sont dans:
> /usr/local/srccross
> Je veux installer le compilateur crois� dans: /usr/local/crosscompiler
> Je configure et installe avec succ�s binutils, je configure aussi gcc
> sans erreur de sortie, mais lors du "make all install" j'obtiens ce
> message:
> ../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: Aucun fichier ou r�pertoire
> de ce type
> ../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: Aucun fichier ou r�pertoire
> de ce type
> make[1]: *** [libgcc2.a] Error 1
> make[1]: Leaving directory `/usr/local/srccross/build-gcc/gcc'
> make: *** [all-gcc] Error 2
> Comment me sortir de cette situation, alors que je suis sur une station
> fra�chement install�e?
> Merci.
Salut,
La tu t'engage dans une gal�re!
Enfin, a priori c'est un probl�me de headers pour ta cible
sparc-sun-solaris.
J'ai un message tir�e de la ML de GCC qui traite de la m�me erreur pour
un h�te et une cible diff�rente cela devrait t'aider.
Bon , c'est en anglais.
Sinon le meilleur conseil c'est d'aller sur la mailing liste de GCC et de
chercher
dans les archives; tu trouvera assez rapidement ton bonheur. (voir aussi FAQ
gcc).
Voil�.
Beno�t
FAQ http://www.objsw.com/CrossGCC/
List http://gcc.gnu.org/lists.html
search http://gcc.gnu.org/lists.html#searchbox
PS : Je ai du modifier le msg en attach� parce qu'il contenait
un mot interdit c'est le mot ??? (ce n'est pas grossier).
Apart� le message de retour si mot no-no trouv�
Hi
Sympa mailing list robot has discovered that you have
posted a message
containing a "no-no" word to one of the mailing lists.
Your e-mail will NOT
appear on the mailing list.
-
Subject: Re: building the cross compiler does not find unistd.h and stdlib.h
Date: Fri, 04 Aug 2000 09:16:48 -0300
From: Jo�o Cadamuro Junior <[EMAIL PROTECTED]>
To: douglas <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
> Hi
>
> I am trying to build a cross compiler on an ultra-sparc running redhat
> 6.2, for the i686 platform running linux as well. I am using gcc-2.95.2,
> binutils-2.10.0 and glibc-2.1.3. I am not having luck building
> gcc-2.95.2. The build of gcc-2.95.2 can not find unistd.h and stdlib.h
>
> Notes on the configuration:
>
> The cross build process works well for binutils-2.10.0. I used the
> configuration parameters
>
> ./binutils-2.10/configure --target=i686-linux --prefix=/cross/i686 -v
>
> In a seperate directory, During the build of gcc-295.2
>
> ./gcc-2.95.2/configure --target=i686-linux --prefix=/cross/i686
> --with-headers=../glibc-2.13/include -v
>
> Here is the output of the make all process for gcc-2.95.2...
>
> /home/douglas/cross/buildgcc/gcc/xgcc -B/home/douglas/cross/buildgcc/gcc/
> -B/cross/i686/i686-linux/bin/ -I/cross/i686/i686-linux/include -O2
> -DCROSS_COMPILE -DIN_GCC -g -O2 -I./include -fPIC -g1 -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc-2.95.2/gcc
> -I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include -c
> -DL${name} \
> ../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
> if [ $? -eq 0 ] ; then true; else exit 1; fi; \
> i686-linux-ar rc tmplibgcc2.a ${name}.o; \
> rm -f ${name}.o; \
> done
> _muldi3
> In file included from ../../gcc-2.95.2/gcc/libgcc2.c:41:
>
>/cross/i686/lib/gcc-lib/i686-linux/2.95.2/../../../../i686-linux/sys-include/stdlib.h:7:
> stdlib/stdlib.h: No such file or directory
> In file included from ../../gcc-2.95.2/gcc/libgcc2.c:42:
>
>/cross/i686/lib/gcc-lib/i686-linux/2.95.2/../../../../i686-linux/sys-include/unistd.h:2:
> posix/unistd.h: No such file or directory
> make[1]: *** [libgcc2.a] Error 1
> make[1]: Leaving directory `/home/douglas/cross/buildgcc/gcc'
> make: *** [all-gcc] Error 2
>
>
> In the above process I have also used newlib-1.8.2/newlib/include as well.
>
Dear Douglas,
I had a similar problem when building my cross compiler (host cygwin and taget
powerpc-eabi) using newlib 1.8.2.
To solve the problem I searched for a tip in the mail archives, and I found the
following: (I don't remember who owns the credit...
sorry)
The problem is solved making two simbolic links inside <gcc-src-dir>/gcc-2.95.2
directory, pointing to newlib directory, as follow:
$ cd <gcc-src-dir>/gcc-2.95.2
$ ln -s <newlib-src-dir>/newlib-1.8.2/newlib newlib
$ ln -s <newlib-src-dir>/newlib-1.8.2/libgloss libgloss
I use this tip and I configure the cross compiler in this manner:
$ cd <gcc-build-dir>
$ <gcc-src-dir>/gcc-2.95.2/configure --target=powerpc-eabi --prefix=<my-prefix>
--with-newlib
At the end of configure, my command
$ make all install
was ended successfully.
Hope this can help you...
Jo�o Cadamuro Junior
LIT / CPDTT / CEFET-PR
>
>
> - Douglas
>
> ------
> Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to ? Send a note to [EMAIL PROTECTED]
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to ? Send a note to [EMAIL PROTECTED]