[Bsd-sharp-list] Mono on FreeBSD/arm

Björn König bkoenig at cs.tu-berlin.de
Wed Jun 27 08:57:55 MDT 2007


Hello,

currently I'm trying to use Mono on FreeBSD/arm after a few difficulties
to compile "mono" and many cups of coffee I finally got a working binary.

If you like to have a look at the current state of my efforts then try the
patch that I attached to this mail. It has to be applied to the FreeBSD's
lang/mono port in order to start compiling Mono on FreeBSD/arm. I use
7-current but most likely it works with 6 too.

The port produces a mono binary in work/mono-1.2.3.1/mono/mini/. With this
binary you can already execute programs. I tested it with some simple
"hello world" programs.

I'm not able to compile mcs.exe, because of FPU-related issues. Actually
the problem is that my CPU (ARM9TDMI) doesn't have an FPU and the
compilation of mcs fails with this message:

[...]
MONO_PATH="../class/lib/monolite:$MONO_PATH"
/data/share/ports/lang/mono/work/mono-1.2.3.1/runtime/mono-wrapper 
../class/lib/monolite/mcs.exe /codepage:65001   -d:NET_1_1 -d:ONLY_1_1
-d:BOOTSTRAP_WITH_OLDLIB -debug -target:exe -out:mcs.exe cs-parser.cs 
@mcs.exe.sources

** ERROR **: file inssel.c: line 3502 (mono_burg_emit): should not be reached
aborting...
Stacktrace:

  at Mono.CSharp.Tokenizer.is_number (int) <0xffffffff>
  at Mono.CSharp.Tokenizer.is_number (int) <0x00434>
  at Mono.CSharp.Tokenizer.xtoken () <0x00523>
  at Mono.CSharp.Tokenizer.token () <0x0001f>
  at Mono.CSharp.CSharpParser.yyparse (Mono.CSharp.yyParser.yyInput)
<0x00d07>
  at Mono.CSharp.CSharpParser.parse () <0x000a7>
  at Mono.CSharp.Driver.parse (Mono.CSharp.SourceFile) <0x001d3>
  at Mono.CSharp.Driver.ProcessFiles () <0x0008f>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x004c7>
  at Mono.CSharp.Driver.Main (string[]) <0x0005f>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_int_string[]
(object,intptr,intptr,intptr) <0xffffffff>
Abort trap (core dumped)
gmake[7]: *** [../class/lib/basic/mcs.exe] Error 134
gmake[7]: Leaving directory
`/data/share/ports/lang/mono/work/mono-1.2.3.1/mcs/mcs'
[...]


I would appreciate if somebody is able to spend some time to make it
possible to compile mcs without having an FPU, i.e. with softfloat.

Regards
Björn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ports_lang_mono.diff
Type: text/x-diff
Size: 5917 bytes
Desc: not available
Url : http://forge.novell.com/pipermail/bsd-sharp-list/attachments/20070627/b6c1d40b/ports_lang_mono.bin


More information about the Bsd-sharp-list mailing list