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]
Other format: [Raw text]

Help w/ gcc cross build failing


Hi -

I'm trying to build a GCC 3.4.1 crosscompiler hosted on a Win2K PC (building under Cygwin) with a
powerpc-*-eabi target (need to support PPC750, PPC74xx, MPC82xx, & MPC85xx). When I looked on 
the GCC 3.4 project web site it didn't appear that anyone else has reported building the powerpc-*-eabi.

I've already built the bin-utils (2.14) for powerpc-eabi and they appear to be working. 

When I build GCC I get an error building genmodes.o. The error from xgcc appears to be that it can't find
stdio.h and several other headers that are included by ...\gcc-3.4.1\gcc\system.h. What isn't clear to me
is which version of stdio.h *should* be used. I tried editing the makefile to use the headers in /usr/local,
but that caused linker errors down the line. I also found a couple of copies of stdio.h in the source tree of
the distribution I downloaded from gcc.gnu.org but I can't find one in any of the places the compiler
appears to be searching for.

Any ideas about what I should do next? Is there a step I'm missing? Below is the output of the make log 
that I get when the build fails...

Thanks in advance,

Jon Watson

$ make bootstrap
make[1]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/libiberty'
make[2]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/libiberty/testsuite
'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/libiberty/testsuite'

make[1]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/libiberty'
make[1]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/intl'
make[1]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/zlib'
: make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g
 -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/usr/bin/insta
ll -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/insta
ll -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCF
LAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=/cygdrive/d/gcc/gcc-3.4.1/miss
ing makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin
/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/cygdrive/c/
gnutools/gcc-3.4.1" "infodir=/cygdrive/c/gnutools/gcc-3.4.1/info" "libdir=/cygdr
ive/c/gnutools/gcc-3.4.1/lib" "prefix=/cygdrive/c/gnutools/gcc-3.4.1" "tooldir=/
cygdrive/c/gnutools/gcc-3.4.1/powerpc-eabi" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "
LD=/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld.ex
e" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi
-do
make[1]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/zlib'
Bootstrapping the compiler
make[1]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
make CC=" stage1/xgcc.exe -Bstage1/ -B/cygdrive/c/gnutools/gcc-3.4.1/powerpc-eab
i/bin/" CC_FOR_BUILD=" stage1/xgcc.exe -Bstage1/ -B/cygdrive/c/gnutools/gcc-3.4.
1/powerpc-eabi/bin/" \
         STAGE_PREFIX=stage1/ \
         ADAFLAGS="" CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)
" STRICT_WARN="-pedantic -Wno-long-long -Wold-style-definition " libdir=/cygdriv
e/c/gnutools/gcc-3.4.1/lib LANGUAGES="c gcov.exe gcov-dump.exe c++ f77 java objc
" MAKEINFO="/cygdrive/d/gcc/gcc-3.4.1/missing makeinfo --split-size=5000000" MAK
EINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
         CFLAGS="-g -O2" WERROR=""
make[2]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h config/i386/xm-cygwin.h" DEFINES="" \
/bin/sh ../../gcc/mkconfig.sh config.h
config.h is unchanged
TARGET_CPU_DEFAULT="" \
HEADERS="config/rs6000/rs6000.h config/dbxelf.h config/elfos.h config/svr4.h con
fig/freebsd-spec.h config/rs6000/sysv4.h config/rs6000/eabi.h defaults.h" DEFINE
S="" \
/bin/sh ../../gcc/mkconfig.sh tm.h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h config/i386/xm-cygwin.h" DEFINES="" \
/bin/sh ../../gcc/mkconfig.sh bconfig.h
bconfig.h is unchanged
stage1/xgcc.exe -Bstage1/ -B/cygdrive/c/gnutools/gcc-3.4.1/powerpc-eabi/bin/ -c
  -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_
CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../in
clude  ../../gcc/genmodes.c -o genmodes.o
In file included from ../../gcc/genmodes.c:23:
../../gcc/system.h:42:19: stdio.h: No such file or directory
../../gcc/system.h:109:23: sys/types.h: No such file or directory
../../gcc/system.h:111:19: errno.h: No such file or directory
../../gcc/system.h:122:21: string.h: No such file or directory
../../gcc/system.h:123:22: strings.h: No such file or directory
../../gcc/system.h:135:21: stdlib.h: No such file or directory
../../gcc/system.h:158:21: unistd.h: No such file or directory
../../gcc/system.h:162:24: sys/param.h: No such file or directory
../../gcc/system.h:201:23: sys/time.h: No such file or directory
../../gcc/system.h:202:19: time.h: No such file or directory
../../gcc/system.h:214:20: fcntl.h: No such file or directory
../../gcc/system.h:252:22: sys/wait.h: No such file or directory
../../gcc/system.h:319:20: malloc.h: No such file or directory
../../gcc/system.h:383:23: sys/stat.h: No such file or directory
../../gcc/genmodes.c: In function `new_mode':
../../gcc/genmodes.c:159: warning: implicit declaration of function `memcpy'
../../gcc/genmodes.c: In function `eq_mode':
../../gcc/genmodes.c:188: warning: implicit declaration of function `strcmp'
../../gcc/genmodes.c: In function `complete_mode':
../../gcc/genmodes.c:367: warning: implicit declaration of function `abort'
../../gcc/genmodes.c: In function `make_complex_modes':
../../gcc/genmodes.c:419: warning: implicit declaration of function `strlen'
../../gcc/genmodes.c:432: warning: implicit declaration of function `strncpy'
../../gcc/genmodes.c:433: warning: implicit declaration of function `strchr'
../../gcc/genmodes.c:444: warning: implicit declaration of function `snprintf'
../../gcc/genmodes.c: In function `calc_wider_mode':
../../gcc/genmodes.c:736: warning: implicit declaration of function `qsort'
../../gcc/genmodes.c: In function `emit_insn_modes_h':
../../gcc/genmodes.c:771: warning: implicit declaration of function `printf'
../../gcc/genmodes.c:775: warning: implicit declaration of function `puts'
../../gcc/genmodes.c: In function `main':
../../gcc/genmodes.c:1200: error: `free' undeclared (first use in this function)

../../gcc/genmodes.c:1200: error: (Each undeclared identifier is reported only o
nce
../../gcc/genmodes.c:1200: error: for each function it appears in.)
../../gcc/genmodes.c:1217: warning: implicit declaration of function `fflush'
../../gcc/genmodes.c:1217: error: `stdout' undeclared (first use in this functio
n)
../../gcc/genmodes.c:1217: warning: implicit declaration of function `fclose'
make[2]: *** [genmodes.o] Error 1
make[2]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
make: *** [bootstrap] Error 2


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


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