GNU bug report logs - #16452
opt_duplicate_compiler_generated_deps is harmful on Solaris

Previous Next

Package: libtool;

Reported by: Rainer Orth <ro <at> CeBiTec.Uni-Bielefeld.DE>

Date: Wed, 15 Jan 2014 13:00:02 UTC

Severity: normal

Done: "Gary V. Vaughan" <gary <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16452 in the body.
You can then email your comments to 16452 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#16452; Package libtool. (Wed, 15 Jan 2014 13:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Rainer Orth <ro <at> CeBiTec.Uni-Bielefeld.DE>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Wed, 15 Jan 2014 13:00:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Rainer Orth <ro <at> CeBiTec.Uni-Bielefeld.DE>
To: bug-libtool <at> gnu.org
Subject: opt_duplicate_compiler_generated_deps is harmful on Solaris
Date: Wed, 15 Jan 2014 13:59:11 +0100
As described in GCC bug PR target/59788

	Mixing libc and libgcc_s unwinders on 64-bit Solaris 10+/x86 breaks EH
        http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788

linking e.g. C++ code with -Wl,-Bdirect on 64-bit Solaris 10+/x86 causes
unwinding failures caused by mixing the libc and libgcc_s unwinders in a
single executable.

I've fixed this by a patch to cause every shared object to be linked
with a mapfile to force direct binding to the libgcc_s unwinder,
avoiding the harmful mixing.  Unfortunately, for this change to work
requires to disable the opt_duplicate_compiler_generated_deps
optimization (included in that patch for the copy of libtool in the gcc
tree):

diff --git a/ltmain.sh b/ltmain.sh
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -976,7 +976,7 @@ func_enable_tag ()
 
 
   case $host in
-    *cygwin* | *mingw* | *pw32* | *cegcc*)
+    *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* )
       # don't eliminate duplications in $postdeps and $predeps
       opt_duplicate_compiler_generated_deps=:
       ;;

I think that patch should go into upstream libtool as well, although
this won't help for all the copies of libtool already included in
released packages.  As described in the PR, I'm uncertain how to move
forward here.  Suggestions?

Thanks.
        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University




Reply sent to "Gary V. Vaughan" <gary <at> gnu.org>:
You have taken responsibility. (Fri, 17 Jan 2014 21:19:02 GMT) Full text and rfc822 format available.

Notification sent to Rainer Orth <ro <at> CeBiTec.Uni-Bielefeld.DE>:
bug acknowledged by developer. (Fri, 17 Jan 2014 21:19:02 GMT) Full text and rfc822 format available.

Message #10 received at 16452-done <at> debbugs.gnu.org (full text, mbox):

From: "Gary V. Vaughan" <gary <at> gnu.org>
To: Rainer Orth <ro <at> CeBiTec.Uni-Bielefeld.DE>
Cc: 16452-done <at> debbugs.gnu.org, Libtool Patches List <libtool-patches <at> gnu.org>
Subject: Re: bug#16452: opt_duplicate_compiler_generated_deps is harmful on
 Solaris
Date: Sat, 18 Jan 2014 10:18:39 +1300
Hi Rainer,

On Jan 16, 2014, at 1:59 AM, Rainer Orth <ro <at> CeBiTec.Uni-Bielefeld.DE> wrote:
> diff --git a/ltmain.sh b/ltmain.sh
> --- a/ltmain.sh
> +++ b/ltmain.sh
> @@ -976,7 +976,7 @@ func_enable_tag ()
> 
> 
>   case $host in
> -    *cygwin* | *mingw* | *pw32* | *cegcc*)
> +    *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* )
>       # don't eliminate duplications in $postdeps and $predeps
>       opt_duplicate_compiler_generated_deps=:
>       ;;
> 
> I think that patch should go into upstream libtool as well, although
> this won't help for all the copies of libtool already included in
> released packages.  As described in the PR, I'm uncertain how to move
> forward here.  Suggestions?

I took the liberty of writing a ChangeLog on your behalf.

Pushed, this will be in the incoming release as long as testing doesn't find
any issues.  Thanks.

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)




Information forwarded to bug-libtool <at> gnu.org:
bug#16452; Package libtool. (Mon, 20 Jan 2014 12:32:01 GMT) Full text and rfc822 format available.

Message #13 received at 16452-done <at> debbugs.gnu.org (full text, mbox):

From: Rainer Orth <ro <at> CeBiTec.Uni-Bielefeld.DE>
To: "Gary V. Vaughan" <gary <at> gnu.org>
Cc: 16452-done <at> debbugs.gnu.org, Libtool Patches List <libtool-patches <at> gnu.org>
Subject: Re: bug#16452: opt_duplicate_compiler_generated_deps is harmful on
 Solaris
Date: Mon, 20 Jan 2014 13:31:23 +0100
Hi Gary,

> I took the liberty of writing a ChangeLog on your behalf.

I usually provide ChangeLog entries myself, but seeing there ins't a
ChangeLog in libtool anymore, I forgot to check the git log messages
instead.  Sorry about that.

> Pushed, this will be in the incoming release as long as testing doesn't find
> any issues.  Thanks.

Thanks for the quick turnaround.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 18 Feb 2014 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.