I am a middle school student in China.
When I use CygWin to build a cross-compiler on Win32,It is not work.
The error is lacking of machname.h.
I try to build it twice.But it is also not working.
The error is like below.
make[1]: Entering directory `/cygdrive/e/ToolBuild/gcc-build/libiberty'
make[2]: Entering directory
`/cygdrive/e/ToolBuild/gcc-build/libiberty/testsuite
'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/cygdrive/e/ToolBuild/gcc-build/libiberty/testsuite'
make[1]: Leaving directory `/cygdrive/e/ToolBuild/gcc-build/libiberty'
make[1]: Entering directory `/cygdrive/e/ToolBuild/gcc-build/gcc'
(cd intl && make all)
make[2]: Entering directory `/cygdrive/e/ToolBuild/gcc-build/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/e/ToolBuild/gcc-build/gcc/intl'
(MAKE="make"; srcdir=`cd ../../gcc-3.3.3/gcc/fixinc && ${PWDCMD-pwd}` ; \
CC="gcc"; CFLAGS=" -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -W
strict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE"; LDFLAGS=""; \
WARN_CFLAGS="-W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -
Wtraditional -pedantic -Wno-long-long ";
LIBERTY=`pwd`/"../libiberty/libiberty.a
"; \
export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS LIBERTY; \
cd ./fixinc && \
/bin/sh ${srcdir}/mkfixinc.sh i686-pc-cygwin i386-pc-elf)
constructing ../fixinc.sh for i386-pc-elf to run on i686-pc-cygwin
make TARGETS=oneprocess SHELL="/bin/sh" CC="gcc" CFLAGS=" -g -O2 -DIN_GCC
-DCROS
S_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtr
aditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE"
LDFLAGS=""
LIBERTY="/cygdrive/e/ToolBuild/gcc-build/gcc/../libiberty/libiberty.a"
install-b
in
make[2]: Entering directory `/cygdrive/e/ToolBuild/gcc-build/gcc/fixinc'
/bin/sh ../../../gcc-3.3.3/gcc/fixinc/genfixes machname.h
-uCouldn't find the file.
make[2]: *** [machname.h] Error 1
make[2]: Leaving directory `/cygdrive/e/ToolBuild/gcc-build/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/cygdrive/e/ToolBuild/gcc-build/gcc'
make: *** [all-gcc] Error 2
And I don't know where to download the patch,and how to let the gcc be
build.
I download the gcc-3.3.3-core.tar.gz form
http://ftp.gnu.org/gnu/gcc/release/gcc-3.3.3/
Wait for your answer.
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn