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]

RE: Help w/ gcc cross build failing


If I run make without specifying a target I get the same error. The only difference
I see is that now make reports failing a different chain of targets: [genmodes.o],
[stage2_build], then [quickstrap], then [all-gcc]. See below for full output...

The only reason I tried the bootstrap target is that a guy here who built GCC 2.9x on his Sun workstation for SunOS x years ago told me to try it that way... :)

Thanks for the pointers to the script... I'm going to read through them and see if I
can use them.

Jon Watson

$ make
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'
make[1]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
if test -f stage_last ; then \
  LAST=`cat stage_last`; rm $LAST; make LANGUAGES="c gcov.exe gcov-dump.exe c++
f77 java objc" BOOT_CFLAGS="-g -O2" $LAST; \
else \
  make LANGUAGES="c gcov.exe gcov-dump.exe c++ f77 java objc" BOOT_CFLAGS="-g -O
2" stage1_build; \
fi
rm: cannot remove `stage2_build': No such file or directory
make[2]: 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="makeinfo" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-
o \$@" \
         CFLAGS="-g -O2" WERROR=""
make[3]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
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[3]: *** [genmodes.o] Error 1
make[3]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
make[2]: *** [stage2_build] Error 2
make[2]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
make[1]: *** [quickstrap] Error 2
make[1]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc'
make: *** [all-gcc] Error 2

-----Original Message-----
From: Jay.Kulpinski@gd-ais.com [mailto:Jay.Kulpinski@gd-ais.com]
Sent: Thursday, August 26, 2004 10:38 AM
To: Jon Watson
Cc: crossgcc@sources.redhat.com
Subject: Re: Help w/ gcc cross build failing


On Thursday 26 August 2004 09:59 am, Jon Watson wrote:
> 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

Isn't "make bootstrap" usually used for building native compilers?

For building a cross compiler for PowerPC (and others), I use the script I 
posted in this message:

    http://sources.redhat.com/ml/crossgcc/2004-08/msg00173.html

That post didn't include the PowerPC patches I use to allow building programs
with the "-mmvme" option.  Those are attached here.



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