Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Virgil Palanciuc" To: Subject: Errors trying to compile gcc 2.7.2.1 Date: Fri, 17 Mar 2000 12:57:50 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01BF9010.669FFA20" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal ------=_NextPart_000_0007_01BF9010.669FFA20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 /* May get R_OK, etc. on some systems. */ #else #include int __spawnv (); int __spawnvp (); #endif Can anybody help me? Virgil ------=_NextPart_000_0007_01BF9010.669FFA20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    I am=20 trying to build a cross-compiler for a SC100 from gcc2.7.2.1 (the = machine=20 description was written for this version of gcc and I couldn't manage to = build using a different version of gcc with = it),
    The=20 version of cygwin I have comes with = egcs2-91-57.
    I=20 managed to build a cross-compiler on a i586-solaris, but when I try = build it=20 using cygwin it fails with the following error:
[/home/stud/badrian/cg27]$ make = LANGUAGES=3Dc
gcc=20 -DCROSS_COMPILE -DIN_GCC   -g   -o xgcc gcc.o=20 version.o  obstack.o ` case "gcc" in "cc") echo "" ;; esac = `
gcc.o: In=20 function=20 `pexecute':
/d/UnixRoot/home/stud/badrian/cg27/../gcc-2.7.2.1/gcc.c:21= 39:=20 undefined reference to=20 `__spawnv'
/d/UnixRoot/home/stud/badrian/cg27/../gcc-2.7.2.1/gcc.c:213= 9:=20 undefined reference to `__spawnvp'
collect2: ld returned 1 exit=20 status
make: *** [xgcc] Error 1
   The odd=20 thing about this is that this is actually a linker error. I looked at=20 gcc.c and apparently the error is caused by the = following=20 lines:

#ifndef _WIN32
#include = <sys/file.h>=20 /* May get R_OK, etc. on some systems. */
#else
#include=20 <process.h>
int __spawnv ();
int __spawnvp = ();
#endif

   Can=20 anybody help me?

Virgil
 
------=_NextPart_000_0007_01BF9010.669FFA20--