[Mono-devel-list] Mono on MAC OS X.

Zdravko Tashev ztashev at openlinksw.co.uk
Fri May 7 09:11:09 EDT 2004

Hi Paolo,

I'm trying to compile Mono from it's CVS. I do the following steps :

ProductName:    Mac OS X
ProductVersion: 10.3.3

Dependency packages:

pkg-config v:0.15.0
glib v:2.2.3
gettext (GNU gettext) v:0.10.40
icu v:2.8
autoconf v:1.8

Obtained from:

GC configure:
./configure --enable-threads=pthreads --prefix=/__path_to_gc

environment setings:

export CFLAGS=-I/__path_to_gc
export LDFLAGS=-L/__path_to_gc

On a clean Mono CVS checkout this is how I configure mono:

./autogen.sh --prefix=/Users/ztashev/supp/mono_install --with-gc=boehm

 GC:          boehm
        ICU:         yes. Version: 2.8
        NPTL:        yes
        SIGALTSTACK: no
        Engine:      Building and using the JIT
        2.0 Alpha:   no
        JNI support: no

Using monocharge from web.

The compilation and instalation go without errors.

While compiling the mcs classes :

mcs   -d:NET_1_1 -d:ONLY_1_1 -g /target:exe /out:mcs.exe AssemblyInfo.cs
anonymous.cs assign.cs attribute.cs driver.cs cs-tokenizer.cs cfold.cs
class.cs codegen.cs const.cs constant.cs convert.cs decl.cs delegate.cs
enum.cs ecore.cs expression.cs flowanalysis.cs genericparser.cs iterators.cs
literal.cs location.cs modifiers.cs namespace.cs parameter.cs pending.cs
report.cs rootcontext.cs statement.cs support.cs typemanager.cs
symbolwriter.cs tree.cs CryptoConvert.cs cs-parser.cs
syntax error, got token `CLOSE_PARENS', expecting OPEN_BRACE OPEN_PARENS DOT

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
make[2]: *** [mcs.exe] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

If I disable the GC (by : export GC_DONT_GC=1) it continues somewhat further
and stops again.

Am I doing something wrong in compiling Mono on MacOSX (as outlined above) ?

And are the problems I'm getting someting to be expected ?

Will there be "official" Mono MacOSX binaries to compare with ?

Best regards,
Zdravko Tashev
Developer                        phone: +359 (32) 637 476
OpenLink Software           Web: http://www.openlinksw.co.uk
Universal Data Access & Data Integration Technology Providers.

More information about the Mono-devel-list mailing list