LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Warning on running "make check", 2nd time (https://www.linuxquestions.org/questions/linux-from-scratch-13/warning-on-running-make-check-2nd-time-342026/)

satimis 07-10-2005 10:58 PM

Warning on running "make check", 2nd time
 
Hi folks,

After starting up the FC3 host PC, continued building LFS as follows;

[satimis@localhost ~]$ su -
Password:
[root@localhost ~]# export LFS=/mnt/lfs
[root@localhost ~]# mkdir -p $LFS/{proc,sys}
[root@localhost ~]# mount -t proc proc $LFS/proc
[root@localhost ~]# mount -t sysfs sysfs $LFS/sys
[root@localhost ~]# mount -f -t ramfs ramfs $LFS/dev
[root@localhost ~]# mount -f -t tmpfs tmpfs $LFS/dev/shm
[root@localhost ~]# mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts

All went through without complaint

[root@localhost ~]# chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h
root:/#

6.8. Populating /dev
http://www.sg.linuxfromscratch.org/l...6/devices.html

root:/# mknod -m 600 /dev/console c 5 1
mknod: `/dev/console': File exists
root:/# mknod -m 666 /dev/null c 1 3
mknod: `/dev/null': File exists
root:/# mount -n -t ramfs none /dev
root:/# /tools/sbin/udevstart
root:/# ln -s /proc/self/fd /dev/fd
root:/# ln -s /proc/self/fd/0 /dev/stdin
root:/# ln -s /proc/self/fd/1 /dev/stdout
root:/# ln -s /proc/self/fd/2 /dev/stderr
root:/# ln -s /proc/kcore /dev/core
root:/# mkdir /dev/ptsmkdir /dev/pts
root:/# mkdir /dev/shm
root:/# mount -t devpts -o gid=4,mode=620 none /dev/pts
root:/# mount -t tmpfs none /dev/shm

All went through without complaint.

6.11. Glibc-2.3.4-20040701
http://www.sg.linuxfromscratch.org/l...r06/glibc.html

(Remark: before already untared on 12) 5.8. Glibc-2.3.4-20040701)
root:/# cd sources/glibc-build/
root:/sources/glibc-build# mkdir ../glibc-build
mkdir: cannot create directory `../glibc-build': File exists
root:/sources/glibc-build# cd ../glibc-build
root:/sources/glibc-build# ../glibc-2.3.4-20040701/configure --prefix=/usr --disable-profile --enable-add-ons=nptl --with-tls --with-__thread --enable-kernel=2.6.0 --without-cvs --libexecdir=/usr/lib/with-headers=/tools/glibc-kernheaderglibc
root:/sources/glibc-build# make

Went through without complaint

root:/sources/glibc-build# make check
.....
....
make[2]: *** [/sources/glibc-build/nptl/tst-cancel17.out] Error 1
make[2]: Leaving directory `/sources/glibc-2.3.4-20040701/nptl'
make[1]: *** [nptl/tests] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.4-20040701'
make: *** [check] Error 2

Please advise whether I have to recompile it again. This is the second round I did.

TIA

B.R.
satimis

freegianghu 07-10-2005 11:36 PM

Have you ever patched glibc test? I think, you should do(at current stage):
Code:

# cd /sources/glibc-2.3.4-20040701
# patch -Np1 -i ../glibc-2.3.5-fix_test-1.patch
# cd ../glibc-build
# make check

Good luck,
Giang Hu.

satimis 07-10-2005 11:48 PM

Hi freegianghu,

Tks for your advice.

Quote:

Have you ever patched glibc test? I think, you should do(at current stage):
Code:

# cd /sources/glibc-2.3.4-20040701
# patch -Np1 -i ../glibc-2.3.5-fix_test-1.patch
# cd ../glibc-build
# make check


# ls -a /mnt/lfs/sources/glibc-2.3.4-20040701 | grep glibe*
[root@localhost ~]# ls -a /mnt/lfs/sources/glibc-2.3.4-20040701 | grep glibe-*
[root@localhost ~]# ls -a /mnt/lfs/sources/glibc-2.3.4-20040701 | grep glibe-2.3.5-*

All no printout. Where can I get this patch file. TIA

B.R.
satimis

satimis 07-11-2005 12:03 AM

Hi freegianghu,

Sorry for my typing mistake,

Quote:

[b]# ls -a /mnt/lfs/sources/glibc-2.3.4-20040701 | grep glibe*
[root@localhost ~]# ls -a /mnt/lfs/sources/glibc-2.3.4-20040701 | grep glibe-*
[root@localhost ~]# ls -a /mnt/lfs/sources/glibc-2.3.4-20040701 | grep glibe-2.3.5-*/B]
[root@localhost ~]# ls -al /mnt/lfs/sources/glibc-2.3.4-20040701 | grep glibc-*
[root@localhost ~]# ls -al /mnt/lfs/sources/glibc-2.3.4-20040701/ | grep glibc-*

Still I could not find this patch in the directory.

B.R.
satimis

satimis 07-11-2005 02:34 AM

Hi freegianghu,

From;
http://www.sg.linuxfromscratch.org/p...wnloads/glibc/
download "glibc-2.3.2-test_lfs-1.patch"

# cp /path/to/glibc-2.3.2-test_lfs-1.patch /mnt/lfs/sources/glibc-2.3.4-20040701

root:/sources/glibc-build# cd /sources/glibc-2.3.4-20040701
root:/sources/glibc-2.3.4-20040701# patch -Np1 -i ../glibc-2.3.5-fix_test-1.patch
patch: **** Can't open patch file ../glibc-2.3.5-fix_test-1.patch : No such file or directory
root:/sources/glibc-2.3.4-20040701# patch -Np1 -i glibc-2.3.5-fix_test-1.patch
patching file nptl/tst-cancel17.c
# cd ../glibc-build/
root:/sources/glibc-build# make check
Code:

....
...
make[1]: *** [/sources/glibc-build/c++-types-check.out] Error 1
make[1]: Leaving directory `/sources/glibc-2.3.4-20040701'
make: *** [check] Error 2

Warning still existed.

B.R.
satimis

freegianghu 07-11-2005 02:45 AM

Quote:

Originally posted by satimis
Hi freegianghu,

From;
http://www.sg.linuxfromscratch.org/p...wnloads/glibc/
download "glibc-2.3.2-test_lfs-1.patch"

# cp /path/to/glibc-2.3.2-test_lfs-1.patch /mnt/lfs/sources/glibc-2.3.4-20040701

root:/sources/glibc-build# cd /sources/glibc-2.3.4-20040701
root:/sources/glibc-2.3.4-20040701# patch -Np1 -i ../glibc-2.3.5-fix_test-1.patch
patch: **** Can't open patch file ../glibc-2.3.5-fix_test-1.patch : No such file or directory // you hadnt patched yet :(
root:/sources/glibc-2.3.4-20040701# patch -Np1 -i glibc-2.3.5-fix_test-1.patch
patching file nptl/tst-cancel17.c
# cd ../glibc-build/
root:/sources/glibc-build# make check
Code:

....
...
make[1]: *** [/sources/glibc-build/c++-types-check.out] Error 1 // it seems you have an other problem :(
make[1]: Leaving directory `/sources/glibc-2.3.4-20040701'
make: *** [check] Error 2

Warning still existed.

B.R.
satimis


satimis 07-11-2005 03:08 AM

Hi freegianghu,


Quote:

root:/sources/glibc-2.3.4-20040701# patch -Np1 -i ../glibc-2.3.5-fix_test-1.patch
patch: **** Can't open patch file ../glibc-2.3.5-fix_test-1.patch : No such file or directory
// you hadnt patched yet

Sorry I still could not proceed. I tried again and copied and pasted the suggested command on Konsole with the same result.

root:/sources/glibc-2.3.4-20040701# patch -Np1 -i ../glibc-2.3.5-fix_test-1.patch
patch: **** Can't open patch file ../glibc-2.3.5-fix_test-1.patch : No such file or directory

The patch file was there.
ls -al ../glibc-2.3.4-20040701 | grep glibc-*
-rw-r--r-- 1 root root 1074 Jul 11 07:14 glibc-2.3.5-fix_test-1.patch

Whether I have to run
# chmod +x glibc-2.3.5-fix_test-1.patch

B.R.
satimis

freegianghu 07-11-2005 03:25 AM

Quote:

Originally posted by satimis
Hi freegianghu,

The patch file was there.
ls -al ../glibc-2.3.4-20040701 | grep glibc-*
-rw-r--r-- 1 root root 1074 Jul 11 07:14 glibc-2.3.5-fix_test-1.patch

Whether I have to run
# chmod +x glibc-2.3.5-fix_test-1.patch

B.R.
satimis

I see, you had copied glibc-2.3.5-fix_test-1.patch to wrong place :). Patch command like:
Code:

patch -Np1 -i glibc-2.3.5-fix_test-1.patch

satimis 07-11-2005 03:46 AM

Hi freegianghu,

Tks for your advice.

Quote:

.....Patch command like:
Code:

patch -Np1 -i glibc-2.3.5-fix_test-1.patch

I ran it before.

root:/sources/glibc-2.3.4-20040701# patch -Np1 -i glibc-2.3.5-fix_test-1.patch
patching file nptl/tst-cancel17.c

I ran following command the 2nd time
# cd ../glibc-build/
root:/sources/glibc-build# make check

To my surprise this time no error indicated;
Code:

....
....
make[4]: Leaving directory `/sources/glibc-2.3.4-20040701/nptl'
make -C ../posix objdir=/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-uname.os rtld-_exit.os rtld-getpid.os rtld-environ.os'
make[4]: Entering directory `/sources/glibc-2.3.4-20040701/posix'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/sources/glibc-2.3.4-20040701/posix'
make -C ../setjmp objdir=/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-bsd-_setjmp.osrtld-__longjmp.os'
make[4]: Entering directory `/sources/glibc-2.3.4-20040701/setjmp'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/sources/glibc-2.3.4-20040701/setjmp'
make -C ../signal objdir=/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-sigaction.os'
make[4]: Entering directory `/sources/glibc-2.3.4-20040701/signal'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/sources/glibc-2.3.4-20040701/signal'
make -C ../stdlib objdir=/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-exit.os rtld-cxa_atexit.os'
make[4]: Entering directory `/sources/glibc-2.3.4-20040701/stdlib'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/sources/glibc-2.3.4-20040701/stdlib'
make -C ../string objdir=/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-strchr.os rtld-strcmp.os rtld-strlen.os rtld-strnlen.os rtld-memchr.os rtld-memmove.os rtld-memset.os rtld-mempcpy.os rtld-stpcpy.os rtld-memcpy.os'
make[4]: Entering directory `/sources/glibc-2.3.4-20040701/string'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/sources/glibc-2.3.4-20040701/string'
make -C ../time objdir=/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setitimer.os'
make[4]: Entering directory `/sources/glibc-2.3.4-20040701/time'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/sources/glibc-2.3.4-20040701/time'
make[3]: Leaving directory `/sources/glibc-2.3.4-20040701/elf'
make[2]: Leaving directory `/sources/glibc-2.3.4-20040701/elf'
make[1]: Leaving directory `/sources/glibc-2.3.4-20040701'

B.R.
satimis


All times are GMT -5. The time now is 09:17 PM.