From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22216 invoked by alias); 25 Aug 2004 19:30:49 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 22201 invoked from network); 25 Aug 2004 19:30:46 -0000 Received: from unknown (HELO mail.airvananet.com) (12.6.244.28) by sourceware.org with SMTP; 25 Aug 2004 19:30:46 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Need help to build GCC 3.4.1 for for powerpc-eabi target Date: Wed, 25 Aug 2004 22:06:00 -0000 Message-ID: <41B9D8A6CE9E0A4583291742EECF3CCB03CA5E37@mail.wirelessworld.airvananet.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Jon Watson" To: X-SW-Source: 2004-08/txt/msg00225.txt.bz2 Hi - I'm trying to build a GCC 3.4.1 crosscompiler hosted on a Win2K PC (buildin= g 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 did= n't appear that anyone else has reported building the powerpc-eabi. I've built the bin-utils (2.14) for powerpc-eabi and they appear to be work= ing.=20 When I build GCC I get an error building genmodes.o. The error from xgcc ap= pears to be that it can't find stdio.h and several other headers that are i= ncluded by ...\gcc-3.4.1\gcc\system.h. What isn't clear to me is which vers= ion of stdio.h *should* be used. I tried editing the makefile to use the he= aders in /usr/local, but that caused linker errors down the line. I also fo= und 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 c= ompiler appears to be searching for. Any ideas about what I should do next? Is there a step I'm missing? Below i= s the output of the make log that I get when build... Thanks in advance, Jon Watson j-watson@airvananet.com $ 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/test= suite ' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/cygdrive/d/gcc/gcc-3.4.1/build/libiberty/tests= uite' 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=3Drc" "CC_FOR_BUILD=3Dgcc" "CFLAGS=3D-g -O2" "= CXXFLAGS=3D-g -O2" "CFLAGS_FOR_BUILD=3D" "CFLAGS_FOR_TARGET=3D-O2 -g -O2" "INSTALL=3D/us= r/bin/insta ll -c" "INSTALL_DATA=3D/usr/bin/install -c -m 644" "INSTALL_PROGRAM=3D/usr/= bin/insta ll -c" "INSTALL_SCRIPT=3D/usr/bin/install -c" "LDFLAGS=3D" "LIBCFLAGS=3D-g = -O2" "LIBCF LAGS_FOR_TARGET=3D-O2 -g -O2" "MAKE=3Dmake" "MAKEINFO=3D/cygdrive/d/gcc/gcc= -3.4.1/miss ing makeinfo --split-size=3D5000000 " "PICFLAG=3D" "PICFLAG_FOR_TARGET=3D" = "SHELL=3D/bin /sh" "EXPECT=3Dexpect" "RUNTEST=3Druntest" "RUNTESTFLAGS=3D" "exec_prefix= =3D/cygdrive/c/ gnutools/gcc-3.4.1" "infodir=3D/cygdrive/c/gnutools/gcc-3.4.1/info" "libdir= =3D/cygdr ive/c/gnutools/gcc-3.4.1/lib" "prefix=3D/cygdrive/c/gnutools/gcc-3.4.1" "to= oldir=3D/ cygdrive/c/gnutools/gcc-3.4.1/powerpc-eabi" "AR=3Dar" "AS=3Das" "CC=3Dgcc" = "CXX=3Dc++" " LD=3D/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bi= n/ld.ex e" "LIBCFLAGS=3D-g -O2" "NM=3Dnm" "PICFLAG=3D" "RANLIB=3Dranlib" "DESTDIR= =3D" DO=3Dall 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=3D" stage1/xgcc.exe -Bstage1/ -B/cygdrive/c/gnutools/gcc-3.4.1/powe= rpc-eab i/bin/" CC_FOR_BUILD=3D" stage1/xgcc.exe -Bstage1/ -B/cygdrive/c/gnutools/g= cc-3.4. 1/powerpc-eabi/bin/" \ STAGE_PREFIX=3Dstage1/ \ ADAFLAGS=3D"" CFLAGS=3D"-g -O2" LDFLAGS=3D"" WARN_CFLAGS=3D"\$(GCC= _WARN_CFLAGS) " STRICT_WARN=3D"-pedantic -Wno-long-long -Wold-style-definition " libdir= =3D/cygdriv e/c/gnutools/gcc-3.4.1/lib LANGUAGES=3D"c gcov.exe gcov-dump.exe c++ f77 ja= va objc " MAKEINFO=3D"/cygdrive/d/gcc/gcc-3.4.1/missing makeinfo --split-size=3D500= 0000" MAK EINFOFLAGS=3D"--no-split" MAKEOVERRIDES=3D OUTPUT_OPTION=3D"-o \$@" \ CFLAGS=3D"-g -O2" WERROR=3D"" make[2]: Entering directory `/cygdrive/d/gcc/gcc-3.4.1/build/gcc' TARGET_CPU_DEFAULT=3D"" \ HEADERS=3D"auto-host.h ansidecl.h config/i386/xm-cygwin.h" DEFINES=3D"" \ /bin/sh ../../gcc/mkconfig.sh config.h config.h is unchanged TARGET_CPU_DEFAULT=3D"" \ HEADERS=3D"config/rs6000/rs6000.h config/dbxelf.h config/elfos.h config/svr= 4.h con fig/freebsd-spec.h config/rs6000/sysv4.h config/rs6000/eabi.h defaults.h" D= EFINE S=3D"" \ /bin/sh ../../gcc/mkconfig.sh tm.h TARGET_CPU_DEFAULT=3D"" \ HEADERS=3D"auto-host.h ansidecl.h config/i386/xm-cygwin.h" DEFINES=3D"" \ /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-protot= ypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -D= HAVE_ 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 `strncp= y' ../../gcc/genmodes.c:433: warning: implicit declaration of function `strchr' ../../gcc/genmodes.c:444: warning: implicit declaration of function `snprin= tf' ../../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 func= tion) ../../gcc/genmodes.c:1200: error: (Each undeclared identifier is reported o= nly o nce ../../gcc/genmodes.c:1200: error: for each function it appears in.) ../../gcc/genmodes.c:1217: warning: implicit declaration of function `fflus= h' ../../gcc/genmodes.c:1217: error: `stdout' undeclared (first use in this fu= nctio n) ../../gcc/genmodes.c:1217: warning: implicit declaration of function `fclos= e' 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