[Clfs-support] problems with gcc-4.2.2-cross-compiler.../ now problems with chroot entry
b-vol
bvl at btconnect.com
Tue Jan 15 02:55:20 PST 2008
On Monday 14 January 2008 12:21:40 pm Ken Moffat wrote:
> On Mon, Jan 14, 2008 at 09:15:54AM +0000, b-vol wrote:
> > Greetings,
>
> Hi again, welcome to clfs.
>
> > I am attempting an amd64-64 bit build using the latest dev clfs. I am not
> > new to LFS. I bumped into my first problem at section 5.10 of the
> > book (gcc-4-2-2-cross compiler final). The hostcompileroutput is shown
> > below.
> >
> >
> > ########## 5.10. GCC-4.2.2 - Cross Compiler Final
> > (X_64 (64-bit) build host runs fedora 8)
> >
> > /mnt/clfs/sources-clfsX64Jn08/gcc-4.2.2/gcc/gthr-posix.h:107: warning:
> > type defaults to 'int' in declaration of
> > '__gthrw_pthread_mutexattr_destroy'
> > /mnt/clfs/sources-clfsX64Jn08/gcc-4.2.2/gcc/gthr-posix.h:572: error:
> > expected ')' before '*' token
>
> This type of message usually means a header has not been found.
> The message about that will only be a warning, and would be
> somewhere before these errors. But I think we can work out what is
> missing...
>
> > error: 'PTHREAD_ONCE_INIT' undeclared (first use in this function)
> > /mnt/clfs/sources-clfsX64Jn08/gcc-4.2.2/gcc/unwind-dw2.c:1418: warning:
> > implicit declaration of function '__gthread_once'
> > make[3]: *** [libgcc/./unwind-dw2.o] Error 1
>
> In the completed system I'm using, PTHREAD_ONCE_INIT seems to be
> defined in /usr/include/pthread.h. So, I expect you to have
> /tools/include/pthread.h (installed by glibc, specified by
> '--with-headers=' in section 5.9.1). Do you ?
>
> ĸen
Greetings,
thanks for your help. the problem with gcc not cross-compiling seems to be
over. I am now having a problem with entering the chroot environment. I dont
know if /tools/bin should be in the .bashrc search path. Please find below
details of the problem.
clfs:~$ echo $CLFS
/mnt/clfs
clfs:~$ su
Password:
root:/home/clfs# chroot "${CLFS}" /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
bash: chroot: command not found
#########################
clfs:~$ ls /tools/bin/chroot
/tools/bin/chroot
clfs:~$
###################
clfs:~$ cat .bashrc
set +h
umask 022
CLFS=/mnt/clfs
LC_ALL=POSIX
PATH=/cross-tools/bin:/bin:/usr/bin
export CLFS LC_ALL PATH
unset CFLAGS
unset CXXFLAGS
export BUILD64="-m64"
export CLFS_HOST="x86_64-cross-linux-gnu"
export CLFS_TARGET="x86_64-unknown-linux-gnu"
export CC="x86_64-unknown-linux-gnu-gcc"
export CXX="x86_64-unknown-linux-gnu-g++"
export AR="x86_64-unknown-linux-gnu-ar"
export AS="x86_64-unknown-linux-gnu-as"
export RANLIB="x86_64-unknown-linux-gnu-ranlib"
export LD="x86_64-unknown-linux-gnu-ld"
export STRIP="x86_64-unknown-linux-gnu-strip"
clfs:~$
helpful suggestions are welcomed.
sincerely
b-vol
More information about the Clfs-support
mailing list