[Mono-list] compilation problems: mcs killed

Marcel Pol mpol@gmx.net
Wed, 3 Sep 2003 18:44:52 +0200


Hello,
I'm running into problems with compiling software with mono/mcs 0.26 on
Mandrake 9.2rc1. I'm rather confused by it, and I'm not sure what exactly is
happening and why.
I can compile parts of software, like mod_mono/xsp or gtk-sharp, and after
comiling a part it says "compilation succeeded", but the mcs process gets
killed, which makes make stop also.
It doesn't always happen at the same place, but it does happen on another
computer as well, so I doubt it has to do with memory problems.


For example with xsp from cvs20030831:
mcs /r:System.Web.dll /target:library tabcontrol.cs
Compilation succeeded
mcs /r:System.Web.dll /target:library tabcontrol2.cs
Compilation succeeded
mcs /r:System.Web.dll /target:library codebehind1.cs
Compilation succeeded
mcs /target:library /out:extensions.dll TraceExtension.cs EncryptExtension.cs
DumpExtension.cs /r:System.Web.dll /r:System.Web.Services.dll
Compilation succeeded
mcs ServiceClient.cs Reference.cs /r:System.Web.dll /r:System.Web.Services.dll
/r:extensions.dll
Compilation succeeded
/usr/bin/mcs: line 2:  2309 Killed                  /usr/bin/mono
/usr/bin/mcs.exe "$@"
make[1]: *** [ServiceClient.exe] Error 137


When I run make through strace I get this:
mcs -debug+ -debug:full -nologo -r:System.Web.dll /out:xsp.exe AssemblyInfo.cs
IApplicationHost.cs XSPApplicationHost.cs MonoWorkerRequest.cs
XSPWorkerRequest.cs InitialWorkerRequest.cs Tracing.cs server.cs
)                                 = 2447
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, WROTE SYMFILE: 8 sources, 103 methods, 112 types, 660 line numbers,
85 locals, 22 namespaces, 9017 bytes of string data
OffsetTable [28590 - 52:27110 - 8:28398:192 - 103:27162:1236 - 112]
Compilation succeeded
/usr/bin/mcs: line 2:  2449 Killed                  /usr/bin/mono
/usr/bin/mcs.exe "$@"
make[1]: *** [xsp.exe] Error 137
make[1]: Leaving directory
`/home/marcel/rpm/BUILD/mod_mono-0.4.1-20030831/xsp-0.6-20030831/server'
[WIFEXITED(s) && WEXITSTATUS(s) == 2], 0, NULL) = 2447
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
open("/usr/share/locale/nl_NL/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/nl/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
write(2, "make: ", 6make: )                   = 6
write(2, "*** [all] Error 2", 17*** [all] Error 2)       = 17
write(2, "\n", 1
)                       = 1
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
chdir("/home/marcel/rpm/BUILD/mod_mono-0.4.1-20030831/xsp-0.6-20030831") = 0
munmap(0x40191000, 4096)                = 0
exit_group(2)                           = ?
bash-2.05b$

--
Marcel Pol