public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/30572]  New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
@ 2007-01-24  6:31 pinskia at gcc dot gnu dot org
  2007-01-24  6:32 ` [Bug target/30572] " pinskia at gcc dot gnu dot org
                   ` (26 more replies)
  0 siblings, 27 replies; 28+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-24  6:31 UTC (permalink / raw)
  To: gcc-bugs

I don't know when this broke but this has been here between 
http://gcc.gnu.org/ml/gcc-testresults/2007-01/msg00121.html (rev 120402)
and
http://gcc.gnu.org/ml/gcc-testresults/2007-01/msg00134.html (rev 120429)

For some reason I think this was caused by the toplevel libgcc which was
introduced inbetween those revisions.  Also I thought I tested toplevel libgcc
on ppc-darwin with getting no failures.


-- 
           Summary: [4.3 Regression] libstdc++ links against
                    /libgcc_s.1.dylib instead of
                    $(prefix)/lib/libgcc_s.1.dylib
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc-darwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
@ 2007-01-24  6:32 ` pinskia at gcc dot gnu dot org
  2007-01-24  6:35 ` pinskia at gcc dot gnu dot org
                   ` (25 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-24  6:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
  2007-01-24  6:32 ` [Bug target/30572] " pinskia at gcc dot gnu dot org
@ 2007-01-24  6:35 ` pinskia at gcc dot gnu dot org
  2007-01-24  6:40 ` echristo at apple dot com
                   ` (24 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-24  6:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-01-24 06:35 -------
libgcc_s.1.dylib has the correct install name as far as I can tell (otool -L
output):
libgcc_s.1.dylib:
        /Users/pinskia/gcc-trunk-java/lib/libgcc_s.1.dylib (compatibility
version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.6)


libstdc++6.dylib output:
otool -L libstdc++.6.dylib
libstdc++.6.dylib:
        /Users/pinskia/gcc-trunk-java/lib/libstdc++.6.dylib (compatibility
version 7.0.0, current version 7.10.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.6)
        /libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
  2007-01-24  6:32 ` [Bug target/30572] " pinskia at gcc dot gnu dot org
  2007-01-24  6:35 ` pinskia at gcc dot gnu dot org
@ 2007-01-24  6:40 ` echristo at apple dot com
  2007-01-24 18:57 ` echristo at apple dot com
                   ` (23 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: echristo at apple dot com @ 2007-01-24  6:40 UTC (permalink / raw)
  To: gcc-bugs



-- 

echristo at apple dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |echristo at apple dot com
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-01-24 06:40:46
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-01-24  6:40 ` echristo at apple dot com
@ 2007-01-24 18:57 ` echristo at apple dot com
  2007-04-18 17:44 ` echristo at apple dot com
                   ` (22 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: echristo at apple dot com @ 2007-01-24 18:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from echristo at apple dot com  2007-01-24 18:56 -------
I looked at this a bit last night and I'm mystified. I'll look more after this
weekend.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-01-24 18:57 ` echristo at apple dot com
@ 2007-04-18 17:44 ` echristo at apple dot com
  2007-06-09 18:55 ` pinskia at gcc dot gnu dot org
                   ` (21 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: echristo at apple dot com @ 2007-04-18 17:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from echristo at apple dot com  2007-04-18 18:44 -------
As a note, this is due to the make install bit of libgcc when putting things
back into the gcc build dir we set $(slibdir) to null and then the darwin
install name ends up being set to $(slibdir)/libgcc_s.1.dylib which ends up
being /libgcc_s.1.dylib.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-04-18 17:44 ` echristo at apple dot com
@ 2007-06-09 18:55 ` pinskia at gcc dot gnu dot org
  2007-06-29 17:51 ` [Bug target/30572] [4.3 Regression] target libraries " mmitchel at gcc dot gnu dot org
                   ` (20 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-09 18:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-06-09 18:55 -------
*** Bug 32255 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dir at lanl dot gov


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-06-09 18:55 ` pinskia at gcc dot gnu dot org
@ 2007-06-29 17:51 ` mmitchel at gcc dot gnu dot org
  2007-08-20  9:13 ` pinskia at gcc dot gnu dot org
                   ` (19 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-06-29 17:51 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-06-29 17:51 ` [Bug target/30572] [4.3 Regression] target libraries " mmitchel at gcc dot gnu dot org
@ 2007-08-20  9:13 ` pinskia at gcc dot gnu dot org
  2007-08-20 17:11 ` echristo at apple dot com
                   ` (18 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-20  9:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2007-08-20 09:13 -------
Any news on this?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2007-01-24 06:40:46         |2007-08-20 09:13:25
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-08-20  9:13 ` pinskia at gcc dot gnu dot org
@ 2007-08-20 17:11 ` echristo at apple dot com
  2007-10-28  4:31 ` pinskia at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: echristo at apple dot com @ 2007-08-20 17:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from echristo at apple dot com  2007-08-20 17:11 -------
No, I spoke to Daniel about it a while back, but he hasn't had time to look
into it. It's definitely caused by the toplevel changes to libgcc. The basic
idea is that the toplevel makefile re-installs libgcc into the gcc directory
for some reason causing a relink of libgcc and since the is null the installed
libgcc gets an install name of /libgcc_s.1.dylib. This is then used with
libstdc++. When it's installed it is _again_ relinked and then has the proper
install_name, but this won't fix the problem that libstdc++ has since it's
already been linked in.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-08-20 17:11 ` echristo at apple dot com
@ 2007-10-28  4:31 ` pinskia at gcc dot gnu dot org
  2007-10-31 22:00 ` pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-10-28  4:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-10-28 04:31 -------
This also happens on x86-darwin.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|powerpc-darwin              |*-darwin*
   Last reconfirmed|2007-08-20 09:13:25         |2007-10-28 04:31:04
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2007-10-28  4:31 ` pinskia at gcc dot gnu dot org
@ 2007-10-31 22:00 ` pinskia at gcc dot gnu dot org
  2007-11-01 17:09 ` echristo at apple dot com
                   ` (15 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-10-31 22:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2007-10-31 22:00 -------
Couldn't we use install_name_tool before installing the binary to fix up the
install name?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2007-10-31 22:00 ` pinskia at gcc dot gnu dot org
@ 2007-11-01 17:09 ` echristo at apple dot com
  2007-11-18 20:06 ` pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: echristo at apple dot com @ 2007-11-01 17:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from echristo at apple dot com  2007-11-01 17:09 -------
I guess that would be a good workaround.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2007-11-01 17:09 ` echristo at apple dot com
@ 2007-11-18 20:06 ` pinskia at gcc dot gnu dot org
  2007-11-25  4:10 ` fang at csl dot cornell dot edu
                   ` (13 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-18 20:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2007-11-18 20:06 -------
*** Bug 34142 has been marked as a duplicate of this bug. ***


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2007-11-18 20:06 ` pinskia at gcc dot gnu dot org
@ 2007-11-25  4:10 ` fang at csl dot cornell dot edu
  2007-11-28  9:19 ` ek dot kato at gmail dot com
                   ` (12 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: fang at csl dot cornell dot edu @ 2007-11-25  4:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from fang at csl dot cornell dot edu  2007-11-25 04:10 -------
*nudge* (got patch?)

Also, is there a "make installcheck" mechanism in place to automatically test
installed builds?  
It wouldn't have to be very extensive, just enough to make sure each supported
language at least compiles and links, which would catch installation breakages
such as this.  

Just an idea.  


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2007-11-25  4:10 ` fang at csl dot cornell dot edu
@ 2007-11-28  9:19 ` ek dot kato at gmail dot com
  2007-11-29  9:08 ` ek dot kato at gmail dot com
                   ` (11 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: ek dot kato at gmail dot com @ 2007-11-28  9:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from ek dot kato at gmail dot com  2007-11-28 09:19 -------
Hi,

I encountered this problem today, as I would like to use latest gfortran on Mac
OS X 10.4.11.

Anyway here is the crude workaround to avoid the install name problem.  It just
install libgcc_s.*.dylib with slibdir defiend, and then move them to the
$(gcc_objdir) later.

Index: libgcc/Makefile.in
===================================================================
--- libgcc/Makefile.in  (revision 130489)
+++ libgcc/Makefile.in  (working copy)
@@ -100,8 +100,13 @@
        # in-tree libraries, and DejaGNU) know about the layout
        # of the build tree, for now.
        $(MAKE) install DESTDIR=$(gcc_objdir) \
-         slibdir= libsubdir= MULTIOSDIR=$(MULTIDIR)
+         slibdir=$(slibdir) libsubdir= MULTIOSDIR=$(MULTIDIR)

+       objdir="$(gcc_objdir)/$(slibdir)";                      \
+       if test -d "$$objdir"; then                             \
+         mv -f $$objdir/libgcc_s.* $(gcc_objdir)/;             \
+       fi;                                                     \
+
 .PHONY: all-multi
 all-multi:
        # If this is the top-level multilib, build all the other


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2007-11-28  9:19 ` ek dot kato at gmail dot com
@ 2007-11-29  9:08 ` ek dot kato at gmail dot com
  2007-12-16 21:52 ` howarth at nitro dot med dot uc dot edu
                   ` (10 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: ek dot kato at gmail dot com @ 2007-11-29  9:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from ek dot kato at gmail dot com  2007-11-29 09:08 -------
Oops, I noticed the diff sent yesterday was broken.  Here is the correct one
for the workaround.


Index: libgcc/Makefile.in
===================================================================
--- libgcc/Makefile.in  (revision 130508)
+++ libgcc/Makefile.in  (working copy)
@@ -100,8 +100,17 @@
        # in-tree libraries, and DejaGNU) know about the layout
        # of the build tree, for now.
        $(MAKE) install DESTDIR=$(gcc_objdir) \
-         slibdir= libsubdir= MULTIOSDIR=$(MULTIDIR)
+         slibdir=$(slibdir) libsubdir= MULTIOSDIR=$(MULTIDIR)

+       objdir="$(gcc_objdir)/$(slibdir)";              \
+       if test -d $$objdir; then                       \
+         for file in $$objdir/libgcc_s*; do            \
+           if test -f $$file -o -L $$file; then        \
+             mv -f $$file $(gcc_objdir)/;              \
+           fi;                                         \
+         done;                                         \
+       fi
+
 .PHONY: all-multi
 all-multi:
        # If this is the top-level multilib, build all the other


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2007-11-29  9:08 ` ek dot kato at gmail dot com
@ 2007-12-16 21:52 ` howarth at nitro dot med dot uc dot edu
  2007-12-17  2:02 ` ek dot kato at gmail dot com
                   ` (9 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-12-16 21:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from howarth at nitro dot med dot uc dot edu  2007-12-16 21:52 -------
Etsushi,
     Your last patch doesn't do the right thing for the x86_64 multilib. The
shared libraries in...

/sw/lib/gcc4.3/lib/x86_64

...are linked to /sw/lib/gcc4.3/lib/libgcc_s.1.dylib instead of the desired
/sw/lib/gcc4.3/lib/x86_64/libgcc_s.1.dylib.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (16 preceding siblings ...)
  2007-12-16 21:52 ` howarth at nitro dot med dot uc dot edu
@ 2007-12-17  2:02 ` ek dot kato at gmail dot com
  2007-12-17  2:55 ` howarth at nitro dot med dot uc dot edu
                   ` (8 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: ek dot kato at gmail dot com @ 2007-12-17  2:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from ek dot kato at gmail dot com  2007-12-17 02:02 -------
(In reply to comment #14)
> Etsushi,
>      Your last patch doesn't do the right thing for the x86_64 multilib. The
> shared libraries in...
> 
> /sw/lib/gcc4.3/lib/x86_64
> 
> ...are linked to /sw/lib/gcc4.3/lib/libgcc_s.1.dylib instead of the desired
> /sw/lib/gcc4.3/lib/x86_64/libgcc_s.1.dylib.

Since /sw/lib/gcc4.3/lib/libgcc_s.1.dylib is a binary with 2 architectures
(i386 and x86_64 in my case; see below), I think it should work and the links
are intended one, which is not related the last patch.

$ file /sw/lib/gcc4.3/lib/libgcc_s.1.dylib
/sw/lib/gcc4.3/lib/libgcc_s.1.dylib: Mach-O universal binary with 2
architectures
/sw/lib/gcc4.3/lib/libgcc_s.1.dylib (for architecture i386):    Mach-O
dynamically linked shared library i386
/sw/lib/gcc4.3/lib/libgcc_s.1.dylib (for architecture x86_64):  Mach-O 64-bit
dynamically linked shared library x86_64


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (17 preceding siblings ...)
  2007-12-17  2:02 ` ek dot kato at gmail dot com
@ 2007-12-17  2:55 ` howarth at nitro dot med dot uc dot edu
  2007-12-17 23:26 ` echristo at apple dot com
                   ` (7 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-12-17  2:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from howarth at nitro dot med dot uc dot edu  2007-12-17 02:55 -------
My mistake. I had forgotten to check the contents of the binaries.

Eric,
    Shouldn't this go into gcc trunk (with perhaps a TODO comment that a
cleaner approach should replace it)?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (18 preceding siblings ...)
  2007-12-17  2:55 ` howarth at nitro dot med dot uc dot edu
@ 2007-12-17 23:26 ` echristo at apple dot com
  2007-12-18  0:23 ` howarth at nitro dot med dot uc dot edu
                   ` (6 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: echristo at apple dot com @ 2007-12-17 23:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from echristo at apple dot com  2007-12-17 23:25 -------
I rather like this patch... someone should ping Paolo about it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (19 preceding siblings ...)
  2007-12-17 23:26 ` echristo at apple dot com
@ 2007-12-18  0:23 ` howarth at nitro dot med dot uc dot edu
  2007-12-18  2:20 ` ek dot kato at gmail dot com
                   ` (5 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-12-18  0:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from howarth at nitro dot med dot uc dot edu  2007-12-18 00:23 -------
Etsushi,
     Why don't you go ahead and submit your patch with a ChangeLog entry to the
gcc-patches mailing list.? It is under the limit of lines for patches without
FSF paperwork (in case you don't have any).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (20 preceding siblings ...)
  2007-12-18  0:23 ` howarth at nitro dot med dot uc dot edu
@ 2007-12-18  2:20 ` ek dot kato at gmail dot com
  2007-12-18  8:35 ` bonzini at gnu dot org
                   ` (4 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: ek dot kato at gmail dot com @ 2007-12-18  2:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from ek dot kato at gmail dot com  2007-12-18 02:20 -------
OK.  I've just sent a mail to gcc-patches.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (21 preceding siblings ...)
  2007-12-18  2:20 ` ek dot kato at gmail dot com
@ 2007-12-18  8:35 ` bonzini at gnu dot org
  2007-12-19  4:38 ` howarth at nitro dot med dot uc dot edu
                   ` (3 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: bonzini at gnu dot org @ 2007-12-18  8:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #20 from bonzini at gnu dot org  2007-12-18 08:35 -------
Eric, would you please take a look at my counter-proposal and commit it if it
works?


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bonzini at gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (22 preceding siblings ...)
  2007-12-18  8:35 ` bonzini at gnu dot org
@ 2007-12-19  4:38 ` howarth at nitro dot med dot uc dot edu
  2007-12-19 14:29 ` bonzini at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  26 siblings, 0 replies; 28+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-12-19  4:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #21 from howarth at nitro dot med dot uc dot edu  2007-12-19 04:38 -------
The counter proposal doesn't work. It produces...

[Macintosh:darwin_objdir/i686-apple-darwin9/libgcc] howarth% otool -L
libgcc_s.1.dylib
libgcc_s.1.dylib:
        @slibdir@/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 111.0.0)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (23 preceding siblings ...)
  2007-12-19  4:38 ` howarth at nitro dot med dot uc dot edu
@ 2007-12-19 14:29 ` bonzini at gcc dot gnu dot org
  2007-12-19 14:48 ` jakub at gcc dot gnu dot org
  2008-02-29 14:07 ` howarth at nitro dot med dot uc dot edu
  26 siblings, 0 replies; 28+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2007-12-19 14:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #22 from bonzini at gnu dot org  2007-12-19 14:28 -------
Subject: Bug 30572

Author: bonzini
Date: Wed Dec 19 14:28:32 2007
New Revision: 131062

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131062
Log:
2007-12-19  Etsushi Kato  <ek.kato@gmail.com>
            Paolo Bonzini  <bonzini@gnu.org>

        PR target/30572
        * Makefile.in: Use @shlib_slibdir@ substitution to get correct install
name
        on darwin.
        * config/t-slibgcc-darwin: Use @shlib_slibdir@ for -install_name.


Modified:
    trunk/libgcc/ChangeLog
    trunk/libgcc/Makefile.in
    trunk/libgcc/config/t-slibgcc-darwin


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (24 preceding siblings ...)
  2007-12-19 14:29 ` bonzini at gcc dot gnu dot org
@ 2007-12-19 14:48 ` jakub at gcc dot gnu dot org
  2008-02-29 14:07 ` howarth at nitro dot med dot uc dot edu
  26 siblings, 0 replies; 28+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-12-19 14:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #23 from jakub at gcc dot gnu dot org  2007-12-19 14:48 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

* [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib
  2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
                   ` (25 preceding siblings ...)
  2007-12-19 14:48 ` jakub at gcc dot gnu dot org
@ 2008-02-29 14:07 ` howarth at nitro dot med dot uc dot edu
  26 siblings, 0 replies; 28+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-02-29 14:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #24 from howarth at nitro dot med dot uc dot edu  2008-02-29 14:06 -------
Jakub,
    I think your fix to this PR could be the cause of
PR 35401. All of gcc 4.3.0's shared libraries are being
linked against the system libgcc in /usr/lib on darwin
rather than the libgcc built and installed by gcc 4.3.0
(in say /sw/lib/gcc4.3/lib for instance).
                        Jack


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2008-02-29 14:07 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-24  6:31 [Bug target/30572] New: [4.3 Regression] libstdc++ links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib pinskia at gcc dot gnu dot org
2007-01-24  6:32 ` [Bug target/30572] " pinskia at gcc dot gnu dot org
2007-01-24  6:35 ` pinskia at gcc dot gnu dot org
2007-01-24  6:40 ` echristo at apple dot com
2007-01-24 18:57 ` echristo at apple dot com
2007-04-18 17:44 ` echristo at apple dot com
2007-06-09 18:55 ` pinskia at gcc dot gnu dot org
2007-06-29 17:51 ` [Bug target/30572] [4.3 Regression] target libraries " mmitchel at gcc dot gnu dot org
2007-08-20  9:13 ` pinskia at gcc dot gnu dot org
2007-08-20 17:11 ` echristo at apple dot com
2007-10-28  4:31 ` pinskia at gcc dot gnu dot org
2007-10-31 22:00 ` pinskia at gcc dot gnu dot org
2007-11-01 17:09 ` echristo at apple dot com
2007-11-18 20:06 ` pinskia at gcc dot gnu dot org
2007-11-25  4:10 ` fang at csl dot cornell dot edu
2007-11-28  9:19 ` ek dot kato at gmail dot com
2007-11-29  9:08 ` ek dot kato at gmail dot com
2007-12-16 21:52 ` howarth at nitro dot med dot uc dot edu
2007-12-17  2:02 ` ek dot kato at gmail dot com
2007-12-17  2:55 ` howarth at nitro dot med dot uc dot edu
2007-12-17 23:26 ` echristo at apple dot com
2007-12-18  0:23 ` howarth at nitro dot med dot uc dot edu
2007-12-18  2:20 ` ek dot kato at gmail dot com
2007-12-18  8:35 ` bonzini at gnu dot org
2007-12-19  4:38 ` howarth at nitro dot med dot uc dot edu
2007-12-19 14:29 ` bonzini at gcc dot gnu dot org
2007-12-19 14:48 ` jakub at gcc dot gnu dot org
2008-02-29 14:07 ` howarth at nitro dot med dot uc dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).