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]

Re: Problems with building cross-compiler from Cygwin to PowerPC


Paul Mikell wrote:
> 
> 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 

Actually my initial diagnosis wasn't quite right:

> 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.

If this is the case, then how come it finds powerpc-unknown-eabi-ar and
-ranlib below:
 
> 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

It appears to be building libio - which it is only meant to do after
buildign the rest of the compiler. I imagine the real error would be
further up in the output you gave, rather than at the point it failed
completely.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Un cheval, pas du glue. Pas du cheval, beaucoup du glue. || Opinions==mine

------
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]