cross-compiling problems
Stephen Biggs
s.biggs@softier.com
Tue Oct 8 13:52:00 GMT 2002
Maybe try configuring by adding the option "--disable-threads" both in the binutils and gcc? Did
you use --with-newlib and --enable-multilib all the way through the configure stages? I don't know
if multilib is necessary for the sparc, but it probably wouldn't hurt... if not, leave out that
option.
One way to try it first is to do the link below to newlib, and try a full build of gcc without the -
-disable-threads. If that doesn't work, then rebuild binutils and gcc both with --disable-threads.
First, I built binutils.
$ cd build-binutils
$ ../binutils-2.13/configure --prefix=/root/crosser/sparc --with-newlib --target=sparc-sun-
solaris2.5 --enable-multilib
$ make all install
$ cd ..
The way I got gcc to build was to add a symbolic link in the top level gcc directory to newlib:
$ ln -s newlib-1.10.0/newlib gcc-2.95.3/newlib
I was then able to build a full compiler without the intermediate step of making a bootstrap
compiler.
$ cd build-gcc
$ ../gcc-2.95.3/configure --prefix=/root/crosser/sparc --target=sparc-sun-solaris2.5 --with-newlib
--enable-multilib
$ make all install
On 9 Oct 2002 at 4:28, azmir ibrahim wrote:
> hello...i need some help here on building a cross compiler on RedHat 7.2 for
> solaris2.5.I'm just a newbie.I'm hoping somebody can give me some help
>
> host=i686-pc-linux-gnu
> target=sparc-sun-solaris2.5
> prefix=/root/crosser/sparc
>
> i already downloaded gcc-2.95.3 , newlib-1.10.0 and binutils-2.13
>
> here i my step
> my first step is building binutils
>
> $ mkdir build-gcc sparc build-newlib build-binutils
> $ cd build-binutils
> $ ../binutils-2.13/configure --prefix=/root/crosser/sparc
> --target=sparc-sun-solari s2.5
> $ make all install
> $ export PATH=$PATH:/root/crosser/sparc/bin
>
> all seem to work like it should have
> the next step is building a bootstrap gcc
>
> $ cd ..
> $ cd build-gcc
> $ ../gcc-2.95.3/configure --prefix=/root/crosser/sparc
> --target=sparc-sun-solari s2.5 --without-headers --with-newlib
> $ make all-gcc install-gcc
>
> An error has occured in this step.Here is the error:
>
> In file included from gthr-default.h:1,
> from ../../gcc-2.95.3/gcc/gthr.h:98,
> from ../../gcc-2.95.3/gcc/libgcc2.c:3034:
> ../../gcc-2.95.3/gcc/gthr-posix.h:37: pthread.h: No such file or directory
> make[1]: *** [libgcc2.a] Error 1
> make[1]: Leaving directory `/root/crosser/build-gcc/gcc'
> make: *** [all-gcc] Error 2
>
> I am hoping somebody can help me.I already read the tutorial and manual but
> i still cannot compile the gcc.
> Thank you in advance.
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> ------
> Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
>
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list