[Mono-list] Building from CVS: gmcs.exe not found

Andrew Arnott AndrewArnott@byu.edu
Thu, 13 May 2004 09:46:28 -0600


This is a multi-part message in MIME format.

------_=_NextPart_001_01C43901.74946930
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I found out more about my problem below.  But I can't solve it by
myself.  Any help would be greatly appreciated!

=20

The /mono/runtime/Makefile that came out of CVS this morning, that was
generated by autogen.sh, references an environment variable named
$(fx20dir).  And the Makefile is trying to copy the gmcs.exe file from
$(fx20dir)/gmcs.exe.  It seems that $(fx20dir) is not set anywhere in
any Makefile that I checked.  Where should it be set?  The fact that it
is not set is what is causing the first error.  Any ideas, please?

=20

________________________________

From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Andrew Arnott
Sent: Wednesday, May 12, 2004 10:30 AM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Building from CVS: gmcs.exe not found

=20

I downloaded CVS yesterday, and updated it this morning.  I ran from the
cvs\mono directory:

=20

./autogen.sh -prefix=3D/usr

./make fullbuild

=20

My mono files are found in /usr/bin/mono, etc.  So I believe the prefix
above is correct.  But the build fails with the error below.  It appears
that the gmcs.exe file is being looked for in the / directory rather
than /usr/bin/. =20

=20

make[3]: Entering directory `/root/cvs/mono/runtime'

if test -f ../../mcs/gmcs/gmcs.exe; then f=3D../../mcs/gmcs/gmcs.exe; =
else
f=3D/gmcs.exe; fi; \

echo "cp -f $f ."; \

cp -f $f .

cp -f /gmcs.exe .

cp: cannot stat `/gmcs.exe': No such file or directory

make[3]: *** [gmcs.exe] Error 1

make[3]: Leaving directory `/root/cvs/mono/runtime'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/cvs/mono/runtime'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/cvs/mono'

make: *** [all] Error 2

biscuit:~/cvs/mono # locate gmcs.exe

/usr/bin/gmcs.exe

/usr/lib/mono/2.0/gmcs.exe

biscuit:~/cvs/mono #

=20

I created a symbolic link to it in the / directory, and got passed that
error.  Then the build crashed with this error:

=20

cp -f ../../../mcs/class/lib/default/System.Web.Services.dll .

cp -f ../../../mcs/class/lib/default/System.Windows.Forms.dll .

cp -f ../../../mcs/class/lib/default/System.Xml.dll .

make[3]: Leaving directory `/root/cvs/mono/runtime/net_1_1'

Making all in net_2_0

make[3]: Entering directory `/root/cvs/mono/runtime/net_2_0'

cp -f ../../../mcs/class/lib/net_2_0/mscorlib.dll .

cp: cannot stat `../../../mcs/class/lib/net_2_0/mscorlib.dll': No such
file or directory

make[3]: *** [mscorlib.dll] Error 1

make[3]: Leaving directory `/root/cvs/mono/runtime/net_2_0'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/cvs/mono/runtime'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/cvs/mono'

make: *** [all] Error 2

=20

I've never managed to get a make fullbuild to work with any snapshot, so
I may have environment variables that need to be initialized?  I don't
know.   But any help would be appreciated.


------_=_NextPart_001_01C43901.74946930
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.Code, li.Code, div.Code
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
p.code0, li.code0, div.code0
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle19
	{mso-style-type:personal;
	font-family:Arial;
	color:windowtext;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I found out more about my problem =
below. &nbsp;But
I can&#8217;t solve it by myself. &nbsp;Any help would be greatly =
appreciated!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>The /mono/runtime/Makefile that =
came out
of CVS this morning, that was generated by autogen.sh, references an
environment variable named $(fx20dir). &nbsp;And the Makefile is trying =
to copy
the gmcs.exe file from $(fx20dir)/gmcs.exe. &nbsp;It seems that =
$(fx20dir) is
not set anywhere in any Makefile that I checked. &nbsp;Where should it =
be
set?&nbsp; The fact that it is not set is what is causing the first =
error. &nbsp;Any
ideas, please?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
mono-list-admin@lists.ximian.com =
[mailto:mono-list-admin@lists.ximian.com] <b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Andrew Arnott<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, May 12, =
2004
10:30 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
mono-list@lists.ximian.com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Mono-list] =
Building from
CVS: gmcs.exe not found</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I downloaded CVS yesterday, and updated it this =
morning.
&nbsp;I ran from the cvs\mono directory:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>./autogen.sh =
&#8211;prefix=3D/usr<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>./make fullbuild<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>My mono files are found in /usr/bin/mono, etc. =
&nbsp;So I
believe the prefix above is correct.&nbsp; But the build fails with the =
error
below.&nbsp; It appears that the gmcs.exe file is being looked for in =
the /
directory rather than /usr/bin/. &nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[3]: Entering directory =
`/root/cvs/mono/runtime'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>if test -f ../../mcs/gmcs/gmcs.exe; then
f=3D../../mcs/gmcs/gmcs.exe; else f=3D/gmcs.exe; fi; =
\<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>echo &quot;cp -f $f .&quot;; =
\<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp -f $f .<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp -f /gmcs.exe .<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp: cannot stat `/gmcs.exe': No such file or =
directory<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[3]: *** [gmcs.exe] Error =
1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[3]: Leaving directory =
`/root/cvs/mono/runtime'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[2]: *** [all-recursive] Error =
1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[2]: Leaving directory =
`/root/cvs/mono/runtime'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[1]: *** [all-recursive] Error =
1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[1]: Leaving directory =
`/root/cvs/mono'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make: *** [all] Error 2<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>biscuit:~/cvs/mono # locate =
gmcs.exe<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>/usr/bin/gmcs.exe<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>/usr/lib/mono/2.0/gmcs.exe<o:p></o:p></span></font></p=
>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>biscuit:~/cvs/mono #<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I created a symbolic link to it in the / directory, =
and got
passed that error. &nbsp;Then the build crashed with this =
error:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp -f =
../../../mcs/class/lib/default/System.Web.Services.dll
.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp -f
../../../mcs/class/lib/default/System.Windows.Forms.dll =
.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp -f ../../../mcs/class/lib/default/System.Xml.dll =
.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[3]: Leaving directory =
`/root/cvs/mono/runtime/net_1_1'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Making all in net_2_0<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[3]: Entering directory =
`/root/cvs/mono/runtime/net_2_0'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp -f ../../../mcs/class/lib/net_2_0/mscorlib.dll =
.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>cp: cannot stat
`../../../mcs/class/lib/net_2_0/mscorlib.dll': No such file or =
directory<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[3]: *** [mscorlib.dll] Error =
1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[3]: Leaving directory =
`/root/cvs/mono/runtime/net_2_0'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[2]: *** [all-recursive] Error =
1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[2]: Leaving directory =
`/root/cvs/mono/runtime'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[1]: *** [all-recursive] Error =
1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[1]: Leaving directory =
`/root/cvs/mono'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make: *** [all] Error 2<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;ve never managed to get a make fullbuild to =
work
with any snapshot, so I may have environment variables that need to be
initialized? &nbsp;I don&#8217;t know.&nbsp;&nbsp; But any help would be
appreciated.<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C43901.74946930--