Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96719 - mono-1.1.8.1 build fails
Summary: mono-1.1.8.1 build fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
: 98192 99361 104744 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-21 11:13 UTC by Jose daLuz
Modified: 2005-10-18 11:09 UTC (History)
12 users (show)

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


Attachments
TdsDateTime.cs (TdsDateTime.cs,6.26 KB, text/plain)
2005-06-21 16:17 UTC, Jose daLuz
Details
mono-1.1.8-mcs.exe (mono-1.1.8-mcs.exe,760.50 KB, application/octet-stream)
2005-06-28 19:54 UTC, Peter Johanson (RETIRED)
Details
mono-1.1.8.1.ebuild (mono-1.1.8.1.ebuild,2.32 KB, text/plain)
2005-06-28 19:55 UTC, Peter Johanson (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose daLuz 2005-06-21 11:13:37 UTC
Updating mono from 1.1.8 to 1.1.8.1 fails:
Mono.Data.TdsTypes/TdsDateTime.cs(240) error CS8025: Parsing error

Reproducible: Always
Steps to Reproduce:
1. emerge -uD world
2.
3.

Actual Results:  
Compilation error: Mono.Data.TdsTypes/TdsDateTime.cs(240) error CS8025: Parsing
error

Expected Results:  
Built correctly.

make[8]: Entering directory
`/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/class/Mono.Data.TdsClient'
MONO_PATH="../../class/lib/net_2_0:$MONO_PATH"
/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/runtime/mono-wrapper 
../../gmcs/gmcs.exe   -d:NET_1_1 -d:NET_2_0 -debug /noconfig /r:mscorlib.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/net_2_0/Mono.Data.TdsClient.dll 
@Mono.Data.TdsClient.dll.sources
Mono.Data.TdsTypes/TdsDateTime.cs(240) error CS8025: Parsing error
Compilation failed: 1 error(s), 0 warnings
make[8]: *** [../../class/lib/net_2_0/Mono.Data.TdsClient.dll] Error 1
make[8]: Leaving directory
`/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/class/Mono.Data.TdsClient'
make[7]: *** [do-all] Error 2
make[7]: Leaving directory
`/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/class/Mono.Data.TdsClient'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory
`/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/class'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs'
make[4]: *** [profile-do--net_2_0--all] Error 2
make[4]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1'
make: *** [all] Error 2

!!! ERROR: dev-lang/mono-1.1.8.1 failed.
!!! Function src_compile, Line 76, Exitcode 2
!!! MONO compilation failure

emerge --info
Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo x86_64)
=================================================================
System uname: 2.6.12-gentoo x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/gentoo.de"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi alsa bash-completion berkdb bitmap-fonts cdr crypt
cups curl dbus eds esd flac font-server foomaticdb fortran gd gdbm gif gnome gpm
gstreamer gtk hal howl imagemagick imlib ipv6 java jp2 jpeg libwww lzw lzw-tiff
mad maildir mono motif mozilla mp3 mysql ncurses nls nptl ogg oggvorbis opengl
oss pam perl pic png python qt readline ruby sdl speex sqlite ssl tcltk tcpd
tetex theora tiff truetype truetype-fonts type1-fonts usb userlocales vorbis
xine xml xml2 xmms xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Peter Johanson (RETIRED) gentoo-dev 2005-06-21 15:49:30 UTC
Looking at the diff between 1.1.8 and 1.1.8.1, there's *definitely* no changes
to that file, or indeed any *.cs files in this release.

The few changes made to the runtime seem unlike to have caused this, but could
be. Can you please attach the TdsDateTime.cs file to this bug for completeness,
just to make sure you're not getting odd file corruption, etc? Thanks.
Comment 2 Jose daLuz 2005-06-21 16:17:19 UTC
Created attachment 61688 [details]
TdsDateTime.cs

Sure, here it is.  Just to be sure, this is the path I got it from:
/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/class/Mono.Data.TdsClient/Mono.Data.TdsTypes/TdsDateTime.cs
Comment 3 Mark Rosenstand 2005-06-21 22:48:51 UTC
This happens for me too (when upgrading from 1.1.8.)

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo x86_64)
=================================================================
System uname: 2.6.12-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.12
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/borkware /usr/local/overlays/gentopia
/home/mark/src/galago/packaging/gentoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acl acpi alsa apache2 bash-completion berkdb bitmap-fonts
cairo cdr crypt dvd dvdr eds encode epiphany fam fbcon ffmpeg font-server
fortran gd gif glitz glut gnome gpm gstreamer gtk gtk2 gtkhtml hal howl icq imap
imlib innodb jabber jpeg mad matroska mbox mono mozilla mp3 mpm-worker msn mysql
ncurses network nfs nls nptl offensive ogg oggvorbis openal opengl pam pcre perl
png postgres python readline samba ssl svg tcpd theora threads tiff truetype
truetype-fonts type1-fonts unicode usb userlocales v4l vorbis xinerama xml2
xmlrpc xosd xpm xscreensaver xsl xv xvid xvmc zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 4 Henk Poley 2005-06-22 07:52:16 UTC
This is not AMD64 specific (should switch Hardware to 'all' ?):

Creating ../build/deps/net_1_1_bootstrap_mcs.exe.makefrag ...
make[6]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/mcs'
make[6]: Entering directory
`/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/mcs'
make all-local
make[7]: Entering directory
`/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/mcs'
MONO_PATH="../class/lib/basic:$MONO_PATH"
/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/runtime/mono-wrapper 
../class/lib/basic/mcs.exe   -d:NET_1_1 -d:ONLY_1_1 -debug /target:exe
/out:mcs.exe cs-parser.cs  @mcs.exe.sources
cs-parser.cs(947) warning CS0162: Unreachable code detected

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
make[7]: *** [../class/lib/net_1_1_bootstrap/mcs.exe] Error 1
make[7]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/mcs'
make[6]: *** [do-all] Error 2
make[6]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs/mcs'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs'
make[4]: *** [profile-do--net_1_1_bootstrap--all] Error 2
make[4]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mono-1.1.8.1/work/mono-1.1.8.1'
make: *** [all] Error 2


MFL ~ # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686)
=================================================================
System uname: 2.6.11-gentoo-r11 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 21:09:01)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="nl"
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="x86 3dnow 3dnowex X X509 aac aalib acpi acpi4linux aim alsa amd apache2 apm
arts artswrappersuid audiofile avi bash-completion berkdb bitmap-fonts bluetooth
bonobo cdda cddb cdparanoia cdr chroot codecs crypt css cups curl divx4linux doc
dpms droproot dts dv dvd dvdr dvdread eds emboss encode escreen esd ethereal evo
evo2 faad fam fame fastcgi fb fbcon fbdev festival ffmpeg fftw flac flash
foomaticdb fortran freetts freetype frontendonly ftp gb gcj gd gdbm geoip gg gif
gimp gimpprint glut gmail gnokii gnome gnomedb gphoto2 gpm gps graphviz gs gsm
gsnd gstreamer gtk gtk2 gtkhtml guile hal hbci howl httpd icq icu ieee1394
imagemagick imlib ipv6 irc j2ee jabber jack java javascript jbig jikes jp2 jpeg
jpeg2k junit kadu-modules kadu-voice kcal kde kdeenablefinal kdepim kdexdeltas
kerberos koffice-plugin krb4 lcms ldap libg++ libwww live lj lm_sensors
logitech-mouse ltsp lzo lzw lzw-tiff mad matroska mbrola memlimit mikmod ming
mjpeg mmap mmx mmx2 mng monkey mono motif mozaccess mozcalendar mozdevelop
mozilla mozp3p mozsvg mp3 mpeg mpeg4 mplayer msn mysql mysqli mythtv nas ncurses
net network nls nocd nvidia ofx ogg oggvorbis openal openexr opengl oscar oss
pam pdf pdflib perl php pic png povray ppds python qt quicktime quotas quotes
rdesktop readline real rss rtc samba scanner sdl slang sms sndfile snmp speex
spell sqlite sse ssl startup-notification stream svg svga svgz tcltk tcpd tetex
theora threads tidy tiff transcode truetype truetype-fonts type1-fonts unicode
usb utf8 v4l v4l2 vcd vcdimager vlm vorbis wifi win32codecs wmf wolk-bootsplash
wxwindows xanim xine xml xml2 xmlrpc xmms xosd xpm xprint xrandr xscreensaver
xslt xv xvid xvmc yahoo zeroconf zlib zvbi linguas_nl userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 5 Henk Poley 2005-06-22 07:54:07 UTC
Hmm, sorry.. my error message seems to be another error all together.

*whistle*
Comment 6 Gen2 2005-06-23 11:06:51 UTC
I tried to find why the compilation of Mono.Data.TdsTypes/TdsDateTime.cs is
failing by looking at the the code. the line mcs is reporting to contain the
error just contains a closing }. i tried to compile it with the actually
installed mcs and it worked without problems so i guess they managed to bork mcs
somehow... I thought, i'll let you know maybe this helps to fix this issue....
Comment 7 Peter Johanson (RETIRED) gentoo-dev 2005-06-28 19:54:30 UTC
Created attachment 62213 [details]
mono-1.1.8-mcs.exe

mcs.exe from the mono-1.1.8 release.
Comment 8 Peter Johanson (RETIRED) gentoo-dev 2005-06-28 19:55:54 UTC
Created attachment 62214 [details]
mono-1.1.8.1.ebuild

Here's a mono-1.1.8.1.ebuild which copies the mcs.exe from mono-1.1.8 into the
right location before trying to compile.

Please replace the original 1.1.8.1 ebuild with this, and put
mono-1.1.8-mcs.exe into the files/ dir for mono, and report back if this fixes
things or not, thanks.
Comment 9 Herbie Hopkins (RETIRED) gentoo-dev 2005-06-29 04:46:31 UTC
No joy, produces same error here.
Comment 10 Jose daLuz 2005-06-29 05:15:37 UTC
I also get the same error after using the new ebuild/old mcs.
Comment 11 Marc Hellwig 2005-07-04 12:41:51 UTC
I had the same problem compiling 1.1.8.1 on my AMD64.
Emerging without optimization fixed the problem and mono-1.1.8.1 compiled cleanly.
CFLAGS="-march=k8" emerge -v mono


Cereus dev-lang # emerge info                      
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.12-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 12 2005, 21:53:20)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.5, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=k8 -mfpmath=sse,387 -mmmx -msse -msse2 -m3dnow -pipe
-fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=k8 -mfpmath=sse,387 -mmmx -msse -msse2 -m3dnow -pipe
-fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
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="amd64 X aalib acpi alsa arts avi bash-completion berkdb bitmap-fonts
bluetooth bzlib canna cdparanoia cdr cjk crypt cups curl doc dv dvd dvdr eds
encode esd exif f77 fam ffmpeg fftw flac font-server fortran gcj gif glitz gnome
gphoto2 gpm gstreamer gtk gtk2 guile imagemagick imlib innodb ipv6 java jp2 jpeg
junit kde libwww lzw lzw-tiff mad math mime motif mozilla mozsvg mp3 mpeg mpeg4
mysql ncurses network nls nptl nvidia ogg oggvorbis opengl oss pam pdflib perl
plugin png python qt readline rtc sdl ssl tcltk tcpd tetex theora threads tiff
truetype truetype-fonts type1-fonts usb userlocales vorbis wifi xine xinerama
xml xml2 xmms xpm xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Comment 12 Peter Johanson (RETIRED) gentoo-dev 2005-07-04 18:21:51 UTC
Ok, can everyone else try with more minimal USE flags? (probably removing -O2 is
the big one). Thanks.
Comment 13 Marc Schaubach 2005-07-04 18:31:14 UTC
CFLAGS="-march=k8" emerge -v mono 

Worked for me!  AMD64 2800... first time mono built since 1.1.8!

Cool
Comment 14 Jose daLuz 2005-07-04 19:36:02 UTC
Okay, this is strange.  I did an "emerge -uD world" and this time mono built
with no problem -- and I did *not* change my CFLAGS.  Here's "emerge --info" for
comparison with my original posting:

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo
x86_64)=================================================================
System uname: 2.6.12-gentoo x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/gentoo.de"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi alsa bash-completion berkdb bitmap-fonts cdr crypt
cups curl dbus eds esd flac font-server foomaticdb fortran gd gdbm gif gnome gpm
gstreamer gtk hal howl imagemagick imlib ipv6 java jp2 jpeg libwww lzw lzw-tiff
mad maildir mono motif mozilla mp3 mysql ncurses nls nptl ogg oggvorbis opengl
oss pam perl pic png python qt readline ruby sdl speex sqlite ssl tcltk tcpd
tetex theora tiff truetype truetype-fonts type1-fonts usb userlocales vorbis
xine xml xml2 xmms xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 15 Jason L. 2005-07-05 18:21:39 UTC
I have compiled with sane CFLAGS (CFLAGS="" emerge mono -v)
and updated everything and I still get this error. Mono just seems to hate me :-(

emerge --info
Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.12-ck3 x86_64)
=================================================================
System uname: 2.6.12-ck3 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.12
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=athlon64 -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mtune=athlon64 -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.acm.cs.rpi.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/pkg"
PORTAGE_TMPDIR="/usr/tmp2"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/trunk /usr/local/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi alsa amd64 berkdb bitmap-fonts cairo cdr crypt cups curl dbus
dvd dvdr dvdread eds encode fam flac font-server foomaticdb fortran gdbm gif
glitz gnome gphoto2 gpm gstreamer gtk gtk2 hal howl ieee1394 imagemagick imlib
ipv6 jabber jack java jp2 jpeg ldap libwww lirc logitech-mouse lzw lzw-tiff mad
mime mono motif mozilla mp3 mpeg musepack ncurses nls nptl nptlonly ogg
oggvorbis openal opengl oscar pam perl png ppds python quicktime readline ruby
sdl speex spell sqlite ssl tcltk tcpd tetex threads tiff truetype truetype-fonts
type1-fonts unicode usb userlocales vorbis want-experimental xine xml xml2 xmms
xpm xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 16 Jose daLuz 2005-07-06 17:31:01 UTC
I just emerged mono-1.1.8.2 (using "emerge -uD world"), and the compilation
failed with the same error that I originally got with 1.1.8.1.  I then tried
'CFLAGS="" emerge -uv mono' instead and that worked just fine.
Comment 17 Guy Rouillier 2005-07-06 20:27:02 UTC
I did an emerge --update for a bunch of stuff, including mono, and 1.1.8.2
failed just like 1.1.8.1.  So then I did an explicite emerge with
CFLAGS="-march=k8" emerge and it worked just fine.  So at least for me, it looks
like CFLAGS was the problem.  Here's my emerge info:

Portage 2.0.51.22-r1 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r6 x86_64 Mobile AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -fweb -frename-registers -pipe"
CHOST="x86_64-pc-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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/lib/X11/xkb /etc/env.d"
CXXFLAGS="-march=k8 -O2 -fweb -frename-registers -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/
ftp://lug.mtu.edu/gentoo/source ftp://ftp.ndlug.nd.edu/pub/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts berkdb bitmap-fonts cdr crypt cups curl dbus eds esd
fam font-server fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6
ithreads jp2 jpeg ldap libwww lzw lzw-tiff mad mikmod mozilla mp3 mysql ncurses
nls nptl ogg opengl oss pam pdflib perl png python qt readline samba ssl tcpd
tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xinerama xml
xml2 xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2005-07-07 01:10:14 UTC
*** Bug 98192 has been marked as a duplicate of this bug. ***
Comment 19 Sander Sweers 2005-07-07 08:03:40 UTC
Compiling with -O0, -O1, and -O3 gave no errors. So a single replace_flags O2 O1
should be all that is needed to solve this.
Comment 20 Jason L. 2005-07-07 17:23:24 UTC
I am still not convinced that that is exactly the problem, Jose DeLuze claims he
did -O2 and still got it compiled and I've tried just -march=k8 down from a
rather reasonable -O2 -march=k8 -pipe and it still it is spitting out this exact
error

something else is going on here methinks
Comment 21 Brenden Matthews 2005-07-08 20:01:34 UTC
Same thing here with mono 1.1.8.2

make[8]: Entering directory
`/var/tmp/portage/mono-1.1.8.2/work/mono-1.1.8.2/mcs/class/Mono.Data.TdsClient'
MONO_PATH="../../class/lib/net_2_0:$MONO_PATH"
/var/tmp/portage/mono-1.1.8.2/work/mono-1.1.8.2/runtime/mono-wrapper 
../../gmcs/gmcs.exe   -d:NET_1_1 -d:NET_2_0 -debug /noconfig /r:mscorlib.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/net_2_0/Mono.Data.TdsClient.dll 
@Mono.Data.TdsClient.dll.sources
Mono.Data.TdsTypes/TdsDateTime.cs(240) error CS8025: Parsing error
Compilation failed: 1 error(s), 0 warnings
make[8]: *** [../../class/lib/net_2_0/Mono.Data.TdsClient.dll] Error 1
Comment 22 Pär Karlsson 2005-07-09 03:46:04 UTC
This is weird. I don't know if it helps, or if it is useful information but... I
tried emerging mono-1.1.8.2 as usual and it failed. Then I tried the old trick
with 'CFLAGS="-march=k8" emerge mono' and it failed again with
'Mono.Data.TdsTypes/TdsDateTime.cs(240) error CS8025: Parsing error'

I tried with 'CFLAGS="-march=k8 -pipe"' and it failed.

I tried again with env-update and then emerging with 'CFLAGS="-march=k8" emerge
mono', same result.

Then, just for the hell of it, I emerged with 'CFLAGS="-march=k8" emerge -v
mono' and it succeeded. I'll make more trial emerges with 'emerge -v' and
without, but it just doesn't seem reasonable that '-v' should make a difference,
does it?
Comment 23 Jason L. 2005-07-09 18:22:14 UTC
0_o -v just means verbose...right?
this is getting reallly strange
Comment 24 Marc Schaubach 2005-07-09 19:06:15 UTC
Again 1.1.8.2 would not compile
Again [CFLAGS="-march=k8" emerge -v mono] worked

emerge --info

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.12
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp-mirror.internap.com/pub/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/temp/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi adns alsa apache2 arts artswrappersuid avi
bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups curl dvd dvdread eds
encode esd ffmpeg firefox flac font-server foomaticdb fortran gd gdbm gif gpm
gstreamer gtk gtk2 gtkhtml imagemagick imlib java jikes jp2 jpeg junit kde
libwww lzw lzw-tiff mad maildir mbox mikmod mozcalendar mozilla mozsvg mp3 mysql
mythtv nas ncurses nfsv4 nls nptl nvidia offensive ogg oggvorbis opengl oss pam
pdflib perl png ppds python qt readline real ruby samba sasl sdl server slang
speex spell ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts usb
userlocales vorbis xine xinerama xml2 xmms xpm xprint xrandr xv xvid xvmc zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 25 Pär Karlsson 2005-07-09 19:15:34 UTC
Update: 'CFLAGS="-march=k8" emerge -v mono' failed the second time i ran it in
the same shell session.
Comment 26 Jason L. 2005-07-09 19:44:16 UTC
I tried to reproduce exactly what Par Karlsson did and compiling failed every
single time (same error), and since it failed the second time for him, anyone
else who said CFLAGS="-march=k8"  worked for them try to recompile a second time?
Comment 27 Guy Rouillier 2005-07-09 23:19:00 UTC
As requested, I just did CFLAGS="-march=k8" emerge mono a second time, and it
worked fine for me.  Emerge info provided in previous post.
Comment 28 Pär Karlsson 2005-07-10 02:30:12 UTC
I include some more info, if it may be relevant:

emerge info
Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0,
2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/
http://trumpetti.atm.tut.fi/gentoo/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://mirror.gentoo.no/
http://src.gentoo.pl http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl
http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo
http://mirror.pudas.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acl acpi alsa aotuv artworkextra audiofile avi
bash-completion berkdb bitmap-fonts bonobo cdda cddb cdio cdparanoia cdr crypt
cscope curl dga dnd doc dts dv dvd dvdr dvdread editor eds emacs encode esd fam
fame ffmpeg flac flash flood fluidsynth font-server fortran fpx gcj gd gdbm gif
gnome gnomedb gnutls gpm gprof graphviz gstreamer gtk gtk2 gtkhtml guile hal icu
imagemagick imlib ipv6 jabber jack jack-tmpfs java javascript jbig jp2 jpeg
junit kde kerberos ladcca ladspa lcms ldap libcaca libgda libsamplerate libwww
lzo lzw lzw-tiff mad matroska mikmod mjpeg mng motif mozdevelop mozilla mozsvg
mp3 mpeg msn mule mysql ncurses network nls nntp no_wxgtk1 nptl objc odbc
offensive ogg oggvorbis opengl oscar oss pam pcre perl png portaudio python qt
quicktime readline real rtc samba sdl server slang sndfile speex spell ssl
startup-notification stream svg tcltk tcpd tetex tga theora tiff tools truetype
truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vim-with-x vlm
vorbis wmf wxwindows xanim xine xml xml2 xmms xosd xpm xprint xrandr
xscreensaver xv xvid xvmc yahoo yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

/etc/portage/package.keywords:
x11-terms/rxvt-unicode ~amd64
media-fonts/x11fonts-jmk ~amd64
media-gfx/blender ~amd64
media-libs/ftgl ~amd64
net-p2p/bittornado ~amd64
# net-nntp/nzbget ~amd64
media-sound/audacity ~amd64
dev-lang/erlang ~amd64
media-libs/alsa-lib ~amd64
media-sound/alsa-headers ~amd64
media-plugins/alsa-jack ~amd64
media-sound/multimux ~amd64
media-video/transcode ~amd64
media-video/mplayer ~amd64
dev-libs/libsigsegv ~amd64
dev-lisp/common-lisp-controller ~amd64
dev-lisp/cl-asdf ~amd64
dev-lisp/sbcl ~amd64
media-sound/museseq ~amd64
media-sound/rosegarden ~amd64
media-sound/om ~amd64
media-plugins/omins ~amd64
media-libs/dssi ~amd64
media-sound/smack ~amd64
media-libs/liblo ~amd64
dev-cpp/libglademm ~amd64
dev-cpp/libgnomecanvasmm ~amd64
media-video/mkvtoolnix ~amd64
x11-libs/wxGTK ~amd64
dev-lang/mono ~amd64
dev-dotnet/libgdiplus ~amd64
dev-lisp/clisp ~amd64
media-gfx/wings ~amd64
media-libs/esdl ~amd64
sys-apps/ethtool ~amd64
Comment 29 Jose daLuz 2005-07-10 06:56:56 UTC
I just ran 'CFLAGS="-march=k8" emerge -v mono' twice with no problem building
1.1.8.2.  However, as mentioned above by Jason L., I had 1.1.8.1 build during an
'emerge -uD world' with no changes to CFLAGS, after failing multiple times
previously.  Whatever's going on here is more subtle than just a matter of
optimization flags.
Comment 30 Guy Rouillier 2005-07-10 19:41:43 UTC
I did an emerge --update --deep world last night, which picked up glibc 2.3.5. 
To see if this is what is causing the build problems, I just did a third
CFLAGS="-march=k8" emerge mono, and it also completed without a problem. emerge
info same as before except for glibc.
Comment 31 Jason L. 2005-07-11 18:13:00 UTC
ok so I tried again with CFLAGS="-march=k8" emerge -v mono with ccache turned
off, nothing, at this point I'm not sure what the problem could be here is my
emerge --info again (some minor changes have occured since last time.

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-ck3 x86_64)
=================================================================
System uname: 2.6.12-ck3 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.12
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.acm.cs.rpi.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/pkg"
PORTAGE_TMPDIR="/usr/tmp2"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/trunk /usr/local/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi alsa amd64 berkdb bitmap-fonts cairo cdr crypt cups curl dbus
dvd dvdr dvdread encode fam flac font-server foomaticdb fortran gdbm gif glitz
gnome gphoto2 gpm gstreamer gtk gtk2 hal howl ieee1394 imagemagick imlib ipv6
jabber jack java jp2 jpeg ldap libwww lirc logitech-mouse lzw lzw-tiff mad mime
mono motif mozilla mp3 mpeg musepack ncurses nls nptl nptlonly ogg oggvorbis
openal opengl oscar pam perl png ppds python quicktime readline ruby sdl speex
spell sqlite ssl tcltk tcpd tetex threads tiff truetype truetype-fonts
type1-fonts unicode usb userlocales vorbis want-experimental xine xml xml2 xmms
xpm xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 32 Guy Rouillier 2005-07-11 22:51:52 UTC
I upgraded to kernel 2.6.12 last night, so I CFLAGS="-march=k8" emerge -v mono a
fourth time (notice I added the -v flag, to see if that was causing any
trouble.)  Again, it finished without a problem.  Just recompiled and reran test
programs to make sure I was producing a valid mono environment from the emerge.
 Everything is fine.  Since I've updated a bunch of stuff since this saga began,
I tried doing a simple emerge without overriding CFLAGS; still fails.  Here's my
current emerge info:

Portage 2.0.51.22-r1 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.5-r0,
2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 Mobile AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -fweb -frename-registers -pipe"
CHOST="x86_64-pc-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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/lib/X11/xkb /etc/env.d"
CXXFLAGS="-march=k8 -O2 -fweb -frename-registers -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/
ftp://lug.mtu.edu/gentoo/source ftp://ftp.ndlug.nd.edu/pub/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts berkdb bitmap-fonts cdr crypt cups curl dbus eds esd
fam font-server fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6
ithreads jp2 jpeg ldap libwww lzw lzw-tiff mad mikmod mozilla mp3 mysql ncurses
nls nptl ogg opengl oss pam pdflib perl png python qt readline samba ssl tcpd
tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xinerama xml
xml2 xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 33 Jakub Moc (RETIRED) gentoo-dev 2005-07-17 15:17:27 UTC
*** Bug 99361 has been marked as a duplicate of this bug. ***
Comment 34 Jason Pfeil 2005-07-27 12:19:59 UTC
I need to report success with this command:

# CFLAGS='-march=athlon64 -O1 -pipe' emerge -v mono

emerge --info output:

# emerge --info
Portage 2.0.51.22-r2 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.5-r0,
2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 Mobile AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr//lib/mozilla/defaults/pref /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/X11/xkb /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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acl acpi aim alsa apache2 apm audiofile avi bash berkdb
bitmap-fonts bluetooth bonobo bzlib calendar caps cdparanoia cdr crypt ctype
cups curl curlwrappers dbm dedicated dga dio dv dvd dvdr dvdread eds emacs emul
encode esd ethereal evo exif expat fam fastcgi fbcon ffmpeg flac flash flatfile
foomaticdb fortran freetype ftp gb gcj gd gdbm ggi gif glut gmp gnome gnutls
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl iconv imagemagick imap
imlib inifile innodb iodbc ipv6 jabber java javascript joystick jpeg junit kde
lcms ldap libwww lm_sensors lzw lzw-tiff mad maildir mbox mcal mime ming mmap
motif mozilla mp3 mpeg multilib mysql mysqli ncurses nls nptl odbc ofx ogg
oggvorbis openal opengl oscar pam pcmcia pcntl pcre pda pdflib perl php pic pie
plotutils png pnp posix ppds python qt quicktime readline ruby samba sasl
scanner sdl session sharedext sharedmem simplexml skey sndfile soap sockets
spell spl sqlite ssl svg sysfs sysvipc tcltk tcpd tetex theora threads tidy tiff
tokenizer truetype truetype-fonts type1-fonts usb userlocales v4l vcd vhosts
videos vorbis wifi wmf xface xine xinerama xml xml2 xmlrpc xosd xpm xprint xsl
xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 35 Jose daLuz 2005-08-04 16:25:11 UTC
mono-1.1.8.3 fails at exactly the same place with exactly the same error as
previous versions when doing a regular emerge.  Using 'CFLAGS="march=athlon64
-pipe" emerge -v mono' as a workaround works with this version as well.
Comment 36 Jason L. 2005-08-25 19:29:25 UTC
gah
I still have no idea what I'm doing wrong...I do exactly what works for everyone
else and it still fails with the exact same error. I also have re-emerged my
entire system just in case something was broken, here is my emerge info again,
maybe one of you can spot something tremendously different/wrong.

Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.13
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.acm.cs.rpi.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/pkg"
PORTAGE_TMPDIR="/usr/tmp2"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/trunk /usr/local/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac alsa amd64 avi berkdb bitmap-fonts cairo cdr crypt cups curl dbus dvd
dvdr dvdread eds encode fam flac foomaticdb fortran gdbm gif glitz gnome gphoto2
gpm gstreamer gtk gtk2 hal howl ieee1394 imagemagick imlib ipv6 jabber jack java
jpeg ldap libwww lirc logitech-mouse lzw lzw-tiff mad mime mono motif mozilla
mp3 mpeg musepack ncurses nls nptl nptlonly ogg oggvorbis openal opengl oscar
pam pdflib perl png ppds python quicktime readline ruby sdl speex spell sqlite
ssl tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode
usb userlocales vorbis want-experimental xine xml xml2 xmms xpm xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 37 Ming Zhao (RETIRED) gentoo-dev 2005-08-28 00:36:05 UTC
vote.
(In reply to comment #35)
> mono-1.1.8.3 fails at exactly the same place with exactly the same error as
> previous versions when doing a regular emerge.  Using 'CFLAGS="march=athlon64
> -pipe" emerge -v mono' as a workaround works with this version as well.

Comment 38 Peter Johanson (RETIRED) gentoo-dev 2005-09-15 20:21:08 UTC
*** Bug 104744 has been marked as a duplicate of this bug. ***
Comment 39 Jose daLuz 2005-09-15 22:14:57 UTC
I just built mono-1.1.9 (from the ebuild in bug # 105811) with no problems and
no need for the workaround regarding CFLAGS.  Does anyone know if this was
resolved upstream, and what exactly the problem was?

emerge --info
Portage 2.0.52-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-ck4 x86_64)
=================================================================
System uname: 2.6.13-ck4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/gentopia"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib alsa avi bash-completion berkdb bitmap-fonts cdr crypt
cups curl dbus eds emboss encode esd flac foomaticdb fortran gdbm gif gnome gpm
gstreamer gtk gtk2 hal howl imagemagick imlib ipv6 java jpeg kde ldap libwww lzw
lzw-tiff mad maildir mikmod mono motif mozilla mp3 mpeg ncurses nls nptl ogg
oggvorbis opengl pam pdflib perl pic png python qt quicktime readline ruby samba
sdl speex spell sqlite ssl tcltk tcpd tetex theora tiff truetype-fonts
type1-fonts usb userlocales vorbis xine xml xml2 xmms xpm xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 40 Peter Johanson (RETIRED) gentoo-dev 2005-09-15 22:24:20 UTC
Argh. And i *just* bumped the mono-1.1.9 in portage with an included change to
change O2 -> O1 for amd64 users.

I'm going to leave the change in there for now, but can people please test with
the replace-flags bit removed, and report back if it still works with -O2 in
CFLAGS? If so, i'll remove it for the 1.1.9 ebuild. I've also added the flag
replacement to the 1.1.8.3 ebuild, so please test that too. Thanks everyone.
Comment 41 Sander Rijken 2005-09-16 03:31:06 UTC
Peter, I tried 1.1.9 without the replace-flags, and that compiles cleanly.. so 
I think that can be removed.

I did have the same problem as the others with 1.1.8.1 and .2

Comment 42 Joshua Hoblitt 2005-09-16 03:40:46 UTC
I never could get 1.1.8.3 to build.  1.1.9 built without complications.
Comment 43 Herbie Hopkins (RETIRED) gentoo-dev 2005-09-16 04:20:46 UTC
(In reply to comment #40)
> I'm going to leave the change in there for now, but can people please test with
> the replace-flags bit removed, and report back if it still works with -O2 in
> CFLAGS? If so, i'll remove it for the 1.1.9 ebuild. I've also added the flag
> replacement to the 1.1.8.3 ebuild, so please test that too. Thanks everyone.

Can't reproduce this error with 1.1.9 at all, with or without the replace-flags.
Comment 44 Bernard Cafarelli gentoo-dev 2005-09-24 15:36:04 UTC
Latest 1.1.9.1 compiles and runs fine with -O2 also (now that bug #106971 is fixed)
Comment 45 Peter Johanson (RETIRED) gentoo-dev 2005-09-24 15:46:46 UTC
Ok, marking fixed. amd64 users should definitely use the new mono-1.1.9 or
1.1.9.1 then. Anyone who still runs into this bug using either of those
versions, please feel free to reopen this bug. Thanks.
Comment 46 Bernard Cafarelli gentoo-dev 2005-10-16 05:37:37 UTC
Do people still have problems with -O2 and 1.1.9.x? If not, the replace-flags
could be phased out of the ebuilds (I did not run in any problem with -O2,
including the latest 1.1.9.2)
Comment 47 Herbie Hopkins (RETIRED) gentoo-dev 2005-10-18 11:09:32 UTC
Works fine for me too, the replace flags has now been removed from the
mono-1.1.9.2 ebuild.