"configure: error: the compiler must support C cleanup handling"
Dave Korn
dave.korn@artimi.com
Fri Oct 28 18:51:00 GMT 2005
Robert P. J. Day wrote:
> 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.
[ Caveat here: I don't use glibc much myself, so this is generic advice. ]
> 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")
Why, if you are trying to build a non-thread-supporting libc, are you not
using --enable-threads=no? Re your earlier post, it's probably not enough to
simply "not select" thread support; the default may well be "enabled".
> 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
But doesn't that mean you're now trying to build it _with_ threads?
> step for the glibc headers, and re-run the build from scratch, at
> which point i get:
> checking for C cleanup handling... no
> configure: error: the compiler must support C cleanup handling
> make[1]: ***
Hmm. Maybe this is the kind of thing the --disable-sanity-checks option is
about?
> "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?
Well, what version of the compiler are you using? Does it support cleanup
handling or not? Maybe you need a more recent gcc.
cheers,
DaveK
--
Can't think of a witty .sigline today....
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list