[Mono-list] Building from CVS: gmcs.exe not found
Jaroslaw Kowalski
jaak@zd.com.pl
Thu, 13 May 2004 20:51:39 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0109_01C4392C.1662E260
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
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 -----
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=/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=../../mcs/gmcs/gmcs.exe; else
f=/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_000_0109_01C4392C.1662E260
Content-Type: application/octet-stream;
name="monobootstrap.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="monobootstrap.patch"
Index: Makefile.am=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
RCS file: /cvs/public/mono/Makefile.am,v=0A=
retrieving revision 1.45=0A=
diff -u -r1.45 Makefile.am=0A=
--- Makefile.am 10 May 2004 03:51:55 -0000 1.45=0A=
+++ Makefile.am 13 May 2004 17:51:49 -0000=0A=
@@ -72,7 +72,7 @@=0A=
stage3: stage2=0A=
tmpinst=3D`cd _tmpinst && pwd` ; \=0A=
PATH=3D$$tmpinst/bin:$$PATH ; export PATH ; \=0A=
- cd $(mcs_topdir) && $(MAKE)=0A=
+ cd $(mcs_topdir) && $(MAKE) PROFILE=3Ddefault && $(MAKE) =
PROFILE=3Dnet_2_0=0A=
-rm -fr _tmpinst=0A=
=0A=
tmpinst-dir:=0A=
Index: runtime/Makefile.am=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
RCS file: /cvs/public/mono/runtime/Makefile.am,v=0A=
retrieving revision 1.73=0A=
diff -u -r1.73 Makefile.am=0A=
--- runtime/Makefile.am 12 May 2004 05:11:14 -0000 1.73=0A=
+++ runtime/Makefile.am 13 May 2004 17:51:51 -0000=0A=
@@ -53,15 +53,15 @@=0A=
endif=0A=
=0A=
$(monoone_DATA):=0A=
- if test -f $(mcs_topdir)/mcs/mcs.exe; then =
f=3D$(mcs_topdir)/mcs/mcs.exe; else f=3D$(fx11dir)/mcs.exe; fi; \=0A=
+ if test -f $(mcs_topdir)/mcs/mcs.exe; then =
f=3D$(mcs_topdir)/mcs/mcs.exe; else f=3D$(monoonedir)/mcs.exe; fi; \=0A=
echo "cp -f $$f $(srcdir)"; \=0A=
cp -f $$f $(srcdir)=0A=
- if test -f $(mcs_topdir)/mbas/mbas.exe; then =
f=3D$(mcs_topdir)/mbas/mbas.exe; else f=3D$(fx11dir)/mbas.exe; fi; \=0A=
+ if test -f $(mcs_topdir)/mbas/mbas.exe; then =
f=3D$(mcs_topdir)/mbas/mbas.exe; else f=3D$(monoonedir)/mbas.exe; fi; \=0A=
echo "cp -f $$f $(srcdir)"; \=0A=
cp -f $$f $(srcdir)=0A=
=0A=
$(monotwo_DATA):=0A=
- if test -f $(mcs_topdir)/gmcs/gmcs.exe; then =
f=3D$(mcs_topdir)/gmcs/gmcs.exe; else f=3D$(fx20dir)/gmcs.exe; fi; \=0A=
+ if test -f $(mcs_topdir)/gmcs/gmcs.exe; then =
f=3D$(mcs_topdir)/gmcs/gmcs.exe; else f=3D$(monotwodir)/gmcs.exe; fi; \=0A=
echo "cp -f $$f $(srcdir)"; \=0A=
cp -f $$f $(srcdir)=0A=
=0A=
------=_NextPart_000_0109_01C4392C.1662E260--