Le 27/11/14 14:31, Alexander Pyhalov via illumos-discuss a écrit :
On 11/27/2014 16:20, Richard PALO via illumos-discuss wrote:
Le 27/11/14 12:52, Alexander Pyhalov via illumos-discuss a écrit :
Hello.
I have a strange core dump during cppunit test suite run.
Does someone else see it?
I've checked that my compiler can catch exceptions in 64-bit programs (I
mean it is not affected by
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 )
Any other ideas?
btw, did you patch libtool as needed to avoid "optimisation"?
Hi.
What patch do you speak about?
------------------>8
commit 525cddd2bcea4c565d6dd1d2d55dd1de1a476b67
Author: Rainer Orth <[email protected]>
Date: Sat Jan 18 10:07:52 2014 +1300
libtool: opt_duplicate_compiler_generated_deps is harmful on Solaris
Fix for http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452.
* build-aux/ltmain.in (libtool_validate_options): disable the
opt_duplicate_compiler_generated_deps optimization for Solaris2 so
that gcc-4.9+ compiled C++ code with -Wl,-Bdirect on 64-bit Solaris
x86 can avoid unwinding failures caused by accidental mixing of the
libc and libgcc_s unwinders in a single executable.
Signed-off-by: Gary V. Vaughan <[email protected]>
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index f452e54..3b4e6ec 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -497,7 +497,9 @@ libtool_validate_options ()
test : = "$debug_cmd" || func_append preserve_args " --debug"
case $host in
- *cygwin* | *mingw* | *pw32* | *cegcc*)
+ # Solaris2 added to fix
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
+ # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
+ *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2*)
# don't eliminate duplications in $postdeps and $predeps
opt_duplicate_compiler_generated_deps=:
;;
------------------>8
many packages include a version of ltmain.sh, I think cppunit is one, so
if you don't replace it then you may need to patch it as well.
for good measure as well, prior to gcc49, there was a bugfix to ro@'s
patch that should theoretically be applied in the gcc tree (that is, if
you backported):
------------------>8
diff --git a/lang/gcc47/patches/patch-libgcc_config_t-slibgcc-sld
b/lang/gcc47/patches/patch-libgcc_config_t-slibgcc-sld
index b7cd4f2..33c1f1b 100644
--- a/lang/gcc47/patches/patch-libgcc_config_t-slibgcc-sld
+++ b/lang/gcc47/patches/patch-libgcc_config_t-slibgcc-sld
@@ -1,12 +1,21 @@
$NetBSD: patch-libgcc_config_t-slibgcc-sld,v 1.1 2014/05/10 14:14:58
richard Exp $
+Backport from mainline
+ 2014-05-08 Rainer Orth <[email protected]>
+
+PR libgcc/61097
+ * config/t-slibgcc-sld: Only build and install libgcc-unwind.map
+ if --enable-shared.
+
--- libgcc/config/t-slibgcc-sld.orig 2011-06-01 14:39:17.000000000 +0000
+++ libgcc/config/t-slibgcc-sld
-@@ -3,3 +3,23 @@
+@@ -3,3 +3,27 @@
SHLIB_LDFLAGS = -Wl,-h,$(SHLIB_SONAME) -Wl,-z,text -Wl,-z,defs \
-Wl,-M,$(SHLIB_MAP)
+
++ifeq ($(enable_shared),yes)
++
+# Linker mapfile to enforce direct binding to libgcc_s unwinder
+# (PR target/59788).
+libgcc-unwind.map: libgcc-std.ver
@@ -26,3 +35,5 @@ $NetBSD: patch-libgcc_config_t-slibgcc-sld,v 1.1
2014/05/10 14:14:58 richard Exp
+ $(INSTALL_DATA) $< $(DESTDIR)$(slibdir)
+
+install: install-libgcc-unwind-map
++
++endif
------------------>8
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com