Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148223 - sys-fs/e2fsprogs-1.39: Fails in testsuite
Summary: sys-fs/e2fsprogs-1.39: Fails in testsuite
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-19 10:23 UTC by Dustin Polke
Modified: 2007-06-30 15:28 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,7.11 KB, text/plain)
2006-09-19 10:24 UTC, Dustin Polke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2006-09-19 10:23:28 UTC
Testsuite of sys-fs/e2fsprogs-1.39 fails with the following error:

>>> Test phase [check]: sys-fs/e2fsprogs-1.39
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: `lib/ext2fs/ext2_types.h' is up to date.
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: `lib/blkid/blkid_types.h' is up to date.
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: `lib/uuid/uuid_types.h' is up to date.
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
making check in util
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/util'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/util'
making check in lib/e2p
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/e2p'
        LD tst_ostype
./tst_ostype
0: Linux (0)
1: Hurd (1)
2: Masix (2)
3: FreeBSD (3)
4: Lites (4)
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/e2p'
making check in lib/ext2fs
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/ext2fs'
        CC tst_bitops.c
        LD tst_bitops
        CC tst_badblocks.c
        LD tst_badblocks
        CC tst_iscan.c
        LD tst_iscan
        CC tst_byteswap.c
        LD tst_byteswap
        CC tst_types.c
tst_types.c: In function 
Comment 1 Dustin Polke 2006-09-19 10:23:28 UTC
Testsuite of sys-fs/e2fsprogs-1.39 fails with the following error:

>>> Test phase [check]: sys-fs/e2fsprogs-1.39
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: `lib/ext2fs/ext2_types.h' is up to date.
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: `lib/blkid/blkid_types.h' is up to date.
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
make[1]: `lib/uuid/uuid_types.h' is up to date.
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39'
making check in util
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/util'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/util'
making check in lib/e2p
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/e2p'
        LD tst_ostype
./tst_ostype
0: Linux (0)
1: Hurd (1)
2: Masix (2)
3: FreeBSD (3)
4: Lites (4)
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/e2p'
making check in lib/ext2fs
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/ext2fs'
        CC tst_bitops.c
        LD tst_bitops
        CC tst_badblocks.c
        LD tst_badblocks
        CC tst_iscan.c
        LD tst_iscan
        CC tst_byteswap.c
        LD tst_byteswap
        CC tst_types.c
tst_types.c: In function main:
tst_types.c:17: warning: incompatible implicit declaration of built-in function printf
tst_types.c:19: warning: incompatible implicit declaration of built-in function exit
tst_types.c:22: warning: incompatible implicit declaration of built-in function printf
tst_types.c:24: warning: incompatible implicit declaration of built-in function exit
tst_types.c:27: warning: incompatible implicit declaration of built-in function printf
tst_types.c:29: warning: incompatible implicit declaration of built-in function exit
tst_types.c:32: warning: incompatible implicit declaration of built-in function printf
tst_types.c:34: warning: incompatible implicit declaration of built-in function exit
tst_types.c:37: warning: incompatible implicit declaration of built-in function printf
tst_types.c:39: warning: incompatible implicit declaration of built-in function exit
tst_types.c:42: warning: incompatible implicit declaration of built-in function printf
tst_types.c:44: warning: incompatible implicit declaration of built-in function exit
tst_types.c:47: warning: incompatible implicit declaration of built-in function printf
tst_types.c:49: warning: incompatible implicit declaration of built-in function exit
tst_types.c:52: warning: incompatible implicit declaration of built-in function printf
tst_types.c:54: warning: incompatible implicit declaration of built-in function exit
tst_types.c:56: warning: incompatible implicit declaration of built-in function printf
tst_types.c:57: warning: incompatible implicit declaration of built-in function exit
tst_types.c: In function main:
tst_types.c:17: warning: incompatible implicit declaration of built-in function printf
tst_types.c:19: warning: incompatible implicit declaration of built-in function exit
tst_types.c:22: warning: incompatible implicit declaration of built-in function printf
tst_types.c:24: warning: incompatible implicit declaration of built-in function exit
tst_types.c:27: warning: incompatible implicit declaration of built-in function printf
tst_types.c:29: warning: incompatible implicit declaration of built-in function exit
tst_types.c:32: warning: incompatible implicit declaration of built-in function printf
tst_types.c:34: warning: incompatible implicit declaration of built-in function exit
tst_types.c:37: warning: incompatible implicit declaration of built-in function printf
tst_types.c:39: warning: incompatible implicit declaration of built-in function exit
tst_types.c:42: warning: incompatible implicit declaration of built-in function printf
tst_types.c:44: warning: incompatible implicit declaration of built-in function exit
tst_types.c:47: warning: incompatible implicit declaration of built-in function printf
tst_types.c:49: warning: incompatible implicit declaration of built-in function exit
tst_types.c:52: warning: incompatible implicit declaration of built-in function printf
tst_types.c:54: warning: incompatible implicit declaration of built-in function exit
tst_types.c:56: warning: incompatible implicit declaration of built-in function printf
tst_types.c:57: warning: incompatible implicit declaration of built-in function exit
        LD tst_types
LD_LIBRARY_PATH=../../lib DYLD_LIBRARY_PATH=../../lib ./tst_bitops
ext2fs_test_bit appears to be correct
ext2fs_set_bit test succeeded.
ext2fs_clear_bit test succeed.
Failed to allocate scratch memory!
make[1]: *** [check] Error 1
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/ext2fs'
make: *** [check-recursive] Error 1

!!! ERROR: sys-fs/e2fsprogs-1.39 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_test
  ebuild.sh, line 986:   Called src_test
  ebuild.sh, line 616:   Called die

!!! Make check failed. See above for details.
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 2 Dustin Polke 2006-09-19 10:24:53 UTC
Created attachment 97437 [details]
emerge --info
Comment 3 Dustin Polke 2006-09-19 11:43:49 UTC
For the moment, I stick to 1.38-r1, which emerges without any problems, because I don't want to run into problems with my filesystems by chance.
Comment 4 Kevin Pyle 2006-09-20 23:48:22 UTC
One of the tests tries to allocate a very large amount of memory ((1 << 29) bytes if I recall correctly).  Your environment imposed a resource limit which prevented this test from allocating all the memory it wanted, which resulted in a test failure even though the code is probably compiled correctly.  Run ulimit -S -a and look at the lines for "max memory size" and "virtual memory."  Most likely, they are set too low for this test.  You can raise the limit up to your hard limit by running "ulimit -S -m hard" (for max memory size) and "ulimit -S -v hard" (for virtual memory).  Your hard limit may or may not be enough to let the test succeed.  If you do not want to mess around finding the exact value, just temporarily remove the memory size restrictions and then retry the emerge.


Maintainers: perhaps the ebuild could check for resource limits that are known to cause a test suite failure and react by dying early?  At present, the compilation succeeds and the test suite fails due to the resource limit, leading the user to believe that there is something wrong with his build.
Comment 5 SpanKY gentoo-dev 2006-09-21 00:11:54 UTC
i dont believe there is a portable ulimit check

maybe tweak the test to check the return value / errno setting and in case of OOM, just go with XPASS
Comment 6 Dustin Polke 2006-09-25 01:29:46 UTC
It seems that memory limit is not the reason, which causes the error:

solaris dustin # ulimit -S -a
[...]
max memory size         (kbytes, -m) unlimited
[...]
virtual memory          (kbytes, -v) unlimited
[...]

This are my standard settings, so any other ideas?
Comment 7 Jerome Potts 2006-10-09 22:47:32 UTC
i have the same pbm, here goes:

>>====================== start quote of error msgs =========================
making check in lib/ext2fs
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/ext2fs'
LD_LIBRARY_PATH=../../lib DYLD_LIBRARY_PATH=../../lib ./tst_bitops
Failed to allocate scratch memory!
ext2fs_test_bit appears to be correct
ext2fs_set_bit test succeeded.
ext2fs_clear_bit test succeed.
make[1]: *** [check] Error 1
make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.39/work/e2fsprogs-1.39/lib/ext2fs'
make: *** [check-recursive] Error 1

!!! ERROR: sys-fs/e2fsprogs-1.39 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_test
  ebuild.sh, line 986:   Called src_test
  ebuild.sh, line 616:   Called die

!!! Make check failed. See above for details
<<====================== end quote of error msgs =========================

My emerge --info:

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.12.5
Last Sync: Thu, 28 Sep 2006 00:20:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5, 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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=athlon -pipe -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mtune=athlon -pipe -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer sandbox sfperms strict test userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.phy.olemiss.edu/mirror/gentoo http://cudlug.cudenver.edu/gentoo http://mirror.espri.arizona.edu/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo http://mirror.usu.edu/mirrors/gentoo http://gentoo.osuos1.org http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en fr"
MAKEOPTS="-j2"
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.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa bash-completion berkdb bidi bitmap-fonts bzip2 cairo caps cdparanoia cdr cjk cli crypt cups dbus directfb divx4linux dlloader dri dvdr elibc_glibc emboss encode fam fbcon ffmpeg firefox flac fortran ftp gcj gdbm gif gnustep gnutls gpm gstreamer gtk hal input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jpeg kerberos kernel_linux ldap libcaca libg++ linguas_en linguas_fr mad mailwrapper matroska matrox mikmod mmx mozilla moznoirc mp3 mpeg nas ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png portaudio ppds pppd python qt4 quicktime readline reflection sdl session sndfile spell spl ssl svg svga tcpd test theora threads tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fbdev video_cards_mga video_cards_vesa vorbis win32codecs xml xorg xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
<<====================== end emerge --info =========================

ulimit -S -a:

max memory size         (kbytes, -m) unlimited
virtual memory          (kbytes, -v) unlimited

Comment 8 SpanKY gentoo-dev 2007-06-30 15:28:12 UTC
should be fixed in 1.40, re-open if it doesnt (and post updated information)