Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86515 - glibc returns incorrect results for / in statvfs if not ext2 (was glibc-2.3.4.20041102-r1 failed make check)
Summary: glibc returns incorrect results for / in statvfs if not ext2 (was glibc-2.3.4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/bugzilla/show_b...
Whiteboard:
Keywords:
: 85460 89843 90526 101474 110571 117168 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-24 05:44 UTC by ingo
Modified: 2006-01-23 11:26 UTC (History)
8 users (show)

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


Attachments
Fix (f)statvfs implementation to take account of reiserfs (glibc-2.3.5-statvreiserjxfs.patch,520 bytes, patch)
2005-10-02 11:40 UTC, Kevin F. Quinn (RETIRED)
Details | Diff
glibc-2.3.5-r2 build log (8355-glibc-2.3.5-r2.log.gz,319.45 KB, application/octet-stream)
2005-10-12 13:04 UTC, Sandro Bonazzola (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ingo 2005-03-24 05:44:54 UTC
When I try to emerge glibc with FEATURES test enabled I get an error during make check.

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

Actual Results:  
This are the last lines of the make check output:

GCONV_PATH=/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/iconvdata
LC_ALL=C  
/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/elf/ld-linux.so.2
--library-path
/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/math:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/elf:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/dlfcn:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/nss:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/nis:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/rt:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/resolv:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/crypt:/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/linuxthreads
/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/libio/tst-atime
 >
/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/libio/tst-atime.out
make[2]: ***
[/var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i686-pc-linux-gnu-linuxthreads/libio/tst-atime.out]
Error 1
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/libio'
make[1]: *** [libio/tests] Error 2
make[1]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
make: *** [check] Error 2

(Hope this is readable)

Expected Results:  
It should have emerged without problems :)

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.2, glibc-2.3.4.20040808-r1,
2.6.7-gentoo-r6 i686)
=================================================================
System uname: 2.6.7-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4
(#2, Feb 11 2005, 10:15:21)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.4-r1
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.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.19-r1, 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/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="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms test"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl
dga doc dvd emboss encode esd fam firebird flac font-server foomaticdb fortran
gdbm ggi gif gpm gtk2 imagemagick imlib ipv6 java jpeg junit kde ldap libg++
libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls oggvorbis opengl oss
other_var1 other_var2 pam pdflib perl png ppds python qt quicktime readline
samba scanner sdl slang speex spell sse ssl svga tcltk tcpd test tetex tiff
truetype truetype-fonts type1-fonts usb wmf xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2005-03-24 06:47:47 UTC
You need to mount the partition wihout noatime for that to work.
Comment 2 Toon Verstraelen 2005-04-21 13:24:15 UTC
Just a question. I had the same problem and checked the source of the test. It appears that the test checks whether the filesystem where the temporary file is created has been mounted with the noatime option. The part of the code is:

#ifdef ST_NOATIME
  /* Make sure the filesystem doesn't have the noatime option set.  If
     statvfs is not available just continue.  */
  e = fstatvfs (fd, &sv);
  if (e != ENOSYS)
    {
      if (e != 0)
        {
          printf ("cannot statvfs '%s': %m\n", buf);
          return 1;
        }

      if ((sv.f_flag & ST_NOATIME) != 0)
        {
          puts ("Bah!  The filesystem is mounted with noatime");
          return 0;
        }
    }
#endif

I have my filesystem mounted with noatime, but when I run the test manually, I get this error message:
atime has not changed
The line "if ((sv.f_flag & ST_NOATIME) != 0)" doesn't seem to work. Anybody knows why?
Comment 3 SpanKY gentoo-dev 2005-04-26 21:38:56 UTC
*** Bug 90526 has been marked as a duplicate of this bug. ***
Comment 4 Maurice van der Pot (RETIRED) gentoo-dev 2005-04-27 07:48:58 UTC
Martin, does it really WORKFORYOU? Or should this be WONTFIX instead?
Comment 5 Sergiy Borodych 2005-05-19 04:21:44 UTC
I have same problem
When I change fstab (remove noatime) to
/dev/hda3           /               reiserfs    defaults            0 1

reboot
and run
# emerge sys-libs/glibc
...
i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -o
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve1
 -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc -Wl,-z,relro
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crt1.o
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.o
`i686-pc-linux-gnu-gcc --print-file-name=crtbegin.o`
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve1.o
 -Wl,-rpath-link=/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nss:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/rt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/resolv:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/crypt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nptl
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/libc.so.6
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/libc_nonshared.a
-lgcc -lgcc_eh  `i686-pc-linux-gnu-gcc --print-file-name=crtend.o`
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crtn.o
GCONV_PATH=/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/iconvdata
LC_ALL=C  
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/elf/ld-linux.so.2
--library-path
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nss:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/rt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/resolv:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/crypt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nptl
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve1
 >
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve1.out
i686-pc-linux-gnu-gcc tst-execve2.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=pentium3 -pipe
-mpreferred-stack-boundary=2  -g0 -O99 -fomit-frame-pointer
-D__USE_STRING_INLINES    -I../include -I.
-I/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix
-I.. -I../libio -I../nptl
-I/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv
-I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386
-I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include -isystem /usr/include
-D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h  
-DNOT_IN_libc=1 -o
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve2.o
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve2.o.dt
-MT
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve2.o
i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -o
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve2
 -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc -Wl,-z,relro
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crt1.o
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.o
`i686-pc-linux-gnu-gcc --print-file-name=crtbegin.o`
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve2.o
 -Wl,-rpath-link=/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nss:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/rt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/resolv:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/crypt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nptl
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/libc.so.6
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/libc_nonshared.a
-lgcc -lgcc_eh  `i686-pc-linux-gnu-gcc --print-file-name=crtend.o`
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crtn.o
GCONV_PATH=/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/iconvdata
LC_ALL=C  
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/elf/ld-linux.so.2
--library-path
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nss:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/rt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/resolv:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/crypt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nptl
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve2
 >
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve2.out
Didn't expect signal from child: got `Segmentation fault'
make[2]: ***
[/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/tst-execve2.out]
Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/posix'
make[1]: *** [posix/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.3.5 failed.
!!! Function toolchain-glibc_src_test, Line 267, Exitcode 2
!!! nptl glibc did not pass make check
!!! If you need support, post the topmost build error, NOT this status message.


so another error :(
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-06-08 15:05:16 UTC
Just for the record - this is with sys-libs/glibc-2.3.5:

i686-pc-linux-gnu-gcc globtest.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=athlon-xp -pipe
-mpreferred-stack-boundary=2  -g0 -O99 -fomit-frame-pointer
-D__USE_STRING_INLINES    -I../include -I.
-I/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix
-I.. -I../libio -I../nptl
-I/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv
-I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386
-I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include -isystem /usr/include
-D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h  
-DNOT_IN_libc=1    -o
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/globtest.o
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/globtest.o.dt
-MT
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/globtest.o
i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -o
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/globtest
 -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc -Wl,-z,relro
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crt1.o
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.o
`i686-pc-linux-gnu-gcc --print-file-name=crtbegin.o`
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/globtest.o
 -Wl,-rpath-link=/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/math:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nss:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/rt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/resolv:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/crypt:/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/nptl
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/libc.so.6
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/libc_nonshared.a
-lgcc -lgcc_eh  `i686-pc-linux-gnu-gcc --print-file-name=crtend.o`
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/csu/crtn.o
/bin/sh -e globtest.sh
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/
/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/elf/ \
         ld-linux.so.2
make[2]: ***
[/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/posix/globtest.out]
Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/posix'
make[1]: *** [posix/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.3.5 failed.
!!! Function toolchain-glibc_src_test, Line 263, Exitcode 2
!!! nptl glibc did not pass make check
!!! If you need support, post the topmost build error, NOT this status message.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-06-08 15:18:13 UTC
(In reply to comment #6)
> Just for the record - this is with sys-libs/glibc-2.3.5:

Bah, wanted to paste to Bug 82119 - too many browser tabs. Sorry for the noise. ;-)
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2005-08-05 14:23:05 UTC
*** Bug 101474 has been marked as a duplicate of this bug. ***
Comment 9 Kevin F. Quinn (RETIRED) gentoo-dev 2005-09-28 00:02:51 UTC
Following up comment #2, which indicates the test should pass if noatime is set,
it seems fstatvfs isn't returning correct data:

Extract from mount:

/dev/hda7 on / type reiserfs (rw,noatime,notail)
/dev/dvdrw on /mnt/dvdrw type udf
(rw,noexec,nosuid,nodev,noatime,umask=000,uid=65534,gid=65534)

yet while fstatvfs returns f_flag == 0x40e for /mnt/dvdrw (i.e. includes
ST_NOATIME), it returns f_flag == 0 for /.

I wonder if it's a reiserfs issue.
Comment 10 Kevin F. Quinn (RETIRED) gentoo-dev 2005-09-28 15:00:04 UTC
Odd.  fstatvfs returns f_flags as 0 for /, but correctly returns 0x400 for a
different reiserfs partition mounted elsewhere with noatime:

/dev/hda7 on / type reiserfs (rw,noatime,notail)
/dev/sda1 on /mnt/reiser type reiserfs (rw,noatime,notail)

Doing:

# mount -o remount,atime /mnt/reiser

as expected changes its result to 0, and atimes work; doing:

# mount -o remount,noatime /mnt/reiser

as expected changes its result back to 0x400 and atimes are no longer updated.

However trying the same with '/' causes no change to the f_flags value, although
atimes are enabled and disabled as expected.
Comment 11 Kevin F. Quinn (RETIRED) gentoo-dev 2005-10-01 11:53:18 UTC
*** Bug 89843 has been marked as a duplicate of this bug. ***
Comment 12 Kevin F. Quinn (RETIRED) gentoo-dev 2005-10-01 11:55:51 UTC
*** Bug 85460 has been marked as a duplicate of this bug. ***
Comment 13 Kevin F. Quinn (RETIRED) gentoo-dev 2005-10-02 11:40:53 UTC
Created attachment 69741 [details, diff]
Fix (f)statvfs implementation to take account of reiserfs

This fixes the atime problem seen on reiserfs root partitions.	This is an
actual bug in glibc, in that fstatfs returns incorrect data for the '/'
partition, unless it's ext2 or ext3.  With this patch, the atime test detects
the noatime mount flag and skips the test.

The implementation of statvfs looks through /proc/mounts to find the flags with
which a filesystem is mounted.	It first tries to locate a match that includes
the filesystem name in the filesystem field, if this fails it falls back to
matching just the device name regardless of filesystem type.  /proc/mounts
includes a line for the initial kernel mount of '/' as well as that remounted
later, eg:

rootfs / rootfs rw 0 0
/dev/root / reiserfs rw,noatime 0 0
proc /proc proc rw,nodiratime 0 0
sysfs /sys sysfs rw 0 0
...

and without this patch, the current statvfs implementation (which doesn't
consider reiserfs) finds the first line and always thinks there are no mount
flags.	If the mount partition type is known to the statvfs implementation,
it'll find that before falling back to the rootfs line.

There are plenty of linux filesystems known to glibc (see
./sysdeps/unix/sysv/linux/linux_fsinfo.h) that aren't included in the statvfs
implementation, but I've just added reiserfs, jfs and xfs as they're mentioned
by the gentoo handbook as candidate '/' filesystem types.  I've only tested
reiserfs.  It may be worth considering others.
Comment 14 ferret 2005-10-03 09:26:03 UTC
Given patch fixes this issue for me.
Comment 15 Sandro Bonazzola (RETIRED) gentoo-dev 2005-10-12 13:04:44 UTC
Created attachment 70489 [details]
glibc-2.3.5-r2 build log

Maybe I've a problem related to this bug. Here the complete build log.
My emerge --info:
Gentoo Base System version 1.12.0_pre8
Portage 2.0.53_rc5 (default-linux/x86/2005.1, gcc-3.4.4-vanilla,
glibc-2.3.5-r1, 2.6.13-gentoo-r1 i686)
=================================================================
System uname: 2.6.13-gentoo-r1 i686 Celeron (Coppermine)
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
dev-lang/python:     2.4.2
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -march=pentium3 -O2 -pipe -fforce-addr -fomit-frame-pointer
-ffast-math -ftracer -fprefetch-loop-arrays -mfpmath=sse "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="  -march=pentium3 -O2 -pipe -fforce-addr -fomit-frame-pointer
-ffast-math -ftracer -fprefetch-loop-arrays -mfpmath=sse  -O2
-fvisibility-inlines-hidden "
DISTDIR="/home/ftp/distfiles"
FEATURES="autoconfig buildsyspkg collision-protect confcache cvs distlocks elog
maketest parallel-fetching sandbox sfperms strict test userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://gentoo.osuosl.org/ ftp://ftp.solnet.ch/mirror/Gentoo"
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS=" -Wl,-O3 "
LINGUAS="it"
MAKEOPTS="-j1"
PKGDIR="/home/ftp/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acl acpi acpi4linux alsa apache2 arts audiofile avi berkdb
bitmap-fonts bzip2 bzlib caps cdparanoia chroot clamav crypt cups curl dba dio
directfb divx4linux emboss encode erandom esd faac faad fam fbcon ffmpeg
firefox flac foomaticdb gcc-libffi gd gdbm ggi gif gimpprint glibc-omitfp gmp
gnokii gnome gnomedb gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 guile
iconv imagemagick imlib imlib2 innodb ipv6 irda ithreads java javacomm
javascript jbig jikes jpeg jpeg2k junit justify jython kde kdeenablefinal lcms
libclamav libg++ libwww linuxthreads-tls lzo mad mailwrapper mbox md5sum mdb
mikmod mime mjpeg mmap mmx mmx2 mmxext mng motif mozcalendar mozdevelop
moznoirc mozsvg mp3 mpeg mpi mpm-worker mysql ncurses nls no-old-linux
no-suexec no_wxgtk1 noantlr nobcel nobeanutils nobsf nobsh nocommonslogging
nocommonsnet nojdepend nojsch nomac norhino noxalan noxerces nptl nptlonly oav
objc odbc offensive ofx ogg oggvorbis opengl pam pcmcia pcsc-lite pdflib perl
php plotutils png pnp posix ppds pwdb python qt quicktime readline rtc samba
scanner sdl shared sharedmem slang smartcard sms snmp softquota speex spell spl
sse ssl svg svga tcltk tcpd tetex theora threads tidy tiff timidity truetype
truetype-fonts trusted type1-fonts unicode usb userlocales utf8 vcd vda vorbis
win32codecs wmf wsconvert xine xinerama xml xml2 xmms xpm xsl xv xvid yahoo
zlib linguas_it userland_GNU kernel_linux elibc_glibc"
Unset:	ASFLAGS, CTARGET
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2005-10-26 13:35:56 UTC
*** Bug 110571 has been marked as a duplicate of this bug. ***
Comment 17 Kevin F. Quinn (RETIRED) gentoo-dev 2005-12-03 15:48:49 UTC
Spanky - this is a genuine bug in glibc, not just a test failure.  Could you add
patch http://bugs.gentoo.org/attachment.cgi?id=69741 to the glibc patches?  If
you prefer I'll suggest it upstream, however I think RedHat never see the
problem as they always build their root filesystem with ext2, so they may not be
interested.
Comment 18 SpanKY gentoo-dev 2005-12-03 16:22:17 UTC
patch looks fine to me ... maybe even add a line for REISER4_SUPER_MAGIC :p

patch as is though should be submitted to upstream glibc bug tracker ... please
cc toolchain@gentoo.org when you do
Comment 19 SpanKY gentoo-dev 2005-12-03 17:15:15 UTC
add patch to cvs patchset dir, will be in next patchset release
Comment 20 Kevin F. Quinn (RETIRED) gentoo-dev 2005-12-04 15:25:36 UTC
Bug raised in upstream glibc bugzilla
http://sourceware.org/bugzilla/show_bug.cgi?id=1978
Comment 21 Mark Loeser (RETIRED) gentoo-dev 2005-12-15 02:02:54 UTC
This looks fixed then since we have the patch, and upstream just needs to accept it.
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2005-12-30 02:26:59 UTC
*** Bug 117168 has been marked as a duplicate of this bug. ***