This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Issues in building cross compiler


I'm building a cross compiler with the following configuration:

host=sparc-sun-solaris2.7
target=powerpc-eabi
prefix=/home/cheon/gnu/ppc-eabi
i=$prefix/bin

../gcc-2.95.2/configure --target=$target --prefix=$prefix -v
gnumake all install

and I got the following errors when I did the

'gnumake all install' on gcc-2.95.2:

1)
checking whether the C compiler (/home/cheon/gnu/gcc-2.95.2-obj/gcc/xgcc
-B/home/cheon/gnu/gcc-2.95.2-obj/gcc/
-B/home/cheon/gnu/ppc-eabi/powerpc-eabi/bin/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.

2)
dummy.c:1: sys/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 /home/cheon/gnu/gcc-2.95.2-obj/gcc/xgcc
-B/home/cheon/gnu/gcc-2.95.2-obj/gcc/
-B/home/cheon/gnu/ppc-eabi/powerpc-eabi/bin/ -I.
-I../../../gcc-2.95.2/libio -E on dummy.c

Seems that the dummy.c is a self generated file. What is the use of it ?
Any clue why those header files are not found ? What is the purpose of xgcc
and the corresponding -B option ? Does xgcc expect these header files in
gcc-2.95.2/libio ? Why are they not in the gcc-2-95.2 source package ?

I'm using gcc-2.95.2 and bootutils-2.9.1

My bootutils-2.9.1 build for the same target was successful. But the
gcc-2.95.2 build for the same target with the same host generated this
problem. 

Any help is appreciated,

David

------------------------------------------------------------------------------

checking how to run the C preprocessor... /lib/cpp
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... no
checking whether the C compiler (/home/cheon/gnu/gcc-2.95.2-obj/gcc/xgcc
-B/home/cheon/gnu/gcc-2.95.2-obj/gcc/
-B/home/cheon/gnu/ppc-eabi/powerpc-eabi/bin/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
gnumake[1]: Entering directory
`/home/cheon/gnu/gcc-2.95.2-obj/powerpc-eabi/libio'
if [ x"no" = xyes ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
rootme=`pwd`/ ; export rootme; \
CC="/home/cheon/gnu/gcc-2.95.2-obj/gcc/xgcc
-B/home/cheon/gnu/gcc-2.95.2-obj/gcc/
-B/home/cheon/gnu/ppc-eabi/powerpc-eabi/bin/ -I.
-I../../../gcc-2.95.2/libio"; export CC; \
CXX="/home/cheon/gnu/gcc-2.95.2-obj/gcc/xgcc
-B/home/cheon/gnu/gcc-2.95.2-obj/gcc/
-B/home/cheon/gnu/ppc-eabi/powerpc-eabi/bin/ -I.
-I../../../gcc-2.95.2/libio -nostdinc++ -nostdinc++ -g -O2"; export CXX;
\
CONFIG_NM="powerpc-eabi-nm"; export CONFIG_NM; \
/bin/sh ../../../gcc-2.95.2/libio/gen-params LIB_VERSION=2.8.0 
>tmp-params.h
dummy.c:1: sys/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 /home/cheon/gnu/gcc-2.95.2-obj/gcc/xgcc
-B/home/cheon/gnu/gcc-2.95.2-obj/gcc/
-B/home/cheon/gnu/ppc-eabi/powerpc-eabi/bin/ -I.
-I../../../gcc-2.95.2/libio -E on dummy.c
gnumake[1]: *** [_G_config.h] Error 1
gnumake[1]: Leaving directory
`/home/cheon/gnu/gcc-2.95.2-obj/powerpc-eabi/libio'
gnumake: *** [all-target-libio] Error 2

------------- End Forwarded Message -------------



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