[Mono-dev] Cannot compile mono or mcs, please help

David Piepgrass qwertie256 at gmail.com
Fri Sep 29 13:34:49 EDT 2006

Well, no, mcs_dependencies\bin (which I should have named mono_dependencies,
obviously) was not in the PATH--the instructions say to put an installed
copy of mono in the PATH (which, as it turns out, works just as well).

However you gave me an idea... I investigated the DLL dependencies, and it
turns out that there is a DLL conflict with the iconv.dll included with my
copy of Ruby in Instant Rails, causing the error: "The procedure entry point
libiconv_set_relocation_prefix could not be located in the dynamic link
library iconv.dll". Unfortunately, when a program is run in cygwin, the
error is silent, which made the problem hard to find.

I'm trying to build mono again ... so far, so good, but I guess it'll be an
hour or two before I know for sure. Does everybody working on mono start
fresh by doing one of these two-hour compiles? In the case of Windows, it
seems like a weird approach, since (the instructions imply) you have to
install the mono binaries before you can build it anyway!

On 9/28/06, Raja R Harinath <rharinath at novell.com> wrote:
> Hi,
> "David Piepgrass" <qwertie256 at gmail.com> writes:
> > You're right, WinRAR screwed up the untarballing! Thanks.
> >
> > By the way, the build instructions say to use ./configure
> --prefix=/tmp/install and "feel free to use any prefix you want".  What is
> the
> > prefix for? It seems to work without one.
> >
> > However, it still won't build, whether or not I gave a prefix. I get one
> of the following two "error 128"s:
> >
> > Making all in monoburg
> > make[3]: Entering directory `/cygdrive/d/Dev/University/ENCM599/mono-
> > bison ./monoburg.y -o parser.c
> > gcc -mno-cygwin -g -o monoburg ./monoburg.c parser.c-I/cygdrive/d/Dev/University/ENCM599/mcs_dependencies/include/glib-
> > 2.0 -I/cygdrive/d/Dev/University/ENCM599/mcs_dependencies/lib/glib-2.0/include
> -I. -g -O2  -L/cygdrive/d/Dev/Universit
> > y/ENCM599/mcs_dependencies/lib -lgthread-2.0 -lglib-2.0 -lintl -liconv
> > ./monoburg ./sample.brg > sample.c
> > make[3]: *** [sample.c] Error 128
> > make[3]: Leaving directory `/cygdrive/d/Dev/University/ENCM599/mono-
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/cygdrive/d/Dev/University/ENCM599/mono-
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/cygdrive/d/Dev/University/ENCM599/mono-
> > make: *** [all] Error 2
> I'm not too familiar with Windows nor with CygWin.  From the looks of
> it, there's some issue with your path or your compiler :-)
> Basically, the build compiles a helper, and immediately executes the
> helper.  If there's some problem with your compiler, or if the system
> cannot find the DLLs, I guess the execution errors would look like this.
> My random guess is that d:\Dev\University\ENCM599\mcs_dependencies\bin
> is _not_ in %PATH%.
> - Hari

- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060929/6c131126/attachment.html 

More information about the Mono-devel-list mailing list