Can't compile mcs (was Re: [Mono-list] Error compiling mono)

Hector E. Gomez Morales hgomez_36@flashmail.com
Wed, 19 Nov 2003 21:32:35 -0600


--=-H2Bju3W2L/MGkfYijMeG
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Ok I will give it a try ;). Well what release of mono you are using to
build from CVS? Even if it is the latest one (0.28) you could have
problems, in my experience after some time after a official release you
can't successfully bootstrap CVS so I recommend this steps:

Go to you mono directoy and run:
cvs -z3 update -Pd 
make distclean && ./autogen --prefix=YOUR_PATH && make && make install

Then (from INSTALL.txt file in mcs module):

Occasionally, something in the compiler or runtime changes enough that
an existing installation cannot complete a full build from cvs.  In this
case,
go to http://go-mono.com/daily and download a monocharge or monolite
tarball.
Unpack and copy the .dlls to $prefix/lib and .exes to $prefix/bin/. 
Then
you should be able to complete the build normally (i.e. using make
fullbuild).
                                                                                                                                                             
        wget http://go-mono.com/daily/monolite-20031028.tar.gz (A
example, everyday there is a new tarball to download)
        tar -zxvf monolite-20031028.tar.gz
        cd monolite-20031028
        cp *.exe /usr/local/bin/.
        cp *.dll /usr/local/lib/.

Then go to your mcs directory and run:

cvs -z3 update -Pd 
make clean && make 

Finally return to mono directoy and run:

cd runtime
rm -rf *exe *dll (that is to delete the old dll and exe)
cd ..
make install

After this you should have a new and shiny mono::

For future upgrades the steps are easier:
cvs -z3 update -Pd mono mcs
cd mono && make distclean && ./autogen --prefix=YOUR_PATH && make
fullbuild

Some steps are in the paranoia size I know, but when building for the
first time from CVS is the best way to go in my opinion. If you still
have problems to build please post again.


Hector

--=-H2Bju3W2L/MGkfYijMeG
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
<!--+GtkHTML:<DATA class="ClueFlow" key="orig" value="0">Ok I will give it a try ;). Well what release of mono you are using to build from CVS? Even if it is the latest one (0.28) you could have problems, in my experience after some time after a official release you can't successfully bootstrap CVS so I recommend this steps:<BR>
<BR>
Go to you mono directoy and run:<BR>
cvs -z3 update -Pd <BR>
make distclean &amp;&amp; ./autogen --prefix=YOUR_PATH &amp;&amp; make &amp;&amp; make install<BR>
<BR>
Then (from INSTALL.txt file in mcs module):<BR>
<BR>
Occasionally, something in the compiler or runtime changes enough that<BR>
an existing installation cannot complete a full build from cvs.&nbsp; In this case,<BR>
go to http://go-mono.com/daily and download a monocharge or monolite tarball.<BR>
Unpack and copy the .dlls to $prefix/lib and .exes to $prefix/bin/.&nbsp; Then<BR>
you should be able to complete the build normally (i.e. using make fullbuild).<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wget <A HREF="http://go-mono.com/daily/monolite-20031028.tar.gz"><U>http://go-mono.com/daily/monolite-20031028.tar.gz</U></A> (A example, everyday there is a new tarball to download)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tar -zxvf monolite-20031028.tar.gz<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd monolite-20031028<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cp *.exe /usr/local/bin/.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cp *.dll /usr/local/lib/.<BR>
<BR>
Then go to your mcs directory and run:<BR>
<BR>
cvs -z3 update -Pd <BR>
make clean &amp;&amp; make <BR>
<BR>
Finally return to mono directoy and run:<BR>
<BR>
cd runtime<BR>
rm -rf *exe *dll (that is to delete the old dll and exe)<BR>
cd ..<BR>
make install<BR>
<BR>
After this you should have a new and shiny mono::<BR>
<BR>
For future upgrades the steps are easier:<BR>
cvs -z3 update -Pd mono mcs<BR>
cd mono &amp;&amp; make distclean &amp;&amp; ./autogen --prefix=YOUR_PATH &amp;&amp; make fullbuild<BR>
<BR>
Some steps are in the paranoia size I know, but when building for the first time from CVS is the best way to go in my opinion. If you still have problems to build please post again.<BR>
<BR>
<BR>
Hector
</BODY>
</HTML>

--=-H2Bju3W2L/MGkfYijMeG--