-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/20/11 16:53, Uros Bizjak wrote:
> Hello!
> 
> For some reason bootstrap on Fedora 16 fails when compiling 32bit 
> libjava with undefined reference to `__cxa_call_unexpected':
This is (arguably) a glibc issue.  I'm still investigating.

Attached you'll find the hack from the gcc46 srpms we're using to work
around the problem right now.

jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOyc/PAAoJEBRtltQi2kC78UoH/RtKNZoNFxV0bkaaDzH5iTWs
QWIxLWc8i4cH+otvrGa7qSPnhdtjQ9dp/vsyc3lEz3NS60q/Up7zGeVZYrIGZtC/
eO36ygsd+OO+gsEiKFGEL94yzUWTkRhbsfUewz3VgrwKLwqALhy1zGQxAAq4QtJI
yhxbbJJUPz7qMaPJ7EHHSFy/ISjoKA3rjhRqqf9pgeoK8DmYGpSCD+ffJfUI3ohP
o18XAwI7BIU2u6pXolFPv4zKnOxASLhlJut8gF4Ty+WB2J58rg3YoyPtu9/625Wj
QzNp3eigBz1uq6uLKo6Mpn8drUgzspXAm+eSRnsrp+4u/J/gnoAbgNDe8m9Lwuk=
=/DjI
-----END PGP SIGNATURE-----
2011-10-27  Jakub Jelinek  <ja...@redhat.com>

        * prims.cc (__NO_CTYPE): For glibc define this before including
        ctype.h.

--- libjava/prims.cc    2009-04-28 06:02:30.000000000 +0200
+++ libjava/prims.cc    2011-10-27 12:57:42.748752380 +0200
@@ -38,6 +38,14 @@ details.  */
 #endif
 
 #ifndef DISABLE_GETENV_PROPERTIES
+#ifdef __GLIBC__
+/* glibc 2.15+ provides even for C++ inline optimized ::isspace etc.
+   Unfortunately those inlines are throw (), and call a function pointer
+   (which is throw () too, but with -fnon-call-exceptions this results
+   in a __cxa_call_unexpected call.  This macro disables the optimized
+   version.  */
+#define __NO_CTYPE 1
+#endif
 #include <ctype.h>
 #include <java-props.h>
 #define PROCESS_GCJ_PROPERTIES process_gcj_properties()

Reply via email to