mono 1.1.7 build on my ibook fails with the log written below. I tried the last command manually: lamiamela mono # cd /var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs/class/Microsoft.VisualBasic/fixup lamiamela fixup # MONO_PATH="../../../class/lib/default:$MONO_PATH" /var/tmp/portage/mono-1.1.7/work/mono-1.1.7/runtime/monodis-wrapper ../../../class/lib/default/Microsoft.VisualBasic.dll > default/t1 Segmentation fault Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: ake[7]: Entering directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs/class/Microsoft.VisualBasic' MONO_PATH="../../class/lib/default:$MONO_PATH" /var/tmp/portage/mono-1.1.7/work/mono-1.1.7/runtime/mono-wrapper ../../tools/resgen/resgen.exe `echo Microsoft.VisualBasic/VBUtils.txt | cat` Read in 133 resources from 'Microsoft.VisualBasic/VBUtils.txt' Writing resource file... Done. MONO_PATH="../../class/lib/default:$MONO_PATH" /var/tmp/portage/mono-1.1.7/work/mono-1.1.7/runtime/mono-wrapper ../../class/lib/default/mcs.exe -d:NET_1_1 -d:ONLY_1_1 -debug /noconfig /r:mscorlib.dll /r:System.dll /r:System.Windows.Forms.dll @Microsoft.VisualBasic.dll.resources -codepage:65001 /target:library /out:../../class/lib/default/Microsoft.VisualBasic.dll @Microsoft.VisualBasic.dll.sources Microsoft.VisualBasic.CompilerServices/VBBinder.cs(102) warning CS0219: The variable 'applicable_type' is assigned but its value is never used Microsoft.VisualBasic.CompilerServices/VBBinder.cs(256) warning CS0219: The variable 'numParams' is assigned but its value is never used Microsoft.VisualBasic.CompilerServices/VBBinder.cs(336) warning CS0219: The variable 'paramArrayIndex' is assigned but its value is never used Microsoft.VisualBasic/ErrObject.cs(53) warning CS0169: The private field 'Microsoft.VisualBasic.ErrObject.pLastDllError' is never used Microsoft.VisualBasic/ErrObject.cs(55) warning CS0169: The private field 'Microsoft.VisualBasic.ErrObject.m_bDontMapException' is never used Microsoft.VisualBasic/FileSystem.cs(299) warning CS0169: The private method 'Microsoft.VisualBasic.FileSystem.getVBFile( string)' is never used Microsoft.VisualBasic/FileSystem.cs(52) warning CS0169: The private field 'Microsoft.VisualBasic.FileSystem._randomRecordLength' is never used Microsoft.VisualBasic/FileSystem.cs(55) warning CS0169: The private field 'Microsoft.VisualBasic.FileSystem._fileAttrs' is never used Microsoft.VisualBasic/FileSystem.cs(1288) warning CS0169: The private field 'Microsoft.VisualBasic.VBStreamWriter._currentColumn' is never used Microsoft.VisualBasic/FileSystem.cs(1289) warning CS0169: The private field 'Microsoft.VisualBasic.VBStreamWriter._width' is never used Microsoft.VisualBasic/VBUtils.cs(33) warning CS0169: The private field 'Microsoft.VisualBasic.VBUtils.VB_FILE_NAME' is never used Microsoft.VisualBasic/RandomVBFile.cs(39) warning CS0169: The private field 'RandomVBFile._width' is never used Microsoft.VisualBasic/BinaryVBFile.cs(83) warning CS0169: The private method 'BinaryVBFile.readNumber()' is never used Microsoft.VisualBasic.CompilerServices/LateBinding.cs(262) warning CS0169: The private method 'Microsoft.VisualBasic.CompilerServices.LateBinding.getDefaultMemberName( System.Type)' is never used Microsoft.VisualBasic.CompilerServices/ObjectType.cs(1069) warning CS0169: The private method 'Microsoft.VisualBasic.CompilerServices.ObjectType.getTypeCodeFromVType( int)' is never used Microsoft.VisualBasic.CompilerServices/ObjectType.cs(1076) warning CS0169: The private method 'Microsoft.VisualBasic.CompilerServices.ObjectType.getVTypeFromTypeCode( System.TypeCode)' is never used Microsoft.VisualBasic.CompilerServices/ObjectType.cs(1623) warning CS0169: The private method 'Microsoft.VisualBasic.CompilerServices.ObjectType.getVType2FromTypeCode( System.TypeCode)' is never used Microsoft.VisualBasic.CompilerServices/ObjectType.cs(121) warning CS0169: The private field 'Microsoft.VisualBasic.CompilerServices.ObjectType.ConversionClassTable' is never used Microsoft.VisualBasic.CompilerServices/ObjectType.cs(122) warning CS0169: The private field 'Microsoft.VisualBasic.CompilerServices.ObjectType.WiderType' is never used Microsoft.VisualBasic.CompilerServices/ObjectType.cs(125) warning CS0169: The private field 'Microsoft.VisualBasic.CompilerServices.ObjectType.VTypeFromTypeCode' is never used Microsoft.VisualBasic.CompilerServices/ObjectType.cs(126) warning CS0169: The private field 'Microsoft.VisualBasic.CompilerServices.ObjectType.TypeCodeFromVType' is never used Microsoft.VisualBasic.CompilerServices/StringType.cs(168) warning CS0169: The private method 'Microsoft.VisualBasic.CompilerServices.StringType.FromCharAndCount( char, int)' is never used Microsoft.VisualBasic.CompilerServices/StringType.cs(173) warning CS0169: The private method 'Microsoft.VisualBasic.CompilerServices.StringType.FromCharArray( char[])' is never used Microsoft.VisualBasic.CompilerServices/StringType.cs(180) warning CS0169: The private method 'Microsoft.VisualBasic.CompilerServices.StringType.FromCharArraySubset( char[], int, int)' is never used Microsoft.VisualBasic.CompilerServices/StringType.cs(902) warning CS0169: The private method 'Microsoft.VisualBasic.CompilerServices.StringType.inBracketText( string, char)' is never used Compilation succeeded - 25 warning(s) : ../../class/lib/default/Microsoft.VisualBasic.dll ../../class/mono.snk make[8]: Entering directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs/class/Microsoft.VisualBasic/fixup' make all-local make[9]: Entering directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs/class/Microsoft.VisualBasic/fixup' MONO_PATH="../../../class/lib/default:$MONO_PATH" /var/tmp/portage/mono-1.1.7/work/mono-1.1.7/runtime/monodis-wrapper ../../../class/lib/default/Microsoft.VisualBasic.dll > default/t1 || { rm -f default/t1; exit 1; } make[9]: *** [default/Microsoft.VisualBasic.il] Error 1 make[9]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs/class/Microsoft.VisualBasic/fixup' make[8]: *** [all.real] Error 2 make[8]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs/class/Microsoft.VisualBasic/fixup' make[7]: *** [all-recursive] Error 1 make[7]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs/class/Microsoft.VisualBasic' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs/class' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs' make[4]: *** [profile-do--default--all] Error 2 make[4]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs' make[3]: *** [profiles-do--all] Error 2 make[3]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/mcs' make[2]: *** [all-local] Error 2 make[2]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mono-1.1.7/work/mono-1.1.7' make: *** [all] Error 2 Portage 2.0.51.19 (default-linux/ppc/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6y ppc) ================================================================= System uname: 2.6.10-gentoo-r6y ppc 750FX Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5,dev-lang/python-2.2.3-r6 [2.3.5 (#1, May 17 2005, 18:30:57)] ccache version 2.3 [disabled] dev-lang/python: 2.3.5, 2.2.3-r6 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.6.3, 1.9.5, 1.8.5-r3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.90.0.3-r4 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=750 -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/X11/app-defaults /etc/gconf /etc/terminfo /usr/X11R6/lib/X11/xkb /etc/env.d" CXXFLAGS="-O3 -mcpu=750 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.eliteitminds.com http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc X aac aalib alsa arts audiofile berkdb bitmap-fonts bootsplash cdparanoia cdr crypt cups curl doc dvd eds emboss encode esd fam fbcon ffmpeg flac font-server foomaticdb fortran gd gdbm gif gimpprint gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl imagemagick imlib ipv6 jabber jack java jpeg junit kde ldap libwww live mad mng motif mozilla mp3 mpeg ncurses network nls nptl objc ogg oggvorbis opengl oss pam pdflib perl pic png ppds python qt readline ruby samba scanner sdl slang speex spell ssl subversion svg tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vidix vnc vorbis wifi wmf xine xinerama xml2 xmms xprint xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Yeah, this is a known bug with mono-1.1.7 and PPC, and the reason that all the mono-1.1.x were marked -ppc recently by dholm. You can see the upstream bug at http://bugzilla.ximian.com/show_bug.cgi?id=74816 , which seems to propose a few fixes, but nothing concrete. I've added myself as a CC on that bug, so hopefully I can catch if there's a resolution in SVN that we can steal for our 1.1.7 package and then get ppc added back to keywords. Leaving this open for now to track this.
Created attachment 60487 [details, diff] Patch to hopefully fix things on PPC Ok, here's a patch, as posted to the Ximian bug, that might fix things. Patch to the mono-1.1.7-r1.ebuild following.
Created attachment 60488 [details, diff] Diff to mono-1.1.7-r1.ebuild Ok, here's a diff to the current mono-1.1.7-r1.ebuild that applies the previously posted patch to mono. Can you please apply the patch to your portage version of the ebuild, drop the other patch into the files/ dir, ebuild foo digest, try emerging mono again, and report back? Thanks.
I've just commited this fix to mono-1.1.7-r1, after getting confirmation from dholm that the fix worked for him. Marking this FIXED, please feel free to re-open if the changes commit still don't work. Thanks.
The patch works for me too. Thanks a lot! :)