Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 153781
Alias:
Product:
Component:
Status: RESOLVED
Resolution: UPSTREAM
Assigned To: dotnet <dotnet@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: letrec@gmail.com
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
dev-lang:mono-1.2.4:20070807-105030.log dev-lang:mono-1.2.4:20070807-105030.log text/plain Alexander Skwar 2007-08-07 12:23 0000 496.32 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 153781 depends on: Show dependency tree
Bug 153781 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-11-01 20:19 0000
Portage 2.1.1-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3,
2.6.17-hardened-r1 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.17-hardened-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.5
Last Sync: Tue, 31 Oct 2006 19:00:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/terminfo"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib alsa apache2 arts avi berkdb bitmap-fonts bzip2 cairo
cdr cli cracklib crypt cups dbus dlloader dnd dri dv dvd dvdr eds elibc_glibc
emacs emboss encode esd fam fbcon ffmpeg firefox flac fortran freetts fuse gdbm
gif gmail gmedia gnome gpm grammar gstreamer gtk gtk2 gtkhtml hal hardened
iconv imagemagick imlib input_devices_evdev input_devices_keyboard
input_devices_mouse ipv6 isdnlog java java5 jpeg jpeg2k kde kernel_linux
keyscrub ldap libg++ logrotate math mikmod mjpeg mmx mp3 mp4 mpeg mpeg2 mplayer
ncurses nls nptl nptlonly nsplugin ntfs offensive ogg on-the-fly-crypt openal
opengl oss pam panel-plugin pcre pdf pdflib perl pie png ppds pppd python qt3
qt4 quicktime rdesktop readline real realmedia reflection reiser4 reiserfs rtc
samba sdl sdlaudio session sharedmem socks5 spell spl sse ssl stream sysfs
syslog tcpd theora thesaurus threads thunar-vfs tiff tomsfastmath truetype
truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vhosts
video_cards_i810 vorbis vorbis-psy win32codecs xine xml xorg xosd xpm
xscreensaver xv xvid zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #1 From letrec@gmail.com 2006-11-01 20:24:23 0000 -------
In attempt to emerge dev-lang/mono  I've run into the following bug at compile
time : 
[The tail of the emerge output shown below is from 
`emerge -1v =dev-lang/mono-1.1.13.6`; however, the same bug holds for
>=dev-lang/mono-1.1.13.6 on this machine.

*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[6]: *** [do-profile-check-monolite] Error 1
make[6]: Leaving directory
`/var/tmp/portage/mono-1.1.13.6/work/mono-1.1.13.6/mcs'
make[5]: *** [do-profile-check] Error 2
make[5]: Leaving directory
`/var/tmp/portage/mono-1.1.13.6/work/mono-1.1.13.6/mcs'
make[4]: *** [profile-do--basic--all] Error 2
make[4]: Leaving directory
`/var/tmp/portage/mono-1.1.13.6/work/mono-1.1.13.6/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory
`/var/tmp/portage/mono-1.1.13.6/work/mono-1.1.13.6/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory
`/var/tmp/portage/mono-1.1.13.6/work/mono-1.1.13.6/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mono-1.1.13.6/work/mono-1.1.13.6'
make: *** [all] Error 2

!!! ERROR: dev-lang/mono-1.1.13.6 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  mono-1.1.13.6.ebuild, line 80:   Called die

!!! MONO compilation failure
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #2 From letrec@gmail.com 2006-11-02 08:17:13 0000 -------
make PROFILE=basic all
make[5]: Entering directory
`/var/tmp/portage/mono-1.1.18-r1/work/mono-1.1.18/mcs'
mono: mono-codeman.c:261: new_codechunk: Assertion `!err' failed.
make[6]: *** [build/deps/basic-profile-check.exe] Aborted
make[6]: Entering directory
`/var/tmp/portage/mono-1.1.18-r1/work/mono-1.1.18/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[6]: *** [do-profile-check-monolite] Error 1
make[6]: Leaving directory
`/var/tmp/portage/mono-1.1.18-r1/work/mono-1.1.18/mcs'
make[5]: *** [do-profile-check] Error 2
make[5]: Leaving directory
`/var/tmp/portage/mono-1.1.18-r1/work/mono-1.1.18/mcs'
make[4]: *** [profile-do--basic--all] Error 2
make[4]: Leaving directory
`/var/tmp/portage/mono-1.1.18-r1/work/mono-1.1.18/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory
`/var/tmp/portage/mono-1.1.18-r1/work/mono-1.1.18/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory
`/var/tmp/portage/mono-1.1.18-r1/work/mono-1.1.18/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mono-1.1.18-r1/work/mono-1.1.18'
make: *** [all] Error 2

!!! ERROR: dev-lang/mono-1.1.18-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  mono-1.1.18-r1.ebuild, line 93:   Called die

!!! compile failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #3 From Jakub Moc (RETIRED) 2006-11-14 00:42:03 0000 -------
*** Bug 155105 has been marked as a duplicate of this bug. ***

------- Comment #4 From Alexander Skwar 2006-11-22 06:29:05 0000 -------
Any idea about when this might be fixed?

------- Comment #5 From Michael Mauch 2006-11-29 12:07:23 0000 -------
Can you try unmerging mono before re-emergeing it, like it's noted in bug
146424? I had not been able to emerge mono for a long time, until I found that
146424.

------- Comment #6 From Eric "me262" Mason 2006-12-01 13:17:33 0000 -------
I just encountered this same problem with mono-1.2.1. I don't have a previous
version to unmerge though, this is on a fresh install.

I checked the ebuild and it touches the file use-monolite to solve a previous
bug, but I think just after that or rather after the config, and before the
emake, it should run "make get-monolite-latest", which downloads a gzipped tar.

Note that it's only a suggestion, but I'd like this working out of the box on a
fresh install, which it's currently not doing for me.

ccrwebserver ~ # emerge -av mono

[ebuild  N    ] dev-lang/mono-1.2.1  USE="nptl -X" 0 kB

make[5]: Entering directory `/var/tmp/portage/mono-1.2.1/work/mono-1.2.1/mcs'
mono: mono-codeman.c:261: new_codechunk: Assertion `!err' failed.
make[6]: *** [build/deps/basic-profile-check.exe] Aborted
make[6]: Entering directory `/var/tmp/portage/mono-1.2.1/work/mono-1.2.1/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[6]: *** [do-profile-check-monolite] Error 1

------- Comment #7 From Saleem Abdulrasool (RETIRED) 2006-12-10 14:17:21 0000 -------
Are you able to reproduce this with mono-1.2.2.1?

------- Comment #8 From letrec@gmail.com 2006-12-10 19:17:16 0000 -------
mono: mono-codeman.c:261: new_codechunk: Assertion `!err' failed.
make[6]: *** [build/deps/basic-profile-check.exe] Aborted
make[6]: Entering directory
`/var/tmp/portage/dev-lang/mono-1.2.2.1/work/mono-1.2.2.1/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[6]: *** [do-profile-check-monolite] Error 1
make[6]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.2.2.1/work/mono-1.2.2.1/mcs'
make[5]: *** [do-profile-check] Error 2
make[5]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.2.2.1/work/mono-1.2.2.1/mcs'
make[4]: *** [profile-do--basic--all] Error 2
make[4]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.2.2.1/work/mono-1.2.2.1/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.2.2.1/work/mono-1.2.2.1/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.2.2.1/work/mono-1.2.2.1/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/dev-lang/mono-1.2.2.1/work/mono-1.2.2.1'
make: *** [all] Error 2

!!! ERROR: dev-lang/mono-1.2.2.1 failed.
Call stack:
  ebuild.sh, line 1576:   Called dyn_compile
  ebuild.sh, line 945:   Called src_compile
  mono-1.2.2.1.ebuild, line 89:   Called die

!!! compile failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #9 From Adrian Frith 2007-02-01 07:18:39 0000 -------
Are any of you using a system with some kind of stack-smashing protection or
something like that? I had this error when I was emerging mono in a Gentoo
chroot where the base system was Fedora with SELinux enabled. After I switched
off SELinux, it worked fine.

------- Comment #10 From letrec@gmail.com 2007-02-04 15:46:14 0000 -------
Yes, I was running a kernel using PIE+SSP. 

------- Comment #11 From postmodern 2007-05-06 23:05:16 0000 -------
Just encountered the exact same problem with mono-1.2.2.1 running
2.6.20-hardened with PAX enabled (but without hardened toolchain's PIE+SSP).
Grsecurity reports the following...

grsec: From X.X.X.X: denied resource overstep by requesting 4096 for
RLIMIT_CORE against limit 0 for
/var/tmp/portage/dev-lang/mono-1.2.2.1/work/mono-1.2.2.1/mono/mini/mono[mono:31534]
uid/euid:0/0 gid/egid:0/0, parent /usr/bin/gmake[make:31529] uid/euid:0/0
gid/egid:0/0

------- Comment #12 From Jurek Bartuszek 2007-06-25 21:33:48 0000 -------
This is a common bug in security enhanced systems. I've added some warning
messages to mono ebuilds and now we're waiting for upstream to address this
bug.

------- Comment #13 From Alexander Skwar 2007-08-07 12:23:47 0000 -------
Created an attachment (id=127163) [details]
dev-lang:mono-1.2.4:20070807-105030.log

I ran accross this problem again. I'm not using a security enhanced kernel or
toolchain anymore. I'm building mono in a chroot. This is a fresh install, so I
cannot unmerge anything.

cd ../mcs && make PROFILES='default net_2_0' CC='i486-pc-linux-gnu-gcc'
all-profiles
make[3]: Entering directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/mcs'
make profile-do--default--all profile-do--net_2_0--all
make[4]: Entering directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/mcs'
make PROFILE=basic all
make[5]: Entering directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/mcs'
/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/libtool: line
6911: LANG: command not found
/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/libtool: line
6911: LC_ALL: command not found
/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/libtool: line
6911: LC_CTYPE: command not found
/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/libtool: line
6911: LC_COLLATE: command not found
/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/libtool: line
6911: LC_MESSAGES: command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 1
make[6]: Entering directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[6]: *** [do-profile-check-monolite] Error 1
make[6]: Leaving directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/mcs'
make[5]: *** [do-profile-check] Error 2
make[5]: Leaving directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/mcs'
make[4]: *** [profile-do--basic--all] Error 2
make[4]: Leaving directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/Gentoo/Portage/build/portage/dev-lang/mono-1.2.4/work/mono-1.2.4'
make: *** [all] Error 2
 * If you are using any hardening features such as
 * PIE+SSP/SELinux/grsec/PAX then most probably this is the reason
 * why build has failed. In this case turn any active security
 * enhancements off and try emerging the package again



hetzner etc # emerge --info
Portage 2.1.2.11 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4,
2.6.22-gentoo-r2.04.non-hardened i686)
=================================================================
System uname: 2.6.22-gentoo-r2.04.non-hardened i686 unknown
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 07 Aug 2007 04:50:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium-m -march=i686 -pipe -fomit-frame-pointer"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild
/etc/terminfo"
CXXFLAGS="-O2 -mtune=pentium-m -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/tree/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox
sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/
http://gentoo.mirror.solnet.ch http://distfiles.gentoo.org/"
LINGUAS="de"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc"
SYNC="rsync://rsync.ch.gentoo.org/gentoo-portage"
USE="X acpi alsa bash-completion berkdb bitmap-fonts branding cairo cdr cli
cracklib crypt cups dbus dri dvd dvdr dvdread emboss encode esd evo fam firefox
fortran gdbm gif gnome gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal
kdehiddenvisibility libg++ libnotify mad midi mikmod mmx mp3 mpeg mudflap
ncurses nfs nls nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png
pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection samba sdl
session spell spl sse sse2 ssl svg tiff truetype truetype-fonts type1-fonts
unicode vim-syntax vorbis wifi win32codecs x86 xml xorg xv zlib"
ALSA_CARDS="loopback usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy
dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear
meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga via"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #14 From Alexander Skwar 2007-08-13 10:55:53 0000 -------
(In reply to comment #13)

> I ran accross this problem again. I'm not using a security enhanced kernel or
> toolchain anymore. I'm building mono in a chroot. 

I found out what the issue was. I forgot to mount the proc filesystem into the
chroot. So, after doing a 

  mount -t proc ChrootProc /mnt/gentoo/proc

from "outside" of the chroot, I was able to build mono in the chroot.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug