when i try to 'emerge -u system', gettext causes it to fail because it can't compile. emerge -up system shows: [ebuild U ] sys-devel/gettext-0.12.1 [0.11.5-r1] and all the other stuff that needs to be upgraded. Here are the last couple of lines of the attempted compile: make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime/intl' Making all in intl-java make[3]: Entering directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime/intl-java' /bin/sh ../lib/javacomp.sh -d . ./gnu/gettext/GettextResource.java make[3]: *** [gnu/gettext/GettextResource.class] Killed make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime/intl-java' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.12.1 failed. !!! Function src_compile, Line 50, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1.emerge sync 2.emerge -u system Actual Results: portage attempted to compile gettext and something caused it to fail? Expected Results: updated! Sorry if this bug report is absolutely useless and poorly written. Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs Configured with: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext Thread model: posix gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
nelson, please paste the output of: emerge info into this bug
Portage 2.0.49-r4 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.24) ================================================================= System uname: 2.4.24 i686 AMD Duron(tm) Processor ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=athlon -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.noved.org/ http://gentoo.ccccom.com ftp://gentoo.mirrors.pair.com/" 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 arts avi crypt cups encode foomaticdb gif gpm gtk gtk2 imlib jpeg kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl slang spell svga truetype X xml2 xmms xv zlib gdbm berkdb readline java tcpd pam ssl perl python"
I have two systems, for the first "big" one gettext builds and for the second "small" it does not build. Maybe the problem depends of the building history, too. Two systems are up to date, the "small" has glibc-2.3.2-r3 with gettext-0.11.5-r1. The building history of two systems was different.
Its prob the OOM killer ? Check 'dmesg' output after that failure. Seemant, do we really need the java stuff?
azarah, no I'm not sure that we do need it -- I'm rather inclined to disable it by default, and those who *NEED* or *WANT* it can uncomment some stuff. what do you think?
I don't have an issue - the NEED part is what worry me though. Ill add the java guys to have a say.
Well i have seen in the past problems of java being killed, and it was due to GRSecurity and PAX. I compiled it on a machine that has java enabled, gs-sources-2.4.23_pre8-r2 and it worked. Can you post "java -version" output ? Ill try to investigate but, which kernel version are you using (i mean which package did you installed (vanilla|aa-sources|gentoo-sources|xxxxxx))?
I am using vanilla sources patched with grsecurity. That must be my problem. Is there any way around this Adrian?
Nelson, If PaX were to kill something it would log it. You would see an event of this if you were to type dmesg. Here the solution for java/gettext/pdflib/mplayer/xfree and misc sanbox violations etc.. emerge -C chpax rm /etc/{init,conf}.d/chpax emerge '>=sys-apps/chpax-0.6.1' /etc/init.d/chpax restart That should get rid of most of the java errors. 99% chance this bug can be closed now.
I have the exact same error on ppc. my emerge --info is : Portage 2.0.49-r20 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.21-ppc-r2) ================================================================= System uname: 2.4.21-ppc-r2 ppc Gentoo Base System version 1.4.3.12 ccache version 2.2 [enabled] ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-mcpu=7450 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt" CHOST="powerpc-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=7450 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt" DISTDIR="/usr/portage/distfiles" FEATURES="ccache digest" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib apache1 apache2 arts berkdb bonobo cdr cups directfb dvd esd ethereal fbcon foomaticdb gd gdbm gif gnome-libs gpm gtk gtk2 gtkhtml guile imlib jpeg kde ldap libwww mitshm motif mozcalendar mozilla mysql nls offensive oggvorbis opengl oss pam perl png ppc python qt radeon readline samba scanner sdl slang ssl tcltk tcpd truetype xmms xv"
Redog, anything in the logs (OOM?). Then, if so, are/does ppc/you use grsecurity or PaX ?
i have the same problem :( #>emerge -u gettext ... make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime' > make: *** [all-recursive] Error 1 > > !!! ERROR: sys-devel/gettext-0.12.1 failed. > !!! Function src_compile, Line 50, Exitcode 2 > !!! (no error message) Here is my configuration : Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.23-grsec) ================================================================= System uname: 2.4.23-grsec i686 Celeron (Mendocino) Gentoo Base System version 1.4.3.10 Autoconf: sys-devel/autoconf-2.57-r1 Automake: sys-devel/automake-1.7.5-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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="-march=pentium2 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://gentoo.oregonstate.edu" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
We cannot see the error ...
The problem comes from blackdown-jdk-1.4.1. So, I uninstall blackdown-jdk-1.4.1 (emerge -C blackdown-jdk) and then I emerge gettext. It works for me !
Here's my syslog lines if it can help : Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: exec of /bin/bash (/bin/sh ../lib/javacomp.sh -d . ./gnu/gettext/GettextResource. ) by (make:5519) UID(0) EUID(0), parent (make:7458) UID(0) EUID(0) Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: exec of /opt/blackdown-jdk-1.4.1/bin/javac (/opt/blackdown-jdk-1.4.1/bin/javac -d . ./gnu/gettext/GettextR ) by (sh:5519) UID(0) EUID(0), parent (make:7458) UID(0) EUID(0) Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: exec of /opt/blackdown-jdk-1.4.1/bin/javac (/opt/blackdown-jdk-1.4.1/bin/javac -d . ./gnu/gettext/GettextR ) by (javac:5519) UID(0) EUID(0), parent (make:7458) UID(0) EUID(0) Feb 19 16:07:00 XXXXXX kernel: PAX: From ****************: terminating task: /opt/blackdown-jdk-1.4.1/bin/javac(javac):5519, uid/euid: 0/0, PC: 2a884b28, SP: 5ee9f08c Feb 19 16:07:00 XXXXXX kernel: PAX: bytes at PC: 68 7f 02 00 00 d9 6c 24 00 58 c3 90 cc cc cc cc 00 00 00 00 Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: attempted resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 by (javac:5519) UID(0) EUID(0), parent (make:7458) UID(0) EUID(0) Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: chdir to /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime/intl-java by (make:7458) UID(0) EUID(0), parent (sh:22552) UID(0) EUID(0) Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: chdir to /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime by (make:26206) UID(0) EUID(0), parent (make:9113) UID(0) EUID(0) Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: chdir to /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-runtime by (make:9113) UID(0) EUID(0), parent (sh:21708) UID(0) EUID(0) Feb 19 16:07:00 XXXXXX kernel: grsec: From ****************: chdir to /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1 by (make:8841) UID(0) EUID(0), parent (ebuild.sh:19628) UID(0) EUID(0) So, I think that blackdown-jdk is the cause of my problem. As i said in my previous post, when i uninstalled this package, the compilation of gettext works well.
Again, the problem its not blackdown, its a misconfigured grsecurity. Try installing "sys-apps/chpax" then later emerge blackdown-jdk. That should solve your problem.
I get this same error when doing a bootstrap.sh using a stage1 tar.bz2 from lug.mtu.edu/gentoo. I am chrooted in from a fresh (yum update'd) fedora core instalation on same drive although I have had this problem several times, including when using liveCD to boot. I don't think I had this problem when using a stage from november, but I don't think the CD is any good anymore. Is the stage1 tar.bz2 ok? arch: i686 1400Mhz intel Celeron on a Shuttle/Intel i815 chipset
user's system is misconfigured