This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
i *think* i'm isolating the whole threads-related issue i'm having in trying to build a toolchain with NPTL support using recent versions of all the GNU software. using my stripped-down version of crosstool, the first error was that, in building the bootstrap-gcc (whose configuration included the option "--enable-threads=yes"), i got the error: In file included from ./gthr-default.h:1, from /home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/gthr.h:114, from /home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/unwind-dw2.c:42: /home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/gthr-posix.h:43:21: error: pthread.h: No such file or directory hmmm ... no file "pthread.h"? check all of the glibc header files installed by the previous step under sys-root and, sure enough, no pthread.h, so i'm assuming i didn't configure that previous step properly to install pthread.h along with everything else. so how do i configure the glibc-headers step to install pthread.h? as a wild guess, i'll add "--enable-add-ons=nptl" to the configure step for the glibc headers, and re-run the build from scratch, at which point i get: ... checking build system type... i686-pc-linux-gnu checking host system type... sh3-unknown-linux-gnu running configure fragment for add-on nptl ... checking for SH TLS support... yes running configure fragment for nptl/sysdeps/unix/sysv/linux running configure fragment for nptl/sysdeps/pthread checking for forced unwind support... yes checking for C cleanup handling... no configure: error: the compiler must support C cleanup handling make[1]: *** [/home/rpjday/results/edge/build-tools/build-glibc-headers/config.status] Error 1 make[1]: Leaving directory `/home/rpjday/results/edge/build-tools/glibc-20051024' make: *** [install-headers] Error 2 "the compiler must support C cleanup handling"? a quick google session brings me to this: http://dev.gentoo.org/~halcy0n/glibc/patches/5070_all_cross-compile-nptl.patch a quick recursive grep of the entire patches directory shows no patch that refers to "libc_cv_c_cleanup" so i'm initially assuming that there is no patch to handle this yet. time for more research. thoughts? is that gentoo patch a candidate for fixing this? mike? rday ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |