----- Original Message -----
Sent: Friday, August 25, 2000 10:48
AM
Subject: Build GCC fail
Hi,
I am building a Cygwin hosted Linux
GCC.
All work are done in Cygwin.
First, I make binutils-2.10. It
ok.
Then,
$
mkdir gcc
$ ln -s
/usr/local/cross-tools/bin/i686-pc-linux-gnu-as.exe
gcc/as.exe
when I skip the above two steps,
Configure step works fine.
Then I make GCC-2.95
$ CONFIG_SHELL=bash bash /usr/local/src/gcc-2.95/configure --enable-languages=c,c++,objc \
--prefix=/usr/local/cross-tools \
--target=i686-pc-linux-gnu
--enable-shared
the terminal display following
messages:
...........
>loading cache
../config.cache
>checking LIBRARY_PATH variable... ok
>checking
GCC_EXEC_PREFIX variable... ok
>checking host system type...
i686-pc-cygwin32
>checking target system type...
i686-pc-linux-gnu
>checking build system type...
i686-pc-cygwin32
>checking for gcc... (cached) gcc
>checking
whether the C compiler (gcc -g -O2 ) works... no
>configure: error:
installation or configuration problem: C >compiler cannot create
executables.
>Configure in /usr/local/src/BUILD/gcc-2.95/gcc failed,
>exiting.
How to solve the problem?
All replies
appreciated
Then,
$ (cd gcc; make
installdirs)
When I began to make
run:
$
make >make.log>$1$
the terminal display:
[1] 26594
It is fail.
Use vi to edit the make.log ,the message as following:
*************
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/cross-tools/lib/gcc-lib/i686-pc-linux-gnu
/2.95/../../../..`echo
/usr/local/cross-tools | sed -e 's|^/usr/local/cross-tool
s||' -e
's|/[^/]*|/..|g'`/include/g++-3\"
\
-DLOCAL_INCLUDE_DIR=\"/usr/local/cross-tools/lib/gcc-lib/i686-pc-linux
-gnu/2.95/../../../..`echo
/usr/local/cross-tools | sed -e 's|^/usr/local/cross-
tools||' -e
's|/[^/]*|/..|g'`/include\" \
-DCROSS_INCLUDE_DIR=\"/usr/local/cross-tools/lib/gcc-lib/i686-pc-linux-gnu/2.9
5/../../../../i686-pc-linux-gnu/sys-include\"
\
-DTOOL_INCLUDE_DIR=\"/usr/local/cross-tools/lib/gcc-lib/i686-pc-linux-gnu/2.95
/../../../../i686-pc-linux-gnu/include\"
\
-c `echo /usr/local/src/gcc-2.95/gcc/cccp.c | sed
's,^\./,,'`
/usr/local/src/gcc-2.95/gcc/cccp.c:87: Invalid token in
expression
/usr/local/src/gcc-2.95/gcc/cccp.c:4795: Invalid token in
expression
make[1]: *** [cccp.o] Error 1
make[1]: Leaving directory
`/usr/local/src/BUILD/gcc-2.95/gcc'
make: *** [all-gcc] Error
2
******************
Regards,
wangwen