On 10/27/07, Mikkel Meyer Andersen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I made an entire build this morning and flashed by Neo 1973 with both
> the new kernel- and rootfs-image. Afterwards I installed mono and
> mono-gmcs and tried to compile this program:
>
> /* --- */
> using System;
>
> namespace Scienco
> {
>         class MainClass
>         {
>                 public static void Main(string[] args)
>                 {
>                         Console.WriteLine("Hello World!");
>                 }
>         }
> }
> /* --- */
>
> When I try to compile it at the OpenMoko-device, all I get is this error:
> [EMAIL PROTECTED]:~$ gmcs Main.cs
> Illegal instruction
> [EMAIL PROTECTED]:~$

Your example runs fine on an xscale system -- I'll update my openmoko
device and try that.

[EMAIL PROTECTED]:~$ gmcs test.cs
[EMAIL PROTECTED]:~$ mono test.exe
Hello World!
[EMAIL PROTECTED]:~$

> If I try to run just gmcs the same occurs. If I try to debug it with gdb
> I get ([...] is copyright-notice):
> [EMAIL PROTECTED]:~$ gdb gmcs
> [...]
> This GDB was configured as "arm-angstrom-linux-gnueabi"...
> "/usr/bin/gmcs": not in executable format: File format not recognized
> (gdb) q
> [EMAIL PROTECTED]:~$

gmcs is a shell script:

[EMAIL PROTECTED]:~$ more /usr/bin/gmcs
#!/bin/sh
exec /usr/bin/mono $MONO_OPTIONS /usr/lib/mono/2.0/gmcs.exe "$@"

Its likely you have something wrong with shell scripts on your system.
 Try running mono directory as in the above script.

Cliff

-- 
=======================
Cliff Brake
http://bec-systems.com

Reply via email to