Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33948 - mono-0.28 freezes during compile
Summary: mono-0.28 freezes during compile
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-20 12:19 UTC by Jan Callewaert
Modified: 2003-12-06 12:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Callewaert 2003-11-20 12:19:15 UTC
When i try to compile, mono freezes

Reproducible: Always
Steps to Reproduce:
1. emerge mono

Actual Results:  
I cannot compile mono: the compilation freezes or returns an error.

Expected Results:  
emerge mono

# emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.
0-test9-gentoo)
=================================================================
System uname: 2.6.0-test9-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs fixpackages"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.snt.utwente.
nl/pub/os/linux/gentoo http://gentoo.mirror.sdv.fr http://gentoo.tiscali.
nl/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http:
//www.fhh.opensource-mirror.de/gentoo.org/ ftp://ftp.tiscali.
nl/pub/mirror/gentoo ftp://ftp.gentoo.skynet.be/pub/gentoo/ http://sunsite.
cnlab-switch.ch/ftp/mirror/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mpeg 
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb 
slang readline arts svga tcltk java sdl gpm tcpd pam libwww ssl perl python esd 
imlib oggvorbis qt motif cdr X gtk gtk2 gnome kde alsa cups emacs apache2 mysql 
opengl linguas_nl"

strace gives no output on the place of the error. The cpu load stays constant 
and doesn't change anymore, whereas that normally changes.

The last line of output = 

touch ../../build/deps/System.Security.dll.stamp
MONO_PATH="../../class/lib:$MONO_PATH" /var/tmp/portage/mono-0.28/work/mono-0.
28/mono/mini/mono  ../../mcs/mcs.exe   -d:NET_1_1 -g /noconfig /r:corlib.dll /r:
System.dll /r:System.Xml.dll /target:library /out:../../class/lib/System.
Security.dll @System.Security.dll.sources

When cleaning out /var/tmp/portage and /usr/portage/distfiles:

Compilation succeeded
lt-mono: mini-x86.c:3119: mono_arch_patch_code: Assertie `0' faalde.
/var/tmp/portage/mono-0.28/work/mono-0.28/runtime/mcs: line 1: 16663 Afgebroken  
            (core dumped) /var/tmp/portage/mono-0.28/work/mono-0.
28/mono/mini/mono /var/tmp/portage/mono-0.28/work/mono-0.28/runtime/mcs.exe "$@"
make[1]: *** [mcs.exe] Fout 134
make[1]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/mcs'
make: *** [all-recursive] Fout 1

!!! ERROR: dev-dotnet/mono-0.28 failed.
!!! Function src_compile, Line 49, Exitcode 2
!!! MCS compilation failure


i did an emerge sync and tried again:

Compilation succeeded
make[2]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/class/Mono.
Cairo'
make[1]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/class'
make[1]: Entering directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/mbas'
Creating ../build/deps/mbas.exe.makefrag ...
make[1]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/mbas'
make[1]: Entering directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/mbas'
../jay/jay -ctv <../jay/skeleton.cs mb-parser.jay >mb-parser.cs
../jay/jay: 4 rules never reduced
../jay/jay: 71 shift/reduce conflicts, 10 reduce/reduce conflicts.
touch ../build/deps/mbas.exe.stamp
MONO_PATH="../class/lib:$MONO_PATH" /var/tmp/portage/mono-0.28/work/mono-0.
28/mono/mini/mono  ../mcs/mcs.exe /r:System.dll /r:../class/lib/Mono.GetOptions.
dll  -d:NET_1_1 -g /target:exe /out:mbas.exe mb-parser.cs @mbas.exe.sources

And then it freezes again.

I have compiled it several times and the second fault i experienced only once. 
The last error is given when /var/tmp/portage is clean. Otherwise i get the 
first error.
Comment 1 Shawn Wheatley 2003-12-04 13:01:29 UTC
I have gotten 0.29 to compile in an ebuild:
http://bugs.gentoo.org/show_bug.cgi?id=35077

Hopefully this will be added into portage soon.
Comment 2 Todd Berman (RETIRED) gentoo-dev 2003-12-04 13:14:30 UTC
Have you run a recent memtest on this system?
Comment 3 Todd Berman (RETIRED) gentoo-dev 2003-12-04 13:15:11 UTC
Have you run a recent memtest on this system?
Comment 4 Jan Callewaert 2003-12-06 07:37:47 UTC
How do you do that? The funny thing is, i got it once compiled, but then i couldn't compile monodoc. Now i can't compile mono no more.
Comment 5 Todd Berman (RETIRED) gentoo-dev 2003-12-06 11:24:47 UTC
This might end up being over aggressive CFLAGS, try changing down to something lower, like -O2 and -march=i686, if this works, I will start stripping flags on the mono build.
Comment 6 Jan Callewaert 2003-12-06 11:49:49 UTC
with the optimization flag -O2 -mcpu=pentium4, the compilation stops at a different stage:

touch ../../build/deps/Mono.PEToolkit.dll.stamp
MONO_PATH="../../class/lib:$MONO_PATH" /var/tmp/portage/mono-0.28/work/mono-0.28/mono/mini/mono  ../../mcs/mcs.exe   -d:NET_1_1 -g /noconfig /unsafe /r:corlib.dll /r:System.Xml.dll /target:library /out:../../class/lib/Mono.PEToolkit.dll @Mono.PEToolkit.dll.sources
lt-mono: mini-x86.c:3119: mono_arch_patch_code: Assertie `0' faalde.
make[2]: *** [../../class/lib/Mono.PEToolkit.dll] Gedood
make[2]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/class/Mono.PEToolkit'
make[1]: *** [all-recursive] Fout 1
make[1]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/class'
make: *** [all-recursive] Fout 1

!!! ERROR: dev-dotnet/mono-0.28 failed.
!!! Function src_compile, Line 49, Exitcode 2
!!! MCS compilation failure

-O2 -march=pentium4 crashes at:

touch ../../build/deps/Mono.Data.TdsClient.dll.stamp
MONO_PATH="../../class/lib:$MONO_PATH" /var/tmp/portage/mono-0.28/work/mono-0.28/mono/mini/mono  ../../mcs/mcs.exe   -d:NET_1_1 -g /noconfig /r:corlib.dll /r:System.dll /r:System.Xml.dll /r:System.EnterpriseServices.dll /r:System.Data.dll /r:Mono.Data.Tds.dll /target:library /out:../../class/lib/Mono.Data.TdsClient.dll @Mono.Data.TdsClient.dll.sources
Compilation succeeded
lt-mono: mini-x86.c:3119: mono_arch_patch_code: Assertie `0' faalde.
make[2]: *** [../../class/lib/Mono.Data.TdsClient.dll] Afgebroken (geheugendump)
make[2]: *** Bestand `../../class/lib/Mono.Data.TdsClient.dll' wordt verwijderd
make[2]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/class/Mono.Data.TdsClient'
make[1]: *** [all-recursive] Fout 1
make[1]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/class'
make: *** [all-recursive] Fout 1

!!! ERROR: dev-dotnet/mono-0.28 failed.
!!! Function src_compile, Line 49, Exitcode 2
!!! MCS compilation failure

Even without any CFlAGS it fails to compile:

touch ../../build/deps/ICSharpCode.SharpZipLib.dll.stamp
MONO_PATH="../../class/lib:$MONO_PATH" /var/tmp/portage/mono-0.28/work/mono-0.28/mono/mini/mono  ../../mcs/mcs.exe   -d:NET_1_1 -g /noconfig /r:corlib.dll /r:System.dll /r:System.Xml.dll /target:library /out:../../class/lib/ICSharpCode.SharpZipLib.dll @ICSharpCode.SharpZipLib.dll.sources
Compilation succeeded
make[2]: *** [../../class/lib/ICSharpCode.SharpZipLib.dll] Gedood
make[2]: *** Bestand `../../class/lib/ICSharpCode.SharpZipLib.dll' wordt verwijderd
make[2]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/class/ICSharpCode.SharpZipLib'
make[1]: *** [all-recursive] Fout 1
make[1]: Leaving directory `/var/tmp/portage/mono-0.28/work/mcs-0.28/class'
make: *** [all-recursive] Fout 1

!!! ERROR: dev-dotnet/mono-0.28 failed.
!!! Function src_compile, Line 49, Exitcode 2
!!! MCS compilation failure

So i don't think it has something to do with optimization flags. Maybe i need to mention that i'm using now kernel 2.6.0 test 11.
Comment 7 Todd Berman (RETIRED) gentoo-dev 2003-12-06 11:58:14 UTC
Ah, im not sure if mono builds on 2.6, let me ask people in the know and get back to you.

Is there anyway you can drop down to a 2.4 just to test this compile?

The face that this keeps dying in random places is someone strange, and doing a memtest86 on your box might not be a bad idea. emerge -s memtest for more info.
Comment 8 Todd Berman (RETIRED) gentoo-dev 2003-12-06 12:02:28 UTC
mono will build on 2.6 without an issue, so thats not the problem.
Comment 9 Jan Callewaert 2003-12-06 12:44:38 UTC
That's not what i experience. It compiles with kernel 2.4.20 with agressive optimization flags, both mono and monodoc. But i see that i have filed the bug under test 9, now i am running test 11, maybe it does run under test 10? If you want to, i can compile that one again.
Comment 10 Jan Callewaert 2003-12-06 12:48:16 UTC
i forgot to mention it, memtest doesn't give any errors.