This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Building libc with linuxthreads fails
- From: Daniel Jacobowitz <drow at false dot org>
- To: Christian Zankel <chris at zankel dot net>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Fri, 5 Aug 2005 00:10:53 -0400
- Subject: Re: Building libc with linuxthreads fails
- References: <42F2CAEF.8010605@zankel.net>
On Thu, Aug 04, 2005 at 07:11:59PM -0700, Christian Zankel wrote:
> Hi Daniel,
>
> I have unsuccessfully tried to build glibc with linuxthreads. It can't
> find the (second) pthread.h include file (included by include_next).
>
>
> Shouldn't the ports/linuxthreads/... directory be in the list of include
> directories passed to gcc? Any help would be appreciated.
>
> In file included from ../sysdeps/unix/sysv/linux/fatal-prepare.h:19,
> from assert.c:43:
> ../include/pthread.h:1:26: pthread.h: No such file or directory
>
> I used the following configuration options:
>
> ~/work/libc0804/libc/configure --prefix=/tmp/build
> --with-headers=/usr/src/linux/include/ --without-__thread
> --enable-add-ons=ports --disable-sanity-checks
What architecture is this? You can't do it this way; in fact, I think
you're building with neither linuxthreads nor NPTL enabled.
For the moment, please try copying linuxthreads and linuxthreads_db to
the top level, and then saying --enable-add-ons=linuxthreads.
--enable-add-ons=ports/linuxthreads/ doesn't quite work.
--
Daniel Jacobowitz
CodeSourcery, LLC