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

Andrew Arnott AndrewArnott@byu.edu
Fri, 14 May 2004 06:49:42 -0600


This is a multi-part message in MIME format.

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

Thank you for your patch.  I have adapted it slightly.  I thought it was
cleaner to actually define the two variables that were missing rather
than swap them out of the Makefile.  This patch reflects this.=20

Can anyone comment on why this patch is necessary?  Why do Jaroslaw and
I have to apply this patch in order to build and everyone else seems
fine?

-----Original Message-----
From: Jaroslaw Kowalski [mailto:jaak@zd.com.pl]=20
Sent: Thursday, May 13, 2004 3:48 PM
To: Andrew Arnott
Subject: Re: [Mono-list] Building from CVS: gmcs.exe not found

In your case using the text editor may be enough. There are 3 minor
changes
so you should figure it out.

To apply the patch you enter the directory containing the sources and
run:

patch -p 1 < /full/path/to/patch/file

(or is it -p 0 or some other number, I never remember)

Jarek
----- Original Message -----=20
From: "Andrew Arnott" <AndrewArnott@byu.edu>
To: "Jaroslaw Kowalski" <jaak@zd.com.pl>
Sent: Thursday, May 13, 2004 11:24 PM
Subject: RE: [Mono-list] Building from CVS: gmcs.exe not found


> Jarek,
>
> Thank you for the response.  Having never worked with CVS before now,
I
> don't know how to apply the .patch file.  Is there some utility that
> applies it?  Or do I just look at it in a text editor and make the
> changes that seem obvious?
>
> Thanks again,
> Andrew
>
> -----Original Message-----
> From: Jaroslaw Kowalski [mailto:jaak@zd.com.pl]
> Sent: Thursday, May 13, 2004 12:52 PM
> To: Andrew Arnott; mono-list@lists.ximian.com
> Subject: Re: [Mono-list] Building from CVS: gmcs.exe not found
>
> Here's the temporary patch I've developed that fixes this issue -
worked
> for
> me, I hope it'll work for you too.
>
> Jarek
>
> ----- Original Message -----=20
> From: "Andrew Arnott" <AndrewArnott@byu.edu>
> To: <mono-list@lists.ximian.com>
> Sent: Thursday, May 13, 2004 5:46 PM
> Subject: RE: [Mono-list] Building from CVS: gmcs.exe not found
>
>
> I found out more about my problem below.  But I can't solve it by
> myself.  Any help would be greatly appreciated!
>
>
>
> 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?
>
>
>
> ________________________________
>
> 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
>
>
>
> I downloaded CVS yesterday, and updated it this morning.  I ran from
the
> cvs\mono directory:
>
>
>
> ./autogen.sh -prefix=3D/usr
>
> ./make fullbuild
>
>
>
> 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/.
>
>
>
> 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 #
>
>
>
> I created a symbolic link to it in the / directory, and got passed
that
> error.  Then the build crashed with this error:
>
>
>
> 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
>
>
>
> 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_01C439B1.EE56867B
Content-Type: application/octet-stream;
	name="monobootstrap.patch"
Content-Transfer-Encoding: base64
Content-Description: monobootstrap.patch
Content-Disposition: attachment;
	filename="monobootstrap.patch"

LS0tIE1ha2VmaWxlLmFtLm9yaWcJMjAwNC0wNS0xMyAwODoyMDozNy4wMDAwMDAwMDAgLTA2MDAN
CisrKyBNYWtlZmlsZS5hbQkyMDA0LTA1LTEzIDAzOjA4OjE0LjAwMDAwMDAwMCAtMDYwMA0KQEAg
LTUwLDYgKzUwLDggQEANCiBtb25vYmluc2RpciA9ICQoYmluZGlyKQ0KIG1vbm9vbmVkaXIgPSAk
KGxpYmRpcikvbW9uby8xLjAvDQogbW9ub3R3b2RpciA9ICQobGliZGlyKS9tb25vLzIuMC8NCitm
eDExZGlyID0gJChsaWJkaXIpL21vbm8vMS4wDQorZngyMGRpciA9ICQobGliZGlyKS9tb25vLzIu
MA0KIGVuZGlmDQogDQogJChtb25vb25lX0RBVEEpOg0K

------_=_NextPart_001_01C439B1.EE56867B--