This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Errors trying to compile gcc 2.7.2.1
- To: <cygwin at sourceware dot cygnus dot com>
- Subject: Errors trying to compile gcc 2.7.2.1
- From: "Virgil Palanciuc" <vvv at ss dot pub dot ro>
- Date: Fri, 17 Mar 2000 12:57:50 +0200
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