J'ai tenté d'exécuté manuellement ce que fait le script.
J'ai déroulé les commandes ci-dessous :
- Code: Tout sélectionner
[root@localhost ipcop-1.4.18]# unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
[root@localhost ipcop-1.4.18]# mount --bind /dev/pts /root/ipcop-1.4.18/build/dev/pts
[root@localhost ipcop-1.4.18]# mount --bind /proc /root/ipcop-1.4.18/build/proc
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/cache /root/ipcop-1.4.18/build/usr/src/cache
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/ccache /root/ipcop-1.4.18/build/usr/src/ccache
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/config /root/ipcop-1.4.18/build/usr/src/config
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/doc /root/ipcop-1.4.18/build/usr/src/doc
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/html /root/ipcop-1.4.18/build/usr/src/html
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/langs /root/ipcop-1.4.18/build/usr/src/langs
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/lfs /root/ipcop-1.4.18/build/usr/src/lfs
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/log /root/ipcop-1.4.18/build/usr/src/log
[root@localhost ipcop-1.4.18]# mount --bind /root/ipcop-1.4.18/src /root/ipcop-1.4.18/build/usr/src/src
[root@localhost ipcop-1.4.18]# export CCACHE_DIR=/root/ipcop-1.4.18/ccache
[root@localhost ipcop-1.4.18]# CCACHE_DIR=/root/ipcop-1.4.18/ccache
[root@localhost ipcop-1.4.18]# export CCACHE_HASHDIR=1
[root@localhost ipcop-1.4.18]# CCACHE_HASHDIR=1
[root@localhost ipcop-1.4.18]# cd /root/ipcop-1.4.18/lfs
[root@localhost lfs]# make -s -f stage2 LFS_BASEDIR=/root/ipcop-1.4.18 'MESSAGE=stage2\t ' download
[root@localhost lfs]# echo $?
0
[root@localhost lfs]# cd /root/ipcop-1.4.18/lfs
[root@localhost lfs]# make -s -f stage2 LFS_BASEDIR=/root/ipcop-1.4.18 'MESSAGE=stage2\t md5sum' md5
[root@localhost lfs]#
[root@localhost lfs]# echo $?
0
[root@localhost lfs]# chroot /root/ipcop-1.4.18/build /tools/bin/env -i HOME=/root TERM=xterm 'PS1=\u:\w\$ ' PATH=/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin VERSION=1.4.18 CONFIG_ROOT=/var/ipcop NAME=IPCop SNAME=ipcop 'SLOGAN=The Bad Packets Stop Here' 'CFLAGS=-O2 -mcpu=i386 -march=i386 -pipe -fomit-frame-pointer' 'CXXFLAGS=-O2 -mcpu=i386 -march=i386 -pipe -fomit-frame-pointer' CCACHE_DIR=/usr/src/ccache CCACHE_HASHDIR=1 KVER=2.4.34 BUILDTARGET=i386-pc-linux-gnu MACHINE=i386 /tools/bin/bash
Inconsistency detected by ld.so: rtld.c: 1221: dl_main: Assertion `pt_load_num || (void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Donc le problème se situ autour du chroot.
J'ai continué en réduisant la commande le plus possible :
- Code: Tout sélectionner
chroot /root/ipcop-1.4.18/build /tools/bin/env
Inconsistency detected by ld.so: rtld.c: 1221: dl_main: Assertion `pt_load_num || (void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
et
- Code: Tout sélectionner
chroot /root/ipcop-1.4.18/build
chroot: cannot run command `/bin/bash': No such file or directory
Ce qui tend à prouver que c'est la commande /root/ipcop-1.4.18/build/tools/bin/env sans doute généré via LFS avec le gcc Fedora qui pose problème.
En fait, j'ai testé d'autres commandes dans /root/ipcop-1.4.18/build/tools/bin et elles ont toutes le même problème.
Si quelqu'un à une idée ?