[Mono-dev] CS0589 on arm Linux

Torsten Harenberg harenberg at gmail.com
Wed May 23 18:26:01 UTC 2012


Dear all,

I'm new to mono (doing anything than just running C# "binaries" on
Linux and or Mac). Please excuse if this is the wrong mailing list (or
a silly issue).

I try to run a small application written by someone else on a
Pandaboard (ARM Linux, Ubuntu 12.04 Server).

After just trying to run the application just by downloading the file
and start "mono dvrptr.exe" did not work (error message at the end of
this mail), I grabbed the sources and tried to compile the application
on the device itself. I used the mono installation provided by Ubuntu
which reported itself as being:

harenber at pandaboard:~/dvrptr$ mono -V
Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors.
www.mono-project.com
	TLS:           __thread
	SIGSEGV:       normal
	Notifications: epoll
	Architecture:  armel,vfp
	Disabled:      none
	Misc:          softdebug
	LLVM:          supported, not enabled.
	GC:            Included Boehm (with typed GC and Parallel Mark)

However, trying to compile the stuff with "xbuild dvrptr.csproj" the
compiler stops here:

	aprs.cs(60,70): error CS0589: Internal compiler error during parsing
	qthloc.cs(88,100): error CS0589: Internal compiler error during parsing
	Form1.cs(249,39): error CS0589: Internal compiler error during parsing
	Form1.Designer.cs(853,91): error CS0589: Internal compiler error during parsing

I couldn't find anything fishy at these positions, for example the
first one is the line inside this try block:

            int range_miles = 100;
            try
            {
                range_miles = (int)(Convert.ToDouble(myRange) * 0.6214);
                }
            catch
            {
            }

Trying the same on a x86_64 machine running the same Linux
distribution builds the application fine and it can be started
afterwards.

I put the complete source code at

http://www.atlas.uni-wuppertal.de/~harenber/dvrptr.zip

Is this a bug or is this generally not possible on ARM based machines?

Thanks for any hint!

Kind regards,

  Torsten

Appendix: error message while running the x86_64 compiled app:

harenber at pandaboard:~/dvrptr$ mono dvrptr.exe
Stacktrace:

  at System.Drawing.Font.CreateFont
(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool)
<0x0013f>
  at System.Drawing.Font..ctor
(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool)
<0x0007f>
  at System.Drawing.Font..ctor (string,single,string) <0x00057>
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor
(string,single,string) <0xffffffff>
  at System.Drawing.SystemFonts.get_DefaultFont () <0x0005b>
  at System.Windows.Forms.Theme..ctor () <0x0002b>
  at System.Windows.Forms.ThemeWin32Classic..ctor () <0x00013>
  at System.Windows.Forms.ThemeVisualStyles..ctor () <0x00013>
  at System.Windows.Forms.ThemeEngine..cctor () <0x00063>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.X11DesktopColors..cctor () <0x000a7>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.XplatUIX11..ctor () <0x0014b>
  at System.Windows.Forms.XplatUIX11.GetInstance () <0x0004b>
  at System.Windows.Forms.XplatUI..cctor () <0x0010b>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.Application.EnableVisualStyles () <0x0001b>
  at dvrptr.Program.Main () <0x00067>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:


Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted
harenber at pandaboard:~/dvrptr$


More information about the Mono-devel-list mailing list