[MacPorts] #36221: ppl @1.0 cannot be configured on PPC Tiger because g++-apple-4.2 cannot find libstdc++

MacPorts noreply at macports.org
Fri Sep 21 02:03:41 PDT 2012


#36221: ppl @1.0 cannot be configured on PPC Tiger because g++-apple-4.2 cannot
find libstdc++
------------------------------+--------------------------------
  Reporter:  Peter_Dyballa@…  |      Owner:  macports-tickets@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.1.2
Resolution:                   |   Keywords:
      Port:  ppl              |
------------------------------+--------------------------------

Comment (by Peter_Dyballa@…):

 Replying to [comment:10 jeremyhu@…]:
 > That's not a new error.  That's exactly the same as your original error:
 > {{{
 > /usr/bin/ld: can't locate file for: -lstdc++
 > }}}
 >
 > For some reason, your /usr/lib/libstdc++.dylib seems to be messed up...

 If so, then possibly on all Mac OS X boxes…

 I have Tiger (Mac OS X 10.4.11) on an external disk which I can boot over
 FireWire. I have mounted that disk on my MacBook Pro right now. Here,
 locally, Snow Leopard/Mac OS X 10.6.8, with Rosetta, I can see:

 {{{
 -rw-r--r-- 1 root wheel 15262940 10. Mai 2010  /usr/lib/libstdc++-static.a
 -rwxr-xr-x 1 root wheel  2439888 18. Mai 2009
 /usr/lib/libstdc++.6.0.9.dylib
 lrwxr-xr-x 1 root wheel       21 19. Apr 17:29 /usr/lib/libstdc++.6.dylib
 -> libstdc++.6.0.9.dylib
 }}}

 and on Tiger:

 {{{
 -rw-r--r-- 1 pete pete 6766864 20. Apr 2007
 /Volumes/Tiger/usr/lib/libstdc++-static.a
 -rwxr-xr-x 1 pete pete 2267176  7. Mär 2009
 /Volumes/Tiger/usr/lib/libstdc++.6.0.3.dylib
 -rwxr-xr-x 1 pete pete 2001208 22. Okt 2009
 /Volumes/Tiger/usr/lib/libstdc++.6.0.4.dylib
 lrwxr-xr-x 1 pete pete      21 29. Nov 2009
 /Volumes/Tiger/usr/lib/libstdc++.6.dylib -> libstdc++.6.0.4.dylib
 }}}

 while in the SDKs I can see:

 {{{
 -rw-r--r-- 1 pete pete 1763196 20. Sep 2007
 /Volumes/Tiger/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/libstdc++-static.a
 -rwxr-xr-x 1 pete pete  946720 15. Sep 2006
 /Volumes/Tiger/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/libstdc++.6.0.3.dylib
 lrwxr-xr-x 1 pete pete      21 28. Nov 2009
 /Volumes/Tiger/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/libstdc++.6.dylib
 -> libstdc++.6.0.3.dylib
 lrwxr-xr-x 1 pete pete      21 28. Nov 2009
 /Volumes/Tiger/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/libstdc++.dylib ->
 libstdc++.6.0.3.dylib
 -rw-r--r-- 1 pete pete 2966776 20. Apr 2007
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/3.3/libstdc++.a
 -rw-r--r-- 1 pete pete 2966776 20. Apr 2007
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/3.3/libstdc++_ZeroLink.a
 -rw-r--r-- 1 pete pete 1688364 27. Mai 2005
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-
 darwin8/4.0.0/libstdc++.a
 lrwxr-xr-x 1 pete pete      26 28. Nov 2009
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-
 darwin8/4.0.0/libstdc++.dylib -> ../../../libstdc++.6.dylib
 lrwxr-xr-x 1 pete pete      26 28. Nov 2009
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-
 darwin8/4.0.1/libstdc++.dylib -> ../../../libstdc++.6.dylib
 -rw-r--r-- 1 pete pete 1789636 27. Mai 2005
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-
 darwin8/4.0.0/libstdc++.a
 lrwxr-xr-x 1 pete pete      26 28. Nov 2009
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-
 darwin8/4.0.0/libstdc++.dylib -> ../../../libstdc++.6.dylib
 lrwxr-xr-x 1 pete pete      26 28. Nov 2009
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-
 darwin8/4.0.1/libstdc++.dylib -> ../../../libstdc++.6.dylib
 -rw-r--r-- 1 pete pete 6766864 20. Apr 2007
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++-static.a
 -rwxr-xr-x 1 pete pete 1340048 13. Sep 2007
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.0.4.dylib
 lrwxr-xr-x 1 pete pete      21 28. Nov 2009
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.dylib ->
 libstdc++.6.0.4.dylib
 lrwxr-xr-x 1 pete pete      21 28. Nov 2009
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.dylib ->
 libstdc++.6.0.4.dylib
 }}}

 Here a symlink libstdc++.dylib exists while the system only has
 libstdc++.6.dylib. The file command tells:

 {{{
 /Volumes/Tiger/usr/lib/libstdc++-static.a:    Mach-O fat file with 4
 architectures
 /Volumes/Tiger/usr/lib/libstdc++-static.a (for architecture ppc):
 current ar archive
 /Volumes/Tiger/usr/lib/libstdc++-static.a (for architecture i386):
 current ar archive
 /Volumes/Tiger/usr/lib/libstdc++-static.a (for architecture ppc64):
 current ar archive
 /Volumes/Tiger/usr/lib/libstdc++-static.a (for architecture x86_64):
 current ar archive
 /Volumes/Tiger/usr/lib/libstdc++.6.0.3.dylib: Mach-O fat file with 2
 architectures
 /Volumes/Tiger/usr/lib/libstdc++.6.0.3.dylib (for architecture ppc64):
 Mach-O 64-bit dynamically linked shared library ppc64
 /Volumes/Tiger/usr/lib/libstdc++.6.0.3.dylib (for architecture ppc):
 Mach-O dynamically linked shared library ppc
 /Volumes/Tiger/usr/lib/libstdc++.6.0.4.dylib: Mach-O fat file with 2
 architectures
 /Volumes/Tiger/usr/lib/libstdc++.6.0.4.dylib (for architecture ppc64):
 Mach-O 64-bit dynamically linked shared library ppc64
 /Volumes/Tiger/usr/lib/libstdc++.6.0.4.dylib (for architecture ppc):
 Mach-O dynamically linked shared library ppc
 /Volumes/Tiger/usr/lib/libstdc++.6.dylib:     Mach-O fat file with 2
 architectures
 /Volumes/Tiger/usr/lib/libstdc++.6.dylib (for architecture ppc64):
 Mach-O 64-bit dynamically linked shared library ppc64
 /Volumes/Tiger/usr/lib/libstdc++.6.dylib (for architecture ppc):
 Mach-O dynamically linked shared library ppc
 }}}

 and

 {{{
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++-static.a:
 Mach-O fat file with 4 architectures
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++-static.a
 (for architecture ppc):        current ar archive
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++-static.a
 (for architecture i386):       current ar archive
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++-static.a
 (for architecture ppc64):      current ar archive
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++-static.a
 (for architecture x86_64):     current ar archive
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.0.4.dylib:
 Mach-O fat file with 4 architectures
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.0.4.dylib
 (for architecture ppc):     Mach-O filetype=9 ppc
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.0.4.dylib
 (for architecture i386):    Mach-O filetype=9 i386
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.0.4.dylib
 (for architecture ppc64):   Mach-O 64-bit dynamically linked shared
 library stub ppc64
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.0.4.dylib
 (for architecture x86_64):  Mach-O 64-bit dynamically linked shared
 library stub x86_64
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.dylib:
 Mach-O fat file with 4 architectures
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.dylib
 (for architecture ppc): Mach-O filetype=9 ppc
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.dylib
 (for architecture i386):        Mach-O filetype=9 i386
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.dylib
 (for architecture ppc64):       Mach-O 64-bit dynamically linked shared
 library stub ppc64
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.6.dylib
 (for architecture x86_64):      Mach-O 64-bit dynamically linked shared
 library stub x86_64
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.dylib:
 Mach-O fat file with 4 architectures
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.dylib (for
 architecture ppc):   Mach-O filetype=9 ppc
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.dylib (for
 architecture i386):  Mach-O filetype=9 i386
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.dylib (for
 architecture ppc64): Mach-O 64-bit dynamically linked shared library stub
 ppc64
 /Volumes/Tiger/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libstdc++.dylib (for
 architecture x86_64):        Mach-O 64-bit dynamically linked shared
 library stub x86_64
 }}}

 Lipo reports quite the same:

 {{{
 pete 473 /\ lipo -info /Volumes/Tiger/usr/lib/libstdc++*
 Architectures in the fat file: /Volumes/Tiger/usr/lib/libstdc++-static.a
 are: ppc i386 ppc64 x86_64
 Architectures in the fat file:
 /Volumes/Tiger/usr/lib/libstdc++.6.0.3.dylib are: ppc64 ppc
 Architectures in the fat file:
 /Volumes/Tiger/usr/lib/libstdc++.6.0.4.dylib are: ppc64 ppc
 Architectures in the fat file: /Volumes/Tiger/usr/lib/libstdc++.6.dylib
 are: ppc64 ppc
 }}}

 MacPorts on Tiger provides (ppc only):

 {{{
 pete 462 /\ find /Volumes/Tiger/opt/local -name "libstdc++*" -ls
 6768566     8864 -rwxr-xr-x    1 pete     pete      4537508  7 Mai 12:27
 /Volumes/Tiger/opt/local/lib/gcc43/libstdc++.6.dylib
 6768567    17728 -rw-r--r--    1 pete     pete      9074308  7 Mai 12:27
 /Volumes/Tiger/opt/local/lib/gcc43/libstdc++.a
 6768568        8 lrwxrwxrwx    1 pete     pete           17  7 Mai 13:12
 /Volumes/Tiger/opt/local/lib/gcc43/libstdc++.dylib -> libstdc++.6.dylib
 6768569        8 -rwxr-xr-x    1 pete     pete         1319  7 Mai 12:27
 /Volumes/Tiger/opt/local/lib/gcc43/libstdc++.la
 }}}

 Do I simply need to create a symlink libstdc++.dylib in /usr/lib ?

-- 
Ticket URL: <https://trac.macports.org/ticket/36221#comment:11>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list