[Mono-list] Building from CVS: gmcs.exe not found
Peter Wainwright
prw@ceiriog1.demon.co.uk
13 May 2004 20:37:33 +0100
On Wed, 2004-05-12 at 17:30, Andrew Arnott wrote:
> I downloaded CVS yesterday, and updated it this morning. I ran from
> the cvs\mono directory:
>=20
> =20
>=20
> ./autogen.sh =96prefix=3D/usr
>=20
> ./make fullbuild
>=20
(1) -prefix should be --prefix, and ./make should be make
(2) AFAIK, the generics compiler gmcs is not built by
default. You need to do
./autogen.sh --prefix=3D/usr --with-preview=3Dyes
make bootstrap
make install
[ the last two steps are equivalent to "make fullbuild",
which is deprecated ].
> =20
>=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.=20
> It appears that the gmcs.exe file is being looked for in the /
> directory rather than /usr/bin/. =20
>=20
> =20
>=20
> make[3]: Entering directory `/root/cvs/mono/runtime'
>=20
> if test -f ../../mcs/gmcs/gmcs.exe; then f=3D../../mcs/gmcs/gmcs.exe;
> else f=3D/gmcs.exe; fi; \
>=20
> echo "cp -f $f ."; \
>=20
> cp -f $f .
>=20
> cp -f /gmcs.exe .
>=20
> cp: cannot stat `/gmcs.exe': No such file or directory
>=20
> make[3]: *** [gmcs.exe] Error 1
>=20
> make[3]: Leaving directory `/root/cvs/mono/runtime'
>=20
> make[2]: *** [all-recursive] Error 1
>=20
> make[2]: Leaving directory `/root/cvs/mono/runtime'
>=20
> make[1]: *** [all-recursive] Error 1
>=20
> make[1]: Leaving directory `/root/cvs/mono'
>=20
> make: *** [all] Error 2
>=20
> biscuit:~/cvs/mono # locate gmcs.exe
>=20
> /usr/bin/gmcs.exe
>=20
> /usr/lib/mono/2.0/gmcs.exe
>=20
> biscuit:~/cvs/mono #
>=20
> =20
>=20
> I created a symbolic link to it in the / directory, and got passed
> that error. Then the build crashed with this error:
>=20
> =20
>=20
> cp -f ../../../mcs/class/lib/default/System.Web.Services.dll .
>=20
> cp -f ../../../mcs/class/lib/default/System.Windows.Forms.dll .
>=20
> cp -f ../../../mcs/class/lib/default/System.Xml.dll .
>=20
> make[3]: Leaving directory `/root/cvs/mono/runtime/net_1_1'
>=20
> Making all in net_2_0
>=20
> make[3]: Entering directory `/root/cvs/mono/runtime/net_2_0'
>=20
> cp -f ../../../mcs/class/lib/net_2_0/mscorlib.dll .
>=20
> cp: cannot stat `../../../mcs/class/lib/net_2_0/mscorlib.dll': No such
> file or directory
>=20
> make[3]: *** [mscorlib.dll] Error 1
>=20
> make[3]: Leaving directory `/root/cvs/mono/runtime/net_2_0'
>=20
> make[2]: *** [all-recursive] Error 1
>=20
> make[2]: Leaving directory `/root/cvs/mono/runtime'
>=20
> make[1]: *** [all-recursive] Error 1
>=20
> make[1]: Leaving directory `/root/cvs/mono'
>=20
> make: *** [all] Error 2
>=20
> =20
>=20
> I=92ve 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=92t know. But any help would be appreciated.
--=20
Peter Wainwright <prw@ceiriog1.demon.co.uk>