glibc-2.3.3-lfs-5.1 make check (mtrace) error

Brian Willkie bwillkie at uga.edu
Sat Jun 12 18:35:14 PDT 2004


Hello, 
 
I'm trying to compile Glibc-2.3.3-lfs-5.1 for chapter 6 of 
LFS 5.1. Everything seems to go well until  
 
root:make check  
 
when I get an error: 
 
/bin/sh: line 1: /sources/glibc-build/malloc/mtrace: No such 
file or directory 
 
There are a couple of messages in the archives with similar 
problems but no authoritative solutions. A google search of  
http://www.linuxfromscratch.org/ and the lfs wiki also 
turned up nothing for me.  
 
 
I have the following questions: 
 
what is mtrace? 
is mtrace suppose to be a perl file or c/c++ file? 
if it's suppose to be a perl script: 
    why does make check look for mtrace instead of 
mtrace.pl? 
    why does make create mtrace.o for a perl file? 
 
whatever mtrace is suppose to be,  
    why is it not installed? 
    why is there no build target for it (or did I miss 
something)? 
 
or 
 
what should I do now? 
 
 
Incidentally, in glihc-2.3.3-lfs-5.1 there exists both 
mtrace.c and mtrace.pl 
 
 
###################################################################################################################### 
###################################################################################################################### 
my system: 
 
computer: Dell Inspiron 5100 (laptop) 
host:     Knoppix 3.3 (live CD) 
env: 
 
root:/sources/glibc-build# env 
TERM=rxvt 
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin 
PWD=/sources/glibc-build 
PS1=\u:\w\$  
SHLVL=1 
HOME=/root 
_=/tools/bin/env 
OLDPWD=/sources 
 
 
###################################################################################################################### 
###################################################################################################################### 
make check error: 
 
/sources/glibc-build/malloc/mtrace /sources/glibc-build/
libio/tst-fopenloc.mtrace >> /sources/glibc-build/libio/
tst-fopenloc.check 
/bin/sh: line 1: /sources/glibc-build/malloc/mtrace: No such 
file or directory 
make[2]: *** [/sources/glibc-build/libio/tst-fopenloc.check] 
Error 127 
make[2]: Leaving directory `/sources/glibc-2.3.3-lfs-5.1/
libio' 
make[1]: *** [libio/tests] Error 2 
make[1]: Leaving directory `/sources/glibc-2.3.3-lfs-5.1' 
make: *** [check] Error 2 
 
 
###################################################################################################################### 
###################################################################################################################### 
output of make regarding malloc/mtrace: 
 
 
gcc mtrace.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -g 
-mpreferred-stack-boundary=2     -I../include -I. -I/
sources/glibc-build/malloc -I.. -I../libio  -I/sources/
glibc-build -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/
unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/
linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread 
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/
sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../
linuxthreads/sysdeps/i386 -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../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 /tools/lib/gcc-lib/
i686-pc-linux-gnu/3.3.3/include -isystem /usr/include 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       
-o /sources/glibc-build/malloc/mtrace.o -MD -MP -MF /
sources/glibc-build/malloc/mtrace.o.dt 
 
 
echo 'malloc/malloc.o malloc/morecore.o malloc/mcheck.o 
malloc/mtrace.o malloc/obstack.o malloc/set-freeres.o 
malloc/thread-freeres.o' > /sources/glibc-build/malloc/
stamp.oT 
 
 
gcc mtrace.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -g 
-mpreferred-stack-boundary=2  -fPIC    -I../include -I. -I/
sources/glibc-build/malloc -I.. -I../libio  -I/sources/
glibc-build -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/
unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/
linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread 
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/
sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../
linuxthreads/sysdeps/i386 -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../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 /tools/lib/gcc-lib/
i686-pc-linux-gnu/3.3.3/include -isystem /usr/include 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC 
-DSHARED     -o /sources/glibc-build/malloc/mtrace.os -MD 
-MP -MF /sources/glibc-build/malloc/mtrace.os.dt 
 
echo 'malloc/malloc.os malloc/morecore.os malloc/mcheck.os 
malloc/mtrace.os malloc/obstack.os malloc/set-freeres.os 
malloc/thread-freeres.os' > /sources/glibc-build/malloc/
stamp.osT 
 
a - malloc/mtrace.os 
 
a - malloc/mtrace.o 
 
###################################################################################################################### 
###################################################################################################################### 
contents of /sources/glibc-build/malloc/: 
 
total 1036 
drwxr-xr-x    2 root     root         4096 Jun 12 17:15 . 
drwxr-xr-x   58 root     root         4096 Jun 12 17:34 .. 
lrwxrwxrwx    1 root     root           13 Jun 12 17:15 
libmcheck.a -> mcheck-init.o 
-rwxr-xr-x    1 root     root        53572 Jun 12 17:15 
libmemusage.so 
-rwxr-xr-x    1 root     root        63004 Jun 12 17:15 
libmemusage_pic.a 
-rwxr-xr-x    1 root     root       114464 Jun 12 17:03 
malloc.o 
-rwxr-xr-x    1 root     root        10436 Jun 12 17:15 
malloc.o.d 
-rwxr-xr-x    1 root     root       116228 Jun 12 17:03 
malloc.os 
-rwxr-xr-x    1 root     root        10559 Jun 12 17:15 
malloc.os.d 
-rwxr-xr-x    1 root     root         3092 Jun 12 17:15 
mcheck-init.o 
-rwxr-xr-x    1 root     root          663 Jun 12 17:15 
mcheck-init.o.dt 
-rwxr-xr-x    1 root     root        24996 Jun 12 17:03 
mcheck.o 
-rwxr-xr-x    1 root     root         3394 Jun 12 17:15 
mcheck.o.d 
-rwxr-xr-x    1 root     root        26040 Jun 12 17:03 
mcheck.os 
-rwxr-xr-x    1 root     root         3517 Jun 12 17:15 
mcheck.os.d 
-rwxr-xr-x    1 root     root        62732 Jun 12 17:15 
memusage.os 
-rwxr-xr-x    1 root     root         7694 Jun 12 17:15 
memusage.os.dt 
-rwxr-xr-x    1 root     root        10420 Jun 12 17:03 
morecore.o 
-rwxr-xr-x    1 root     root         3067 Jun 12 17:15 
morecore.o.d 
-rwxr-xr-x    1 root     root        10504 Jun 12 17:03 
morecore.os 
-rwxr-xr-x    1 root     root         3068 Jun 12 17:15 
morecore.os.d 
-rwxr-xr-x    1 root     root        79156 Jun 12 17:03 
mtrace.o 
-rwxr-xr-x    1 root     root         9614 Jun 12 17:15 
mtrace.o.d 
-rwxr-xr-x    1 root     root        80244 Jun 12 17:03 
mtrace.os 
-rwxr-xr-x    1 root     root         9737 Jun 12 17:15 
mtrace.os.d 
-rwxr-xr-x    1 root     root        23008 Jun 12 17:03 
obstack.o 
-rwxr-xr-x    1 root     root         4376 Jun 12 17:15 
obstack.o.d 
-rwxr-xr-x    1 root     root        23780 Jun 12 17:03 
obstack.os 
-rwxr-xr-x    1 root     root         4499 Jun 12 17:15 
obstack.os.d 
-rwxr-xr-x    1 root     root        63736 Jun 12 17:03 
set-freeres.o 
-rwxr-xr-x    1 root     root         9430 Jun 12 17:15 
set-freeres.o.d 
-rwxr-xr-x    1 root     root        64424 Jun 12 17:03 
set-freeres.os 
-rwxr-xr-x    1 root     root         9431 Jun 12 17:15 
set-freeres.os.d 
-rwxr-xr-x    1 root     root          128 Jun 12 17:03 
stamp.o 
-rwxr-xr-x    1 root     root            1 Jun 12 17:03 
stamp.oS 
-rwxr-xr-x    1 root     root          135 Jun 12 17:03 
stamp.os 
-rwxr-xr-x    1 root     root        10564 Jun 12 17:03 
thread-freeres.o 
-rwxr-xr-x    1 root     root         3668 Jun 12 17:15 
thread-freeres.o.d 
-rwxr-xr-x    1 root     root        10812 Jun 12 17:03 
thread-freeres.os 
-rwxr-xr-x    1 root     root         3669 Jun 12 17:15 
thread-freeres.os.d 
 
 
###################################################################################################################### 
###################################################################################################################### 
contents of /sources/glibc-2.3.3-lfs-5.1/malloc: 
total 420 
drwxr-xr-x   2 root root   4096 Feb 17 09:11 . 
drwxr-xr-x  67 root root   4096 May 12 03:24 .. 
-rw-r--r--   1 root root      6 Oct  4  1999 Depend 
-rw-r--r--   1 root root   4382 Sep 30  2003 Makefile 
-rw-r--r--   1 root root   1378 Feb 22  2003 Versions 
-rw-r--r--   1 root root  22591 Jul  1  2003 arena.c 
-rw-r--r--   1 root root  19827 Sep 12  2003 hooks.c 
-rw-r--r--   1 root root 171991 Dec 17 23:31 malloc.c 
-rw-r--r--   1 root root   7647 Aug 18  2003 malloc.h 
-rw-r--r--   1 root root   1717 Dec  8  1996 mallocbug.c 
-rw-r--r--   1 root root   1149 Jul  6  2001 mcheck-init.c 
-rw-r--r--   1 root root  10363 Nov 14  2002 mcheck.c 
-rw-r--r--   1 root root   2521 Jul  6  2001 mcheck.h 
-rw-r--r--   1 root root  23584 May  3  2002 memusage.c 
-rwxr-xr-x   1 root root   7628 Jan  1 20:42 memusage.sh 
-rw-r--r--   1 root root  18237 Mar 22  2003 memusagestat.c 
-rw-r--r--   1 root root   9675 Dec 17 23:31 mtrace.c 
-rw-r--r--   1 root root   6434 Jan  1 20:42 mtrace.pl 
-rw-r--r--   1 root root  14209 Jan 28 03:52 obstack.c 
-rw-r--r--   1 root root  20525 Jan 28 03:52 obstack.h 
-rw-r--r--   1 root root   1693 Mar 21  2003 set-freeres.c 
-rw-r--r--   1 root root   1204 Feb 22  2003 
thread-freeres.c 
-rw-r--r--   1 root root   2671 Aug  7  2002 tst-calloc.c 
-rw-r--r--   1 root root   1678 Jul  6  2001 tst-malloc.c 
-rw-r--r--   1 root root   1917 Jan 29  2002 
tst-mallocstate.c 
-rw-r--r--   1 root root   2384 Jul  6  2001 tst-mtrace.c 
-rwxr-xr-x   1 root root   1514 Jul  6  2001 tst-mtrace.sh 
-rw-r--r--   1 root root   1351 Nov 20  2000 tst-obstack.c 
-rw-r--r--   1 root root    375 Nov 20  2000 tst-valloc.c 
 



More information about the lfs-support mailing list