This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: gcc 3.4.6: exception handling not working for binary pre-compiled on Redhat
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: "Gaurav Rastogi" <grastogi23 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 5 Oct 2007 10:23:31 +0100
- Subject: Re: gcc 3.4.6: exception handling not working for binary pre-compiled on Redhat
- References: <43402c6c0710041324wd260e9do5bdd060f0978b7b6@mail.gmail.com>
Gaurav Rastogi writes:
> Problem Synopsis:
> =================
>
> Exception handling in C++ not working when a binary is compiled
> against the standard Redhat release 4 update 4 that has gcc 3.4.6 and
> libstd++ 6.0.3, glibc 2.3.6 with NPTL threads library linked
> dynamically and run on a cross compiled environment that has the same
> gcc 3.4.6, glibc 2.3.6 and NTPL linked dynamically to /lib/tls/libc.
>
> In addition, problem does not happen if code is compiled with
> -static-libgcc option.
Which just about proves that your target libraries are not the same
ones that you cross-compiled against. Have a very good look at your
target's libgcc and the libgcc on your cross-compiling host and make
sure they are indeed the same. Also make sure the header files are
the same.
Andrew.