[Clfs-support] Fwd: problems with gcc-4.2.2-cross-compiler-final compilation

Ken Moffat zarniwhoop at ntlworld.com
Mon Jan 14 04:21:40 PST 2008


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
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the Clfs-support mailing list