LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Outwater <Keith_Outwater@mvis.com>
To: "'linuxppc-embedded@lists.linuxppc.org'"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Problems building ppc cross compiler under RH7.2 x86
Date: Wed, 14 Nov 2001 06:06:32 -0800	[thread overview]
Message-ID: <E62DBC698514D511A1AC0003470C1314EE2B83@EXCHANGE> (raw)


Greetings all -
I'm trying to build a powerpc-linux cross compiler on a stock Redhat 7.2 x86
system.

I've followed all of the steps in the "Cross Development mini-howto for PPC
Linux " at
http://penguinppc.org/embedded/cross-compiling/ to the letter, but the build
fails on the
"Rebuilding gcc to use glibc" step in the mini-howto with the following
error:

.
.
.
Configuring in powerpc-linux/libiberty
loading cache ./config.cache
checking host system type... powerpc-unknown-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for powerpc-linux-ar... powerpc-linux-ar
checking for powerpc-linux-ranlib... powerpc-linux-ranlib
checking for gcc...
/home/keith/projects/mpc860-linux/tools/build-gcc/gcc/xgcc
-B/home/keith/projects/mpc860-linux/tools/build-gcc/gcc/
-B/usr/local/powerpc-linux/bin/
checking whether we are using GNU C... yes
checking whether /home/keith/projects/mpc860-linux/tools/build-gcc/gcc/xgcc
-B/home/keith/projects/mpc860-linux/tools/build-gcc/gcc/
-B/usr/local/powerpc-linux/bin/ accepts -g... yes
checking for POSIXized ISC... no
checking for a BSD compatible install... /usr/bin/install -c
Appending ../../../gcc-2.95.2/libiberty/config/../../config/mh-ppcpic to
xhost-mkfrag
xhost-mkfrag is unchanged
checking how to run the C preprocessor...
/home/keith/projects/mpc860-linux/tools/build-gcc/gcc/xgcc
-B/home/keith/projects/mpc860-linux/tools/build-gcc/gcc/
-B/usr/local/powerpc-linux/bin/ -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for sys/resource.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether the C compiler
(/home/keith/projects/mpc860-linux/tools/build-gcc/gcc/xgcc
-B/home/keith/projects/mpc860-linux/tools/build-gcc/gcc/
-B/usr/local/powerpc-linux/bin/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
make[1]: Entering directory
`/home/keith/projects/mpc860-linux/tools/build-gcc/powerpc-linux/libio'
test x"yes" != xyes || \
  /home/keith/projects/mpc860-linux/tools/build-gcc/gcc/xgcc
-B/home/keith/projects/mpc860-linux/tools/build-gcc/gcc/
-B/usr/local/powerpc-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE
-fno-implicit-templates -I. -I../../../gcc-2.95.2/libio -nostdinc++
-D_IO_MTSAFE_IO -fPIC ../../../gcc-2.95.2/libio/indstream.cc -o
pic/indstream.o
../../../gcc-2.95.2/libio/indstream.cc: In method `struct streampos
indirectbuf::seekoff(long long int, ios::seek_dir, int = 3)':
../../../gcc-2.95.2/libio/indstream.cc:82: `struct streampos' used where a
`int' was expected
../../../gcc-2.95.2/libio/indstream.cc:85: `struct streampos' used where a
`int' was expected
../../../gcc-2.95.2/libio/indstream.cc:87: `struct streampos' used where a
`int' was expected
../../../gcc-2.95.2/libio/indstream.cc:89: conversion from `int' to
non-scalar type `streampos' requested
../../../gcc-2.95.2/libio/indstream.cc: In method `struct streampos
indirectbuf::seekpos(_G_fpos64_t, int = 3)':
../../../gcc-2.95.2/libio/indstream.cc:99: `struct streampos' used where a
`int' was expected
../../../gcc-2.95.2/libio/indstream.cc:102: `struct streampos' used where a
`int' was expected
../../../gcc-2.95.2/libio/indstream.cc:104: `struct streampos' used where a
`int' was expected
../../../gcc-2.95.2/libio/indstream.cc:106: conversion from `int' to
non-scalar type `streampos' requested
make[1]: *** [indstream.o] Error 1
make[1]: Leaving directory
`/home/keith/projects/mpc860-linux/tools/build-gcc/powerpc-linux/libio'
make: *** [all-target-libio] Error 2


I'd appreciate any help or suggestions on how to solve this problem.

Thanks!
Keith

Keith Outwater
Sr. Electrical Engineer
Microvision, Inc.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2001-11-14 14:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-14 14:06 Keith Outwater [this message]
2001-11-14 16:37 ` Problems building ppc cross compiler under RH7.2 x86 Chen Yaoming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E62DBC698514D511A1AC0003470C1314EE2B83@EXCHANGE \
    --to=keith_outwater@mvis.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox