public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Cross compile error question: i686 to powerpc--linux-gnu
@ 2001-10-16 13:28 Joe Sislow
  0 siblings, 0 replies; only message in thread
From: Joe Sislow @ 2001-10-16 13:28 UTC (permalink / raw)
  To: gcc-help

Hello,

I've been pulling what little hair I have out trying to get a cross
compiler build.  Here's the info:

Directory structure
/cross/powerpc--linux-gnu/
    binutils-2.11.2
    build-binutils
    gcc-2.95.3
    build-gcc
    newlib-1.9.0
    build-newlib

Environment variables
    TARGET=powerpc--linux-gnu
    PREFIX=/cross

I built with the following commands (from Bill Gatliff's FAQ as well as
message posts):

Binutils step (from build-binutils directory):
    ../binutils-2.11.2/configure --target=${TARGET} --prefix=${PREFIX}
    make all install

GCC Bootstrap step (from build-gcc directory):
    ../gcc-2.9.3/configure --target=${TARGET}
--prefix=${PREFIX} --with-newlib --disable-shared --enable-cross
    make all-gcc install-gcc

Newlib step (from build-newlib directory):
    ../newlib-1.9.0/configure --target=${TARGET} --prefix=${PREFIX}
    make all install

I'm fine up to that point (I think).  However, when I go to build the
final gcc with the newly built libraries with the following (from
build-gcc directory):
    ../gcc-2.9.3/configure --target=${TARGET} --prefix=${PREFIX}
    make all install

I get two noticable errors.  First:
--
checking whether the C compiler
(/cross/powerpc--linux-gnu/build-gcc/gcc/xgcc
-B/cross/powerpc--linux-gnu/build-gcc/gcc/
-B/cross/powerpc--linux-gnu/bin/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
--
It doesn't quit there, though...then it goes into the second problem:
--
make[1]: Entering directory
`/cross/powerpc--linux-gnu/build-gcc/powerpc--linux-gnu/libio'
test x"no" != xyes ||\
  /cross/powerpc--linux-gnu/build-gcc/gcc/xgcc
-B/cross/powerpc--linux-gnu/build-gcc/gcc/
-B/cross/powerpc--linux-gnu/bin/ -c -g -O2 -I.
-I../../../gcc-2.95.3/libio -D_IO_MTSAFE_IO
../../../gcc-2.95.3/libio/iogetline.c -o pic/iogetline.o
/cross/powerpc--linux-gnu/build-gcc/gcc/xgcc
-B/cross/powerpc--linux-gnu/build-gcc/gcc/
-B/cross/powerpc--linux-gnu/bin/ -c -g -O2 -I.
-I../../../gcc-2.95.3/libio -D_IO_MTSAFE_IO
../../../gcc-2.95.3/libio/iogetline.c
In file included from ../../../gcc-2.95.3/libio/iolibio.h:1,
                 from ../../../gcc-2.95.3/libio/libioP.h:47,
                 from ../../../gcc-2.95.3/libio/iogetline.c:26:
../../../gcc-2.95.3/libio/libio.h:30: _G_config.h: No such file or
directory
make[1]: *** [iogetline.o] Error 1
make[1]: Leaving directory
`/cross/powerpc--linux-gnu/build-gcc/powerpc--linux-gnu/libio'
make: *** [all-target-libio] Error 2
--

Now, I've read BOTH faqs on the topic (only two clear ones I can find):
http://crossgcc.billgatliff.com/crossgccfaq/t1.html
http://www.sthoward.com/CrossGCC/

I know that I have _G_config.h in my /usr/include and /usr/local/include
directories.  However, it's nowhere in my /cross tree.  I've tried to
copy it over to a directory in the tree, but there are too many other
dependencies.

Can anyone help with the above errors?  Is there more information I need
to give?  Thanks to anyone that can assist.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Joe Sislow
Cosmodog, Ltd.
flynn@cosmodog.com



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-16 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-16 13:28 Cross compile error question: i686 to powerpc--linux-gnu Joe Sislow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).