[Mono-bugs] [Bug 560682] New: ilasm can't compile il code generated by GPCP

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Dec 4 02:14:12 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=560682

http://bugzilla.novell.com/show_bug.cgi?id=560682#c0


           Summary: ilasm can't compile il code generated by GPCP
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.4.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: IL assembler
        AssignedTo: jankit at novell.com
        ReportedBy: pyle3 at yandex.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.1.5)
Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)

for .net exist compiler of component pascal
http://plas.fit.qut.edu.au/gpcp/Downloads.aspx
it have version for win .net
i was try start compiler under ubuntu 9-10 + mono
target is way to work GPCP under linux
what i was did:

1) env variables:
PATH=$PATH:$HOME/gpcp-CLR_1.3.9/bin
export PATH
CPSYM=.:$HOME/gpcp-CLR_1.3.9/libs:$HOME/gpcp-CLR_1.3.9/libs/NetSystem
export CPSYM

2) file: gpcp-CLR_1.3.9/source/libs/csharp/GPFiles.cs
changes from:
public static char pathSep = ';';
public static char fileSep = '\\';
public static char optChar = '/';
to:
public static char pathSep = ':';
public static char fileSep = '\u002F';
public static char optChar = '-';

compiling
csc /t:library /debug GPFiles.cs

need copy new GPFiles.dll to gpcp-CLR_1.3.9/bin

3) file: gpcp-CLR_1.3.9/source/gpcp/csharp/MsilAsm.cs 

changes:
from:
return System.IO.Directory.GetParent(s).ToString() + "\\";
asm.StartInfo.FileName = GetDotNetRuntimeInstallDirectory() + "ilasm";
to:
return System.IO.Directory.GetParent(s).ToString() + "\u002F";
asm.StartInfo.FileName = GetDotNetRuntimeInstallDirectory() + "ilasm.exe";
or simply to:
asm.StartInfo.FileName = "ilasm2";

compiling:
csc /t:library /r:RTS.dll /debug MsilAsm.cs

need copy new MsilAsm.dll to gpcp-CLR_1.3.9/bin


trying to compile by gpcp:
cd gpcp-CLR_1.3.9/NETexamples/hello/
gpcp Hello.cp  //must make 3 files: cps, il, exe/dll

error by ilasm2:
"Hello.il (28, 9) : Error : irrecoverable syntax error

***** FAILURE *****"

work normally:
gpcp -code Hello.cp // must make only 2 files: cps, il

!!!problem!!!
1) i was try compile Hello.il by hands by ilasm/ilasm2 on ubuntu it make me
this error
2) i was try compile Hello.il by hands by ilasm/ilasm2 on windows7 it make me
this error
3) i was try compile Hello.il by hands by ms ilasm on windows7 and it compile
it correctly
so this is problem in mono's ilasm/ilasm2

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list