Errors trying to compile gcc 2.7.2.1
Virgil Palanciuc
vvv@ss.pub.ro
Fri Mar 17 02:57:00 GMT 2000
ÃÂ ÃÂ ÃÂ I am
trying to build a cross-compiler for a SC100ÃÂ from gcc2.7.2.1 (the machine
description was written for this version of gcc and I couldn't manage to
buildÃÂ using a different version of gcc with it),
ÃÂ ÃÂ ÃÂ The
version of cygwin IÃÂ have comes with egcs2-91-57.
ÃÂ ÃÂ ÃÂ I
managed to build a cross-compiler on a i586-solaris, but when I try build it
using cygwinÃÂ it fails with the following error:
[/home/stud/badrian/cg27]$ make LANGUAGES=c gcc
-DCROSS_COMPILE -DIN_GCCÃÂ ÃÂ -gÃÂ ÃÂ -o xgcc gcc.o
version.oÃÂ obstack.o ` case "gcc" in "cc") echo "" ;; esac ` gcc.o: In
function
`pexecute': /d/UnixRoot/home/stud/badrian/cg27/../gcc-2.7.2.1/gcc.c:2139:
undefined reference to
`__spawnv' /d/UnixRoot/home/stud/badrian/cg27/../gcc-2.7.2.1/gcc.c:2139:
undefined reference to `__spawnvp' collect2: ld returned 1 exit
status make: *** [xgcc] Error 1
ÃÂ ÃÂ The odd
thing about this is that this is actually a linker error. I looked at
gcc.c and apparently the error is caused by the following
lines:
#ifndef _WIN32 #include <sys/file.h>
/* May get R_OK, etc. on some systems. */ #else #include
<process.h> int __spawnv (); int __spawnvp (); #endif
ÃÂ ÃÂ Can
anybody help me?
Virgil
ÃÂ
More information about the Cygwin
mailing list