This is the mail archive of the 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]

"configure: error: the compiler must support C cleanup handling"

  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
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]: ***
Error 1
make[1]: Leaving directory
make: *** [install-headers] Error 2

  "the compiler must support C cleanup handling"?   a quick google
session brings me to this:

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?


Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]