Emerge bails after 'make test' fails 1/6. Reproducible: Always Steps to Reproduce: 1. emerge -uv BSD-Resource 2. 3. Calculating world dependencies ...done! >>> emerge (1 of 1) dev-perl/BSD-Resource-1.24 to / >>> md5 src_uri ;-) BSD-Resource-1.24.tar.gz >>> Unpacking source... >>> Unpacking BSD-Resource-1.24.tar.gz to /var/tmp/portage/BSD-Resource-1.24/work >>> Source unpacked. Configuring BSD::Resource... Checking whether you have certain header files... You do have <sys/resource.h>. Excellent. Checking to see whether you have rlim_t... You seem to have rlim_t defined (which is nice). Checking if your kit is complete... Looks good Writing Makefile for BSD::Resource Done configuring BSD::Resource. Now you may issue 'make'. Do not forget also 'make test'. If some tests fail, please rerun the tests (see INSTALL). cp Resource.pm blib/lib/BSD/Resource.pm AutoSplitting blib/lib/BSD/Resource.pm (blib/lib/auto/BSD/Resource) /usr/bin/perl5.8.5 /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap Resource.xs > Resource.xsc && mv Resource.xsc Resource.c gcc -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -DVERSION=\"1.24\" -DXS_VERSION=\"1.24\" -fPIC "-I/usr/lib/perl5/5.8.5/i686-linux/CORE" -DRlim_t=rlim_t Resource.c Running Mkbootstrap for BSD::Resource () chmod 644 Resource.bs rm -f blib/arch/auto/BSD/Resource/Resource.so LD_RUN_PATH="" gcc -shared -L/usr/local/lib Resource.o -o blib/arch/auto/BSD/Resource/Resource.so chmod 755 blib/arch/auto/BSD/Resource/Resource.so cp Resource.bs blib/arch/auto/BSD/Resource/Resource.bs chmod 644 blib/arch/auto/BSD/Resource/Resource.bs Manifying blib/man3/BSD::Resource.3pm PERL_DL_NONLAZY=1 /usr/bin/perl5.8.5 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/getpriority....FAILED tests 1-3 Failed 3/3 tests, 0.00% okay t/getrlimit......ok t/getrusage......ok t/setpriority....ok t/setrlimit......ok t/times..........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/getpriority.t 3 3 100.00% 1-3 Failed 1/6 test scripts, 83.33% okay. 3/39 subtests failed, 92.31% okay. make: *** [test_dynamic] Error 255 !!! ERROR: dev-perl/BSD-Resource-1.24 failed. !!! Function perl-module_src_compile, Line 69, Exitcode 2 !!! test failed !!! If you need support, post the topmost build error, NOT this status message. Emerge Info Output: Portage 2.0.51-r14 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-cmoad i686) ================================================================= System uname: 2.6.10-cmoad i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 19 2005, 18:40:43)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r7 virtual/os-headers: 2.6.8.1-r1, 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays" CHOST="i686-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/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=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://chuck.ucs.indiana.edu/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://chuck.ucs.indiana.edu/gentoo-portage" USE="X Xaw3d alsa apache2 apm avi bash-completion berkdb bitmap-fonts cdr crypt cups dga emacs encode esd f77 fam flac font-server foomaticdb gdbm gif gnome gnuplot gpm graphviz gstreamer gtk gtk2 guile imagemagick imlib ipv6 java jpeg junit kde ldap libg++ libwww live mad mikmod mmx motif mozilla mpeg mpi mysql ncurses nls objc oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts wxwindows x86 xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS
I moved my make.conf to /tmp and this package installed fine using portage defaults. No one else has hit this and nothing is on the forums so I am going to chalk it up to not liking one of my confs.
I had this same problem. It is the PORTAGE_NICENESS variable in make.conf that causes the getpriority tests to fail. I think this bug should stay open. The workaround is: $ PORTAGE_NICENESS="" emerge BSD-Resource
That makes sense. I have this set in my make.conf as well. I am re-opening.
emerge sync in a few hours and emerge again. I've created a patch and applied it to the current stable version that resolves this. To sum up the problem - the getpriority tests were assuming that you were running this with a niceness of 0 (default). I've reset the tests to check for the existence of the PORTAGE_NICENESS var and use that value instead if it exists, otherwise use 0 still. Please close this out in a few hours after you've synched up and happily emerged.
Works now. Thanks!