This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
make[2]: *** [libio/bug-mmap-fflush.out] Error 1
- From: Enrique Perez-Terron <enrio at online dot no>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Sat, 28 Aug 2004 15:51:28 +0200
- Subject: make[2]: *** [libio/bug-mmap-fflush.out] Error 1
I get the error shown in the subject line, when compiling today's cvs
on a uniprocessor i586 (actually AMD, see below), running linux
2.6.6-1.435.2.3.
I configured it using
KERNELDIR=/usr/src/linux-2.6.8-1.521 # The newest for my distro
KERNELVERSION=2.6.6 # Falling behind in updates :^)
mkdir build; cd build; # Separate, clean build dir
$OLDPWD/libc/configure \
--without-cvs \
--prefix=/usr \
--with-tls \
--enable-add-ons \
--enable-kernel=$KERNELVERSION \
--with-headers=$KERNELDIR/include \
--disable-profile
I added some lines to sysdeps/i386/fpu/libm-test-ulps because my
processor has a couple of 1-ulp errors for long double computation
(and one 3-ulp and one 4-ulp errors).
The test that fails (libio/bug-mmap-fflush.c) was written in August
2002. It
- adds a few bytes to a tempfile:
system("echo 'From foo@bar.com' > tempfile");
- opens the tempfile for read
- seeks to the end,
- saves the position,
- seeks to the beginning of the file,
- fflush(f);
- another process appends to the file:
system("echo 'From bar@baz.edu' >> tempfile")
- seeks to the saved position,
- reads from the file.
The test fails to distinguish between
- getting no data (fgets returns NULL), or
- the returned data does not contain what the other process wrote.
(the test program test both conditions and does exit(1) in either case).
Any suggestions about what I should look for?
I presume "tempfile" is in /tmp, as I have not set TMPDIR.
$ df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda7 439204 22298 394228 6% /tmp
$ mount | grep /tmp
/dev/hda7 on /tmp type ext3 (rw)
The build runs on:
$ df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 27157556 19572556 7585000 73% /var
$ mount | grep /var
/dev/hda3 on /var type reiserfs (rw)
Other data:
Distro: Fedora Core 2
$ uname -s -r -m -p -i -o
Linux 2.6.6-1.435.2.3 i586 i586 i386 GNU/Linux
$ cat /proc/cpuid
vendor_id : AuthenticAMD
cpu family : 5
model : 8
model name : AMD-K6(tm) 3D processor
stepping : 12
cpu MHz : 451.091
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 pge mmx syscall 3dnow k6_mtrr
bogomips : 888.83
-Enrique