This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cross-compiler: ppc->i386
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: Jeff Elkins <jeffelkins at earthlink dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 10 Mar 2003 09:45:30 -0800
- Subject: Re: Cross-compiler: ppc->i386
- References: <200303101134.01486.jeffelkins@earthlink.net>
- Reply-to: gcc-help at gcc dot gnu dot org
Jeff Elkins <jeffelkins at earthlink dot net> writes:
> Hello List,
>
> I have successfully build a gcc 3.2.2 cross-compiler for i386->ppc and am now
> attempting to build a cross for ppc->i386. All steps succeed with the
> exception of the final gcc rebuild. The tail end of the error is appended
> below, and the entire error log is attached to this message.
>
> In addition to gcc 3.2.2, I'm using binutils-2.13.2.1 and glibc-2.3.1 with
> linuxthreads-2.3.1. glibc-2.3.2 refuses to compile if gcc is compiled with
> --disable-shared, so I dropped back a version.
>
> I am configuring gcc with:
>
> ./configure --host=powerpc-linux \
> --build=powerpc-linux --target=i386-linux \
> --prefix=/home/jeff/i386 \
> --with-headers=/home/jeff/i386/include \
> --with-libs=/home/jeff/i386/lib --enable-shared --disable-nls \
> --enable-add-ons --enable-threads=posix --enable-languages=c,c++
>
> Thanks for any assistance,
>
> Jeff Elkins
>
> ==============
> In file included from /home/jeff/i386/include/math.h:362,
> from /home/jeff/gcc-3.2.2/i386-linux/libstdc++-v3/include/cmath:51,
> from
> /home/jeff/gcc-3.2.2/i386-linux/libstdc++-v3/include/bits/locale_facets.tcc:41,
> from /home/jeff/gcc-3.2.2/i386-linux/libstdc++-v3/include/locale:46,
> from /home/jeff/gcc-3.2.2/i386-linux/libstdc++-v3/include/bits/ostream.tcc:37,
> from /home/jeff/gcc-3.2.2/i386-linux/libstdc++-v3/include/ostream:275,
> from /home/jeff/gcc-3.2.2/i386-linux/libstdc++-v3/include/bitset:58,
> from bitset.cc:43:
> /home/jeff/i386/include/bits/mathinline.h: In function `double log1p(double)':
> /home/jeff/i386/include/bits/mathinline.h:539: `logl' undeclared (first use
> this function)
> /home/jeff/i386/include/bits/mathinline.h:539: (Each undeclared identifier is
> reported only once for each function it appears in.)
> make[3]: *** [bitset.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive-am] Error 2
> make: *** [all-target-libstdc++-v3] Error 2
My first guess is that your libc doesn't have logl. I suppose you
could try getting a newer libc...