This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems with building cross-compiler from Cygwin to PowerPC


I am trying to build a cross-compiler from Cygwin to PowerPC 750, and I have
encountered a few problems. I have used the following commands (I'm not sure
if
--with-cpu=750 is right):

mkdir build-binutils
cd  build-binutils
../binutils-2.10.1/configure --target=powerpc-unknown-eabi --with-cpu=750 --
prefix=//E/CrossComp
make all install

I think that this is supposed to install some utilities with the prefix
"powerpc-unknwon-eabi-", but the only file that it actually installs is
//E/CrossComp/lib/libiberty.a.

mkdir build-gcc
cd build-gcc
../gcc-2.95.2/configure --target=powerpc-unknown-eabi --with-cpu=750 --prefi
x=//E/CrossComp
make all install

The output from make in build-gcc shows that it is checking for executables
with
the prefix "powerpc-unknown-eabi-", none of which exist. I think that some
of
these (powerpc-unknown-eabi-ar, powerpc-unknown-eabi-ranlib,
powerpc-unknown-eabi-nm) were supposed to be installed by running "make all
install" in build-binutils, but two of them (powerpc-unknown-eabi-gcc and
powerpc-unknown-eabi-c++) are targets of "make all install" in build-gcc. It
appears that the Makefile is trying to run these executables before they
have
been built. Also some tests are failing because of a missing conftest.out
file.
The error messages occurred in the following lines from the end of the
output of
"make all install" in build-gcc:

checking for powerpc-unknown-eabi-ar... powerpc-unknown-eabi-ar
checking for powerpc-unknown-eabi-ranlib... powerpc-unknown-eabi-ranlib
checking for gcc... powerpc-unknown-eabi-gcc
checking whether we are using GNU C... no
checking for POSIXized ISC... no
checking for a BSD compatible install...
file://e/cygnus/CYGWIN~1/H-I586~1/bin/install -c
checking how to run the C preprocessor... grep: conftest.out: No such file
or directory
powerpc-unknown-eabi-gcc -E
checking for sys/file.h... grep: conftest.out: No such file or directory
yes
checking for sys/param.h... grep: conftest.out: No such file or directory
yes
checking for stdlib.h... grep: conftest.out: No such file or directory
yes
checking for string.h... grep: conftest.out: No such file or directory
yes
checking for unistd.h... grep: conftest.out: No such file or directory
yes
checking for strings.h... grep: conftest.out: No such file or directory
yes
checking for sys/time.h... grep: conftest.out: No such file or directory
yes
checking for sys/resource.h... grep: conftest.out: No such file or directory
yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether the C compiler (powerpc-unknown-eabi-gcc -g -O2 ) works...
no
configure: error: installation or configuration problem: C compiler cannot
create executables.
if [ x"no" = xyes ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
rootme=`pwd`/ ; export rootme; \
CC="powerpc-unknown-eabi-gcc -I. -I../../../gcc-2.95.2/libio"; export CC; \
CXX="powerpc-unknown-eabi-c++ -I. -I../../../gcc-2.95.2/libio -nostdinc++ -n
ostdinc++ -g -O2"; export CXX; \
CONFIG_NM="powerpc-unknown-eabi-nm"; export CONFIG_NM; \
/bin/sh ../../../gcc-2.95.2/libio/gen-params LIB_VERSION=2.8.0
>tmp-params.h
powerpc-unknown-eabi-c++: not found
gen-params: could not compile dummy.C with
powerpc-unknown-eabi-c++ -I. -I../../../gcc-2.95.2/libio -nostdinc++ -nostdi
nc++ -g -O2
make[1]: *** [_G_config.h] Error 1
make: *** [all-target-libio] Error 2

--
Paul Mikell
Rare Ltd                Telephone: +44 (0) 1827 883 400
Manor Park
Twycross, Warwickshire  Fax:       +44 (0) 1827 883 410
CV9 3QN, England


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]