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]

gen-params problem during make all install of gcc for powerpc-eab i with Solaris host


Hi there!

Feel like we're getting real close to a cross compiler, but now failing deep
into the last step.  Suggestions would be greatly appreciated.  Exact steps
follow with (comments) when appropriate.

1. installed a "native" gcc in /export/home/opt/gnu/bin; tested it; it works

2. set up directories and adjusted PATH for building gcc and his friends:

#cd /export/home/gnu-source  (contains directories binutils-2.11.90.0.1,
gcc-2.95.2, newlib-1.9.0, and gdb-5.0)
#mkdir build-binutils build-gcc build-newlib build-gdb
#host=sparc-sun-solaris2
#target=powerpc-eabi
#prefix=/export/home/crossnew
#i=$prefix/bin
#PATH=$i:$prefix:$PATH:/export/home/opt/gnu/bin; export PATH
#CC=/export/home/opt/gnu/bin/gcc; export CC

3. configure and install binutils

#cd build-binutils
#../binutils-2.11.90.0.1/configure --target=$target --prefix=$prefix
--with-headers=/export/home/gnu-source/newlib-1.9.0/newlib/libc/include -v
#make all install

4. workaround probable bug in autogenerated scripts of step 5

#cd $prefix/powerpc-eabi
#ln -s sys-include include

5. configure and (almost) install gcc

#cd /export/home/gnu-source/build-gcc
#../gcc-2.95.2/configue --target=$target --prefix=$prefix -v
#make all install

RESULT:  Made it past the point of building the cross compiler.  Then it
tested various features, with everything OK except POSIX compatibility and
(more disturbingly) "whether the C compiler works...no
configure: error: installation or configuration problem: C compiler cannot
create executables."

Then the Makefile proceeds to run gen-params via
/bin/sh ../../../gcc-2.95.2/libio/gen-params LIB_VERSION=2.8.0
>tmp-params.h

but fails with messages

dummy.c:1: ss/types.h: No such file or directory
dummy.c:8 stdio.h: No such file or directory
dummy.c:9: time.h: No such file or directory
dummy.c:10: signal.h: No such file or directory
gen-params: could not invoke /export/home/gnu-source/build-gcc/gcc/xgcc
-B/export/home/gnu-source/build-gcc/gcc/
-B/export/home/crossnew/powerpc-eabi/bin/ -I. -I../../../gcc-2.95.2/libio -E
on dummy.c

Note that the 4 headers are a subset of the headers included in dummy.c.  I
thought (or at least hoped) that I had gotten past the finding the header
problems with the adjustments made up in steps 2 and 4 above.

Any thoughts?  Is the "C compiler cannot create executables" message normal
at this point?  Naming that file dummy.c seems to be unnecessarily cruel.
Y'all need not taunt a newbie like me!!

Regards, Steve Conyers  

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