delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/17/05:58:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Virgil Palanciuc" <vvv AT ss DOT pub DOT ro>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: Errors trying to compile gcc 2.7.2.1
Date: Fri, 17 Mar 2000 12:57:50 +0200
Message-ID: <NDBBLMFNNKHMOCBKELIEAECLCAAA.vvv@ss.pub.ro>
MIME-Version: 1.0
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 <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


------=_NextPart_000_0007_01BF9010.669FFA20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial><SPAN =
class=3D848114010-17032000>&nbsp;&nbsp;&nbsp; I am=20
trying to build a cross-compiler for a SC100&nbsp;from gcc2.7.2.1 (the =
machine=20
description was written for this version of gcc and I couldn't manage to =

build&nbsp;using a different version of gcc with =
it),</SPAN></FONT></DIV>
<DIV><FONT face=3DArial><SPAN =
class=3D848114010-17032000>&nbsp;&nbsp;&nbsp; The=20
version of cygwin I&nbsp;have comes with =
egcs2-91-57.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial><SPAN =
class=3D848114010-17032000>&nbsp;&nbsp;&nbsp; I=20
managed to build a cross-compiler on a i586-solaris, but when I try =
build it=20
using cygwin&nbsp;it fails with the following error:</SPAN></FONT></DIV>
<DIV><FONT face=3DSystem size=3D2><SPAN=20
class=3D848114010-17032000>[/home/stud/badrian/cg27]$ make =
LANGUAGES=3Dc<BR>gcc=20
-DCROSS_COMPILE -DIN_GCC&nbsp;&nbsp; -g&nbsp;&nbsp; -o xgcc gcc.o=20
version.o&nbsp; obstack.o ` case "gcc" in "cc") echo "" ;; esac =
`<BR>gcc.o: In=20
function=20
`pexecute':<BR>/d/UnixRoot/home/stud/badrian/cg27/../gcc-2.7.2.1/gcc.c:21=
39:=20
undefined reference to=20
`__spawnv'<BR>/d/UnixRoot/home/stud/badrian/cg27/../gcc-2.7.2.1/gcc.c:213=
9:=20
undefined reference to `__spawnvp'<BR>collect2: ld returned 1 exit=20
status<BR>make: *** [xgcc] Error 1</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D3><SPAN =
class=3D848114010-17032000>&nbsp;&nbsp; The odd=20
thing about this is that this is actually a linker error. I looked at=20
<EM><U>gcc.c</U></EM> and apparently the error is caused by the =
following=20
lines:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D3><SPAN class=3D848114010-17032000>
<P><FONT face=3D"Courier New" size=3D2>#ifndef _WIN32<BR>#include =
&lt;sys/file.h&gt;=20
/* May get R_OK, etc. on some systems. */<BR>#else<BR>#include=20
&lt;process.h&gt;<BR>int __spawnv ();<BR>int __spawnvp =
();<BR>#endif</FONT></P>
<P><FONT face=3DArial size=3D3><SPAN =
class=3D848114010-17032000>&nbsp;&nbsp; Can=20
anybody help me?</SPAN></FONT></P></SPAN></FONT></DIV>
<DIV align=3Dcenter><FONT color=3D#000080 face=3D"Edwardian Script ITC"=20
size=3D5><STRONG><EM><U>Virgil</U></EM></STRONG></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019