[MacPorts] #49764: babl @0.1.14 should not require clang-3.4

MacPorts noreply at macports.org
Wed Nov 25 07:49:27 PST 2015


#49764: babl @0.1.14 should not require clang-3.4
--------------------------+----------------------
  Reporter:  braumann@…   |      Owner:  devans@…
      Type:  enhancement  |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  powerpc
      Port:  babl         |
--------------------------+----------------------

Comment (by braumann@…):

 > Try using llvm-3.5 or newer on your SL box. Make sure you have the
 +ld64_127 variant for ld64 installed or your linker won't support ppc.
 Oh, I was not aware of variants of ld64. Thanks for this advice, and with
 the preset +ld64_136  the linker says
 {{{
 ld: unknown/unsupported architecture name for: -arch ppc
 }}}

 What is also decisive is the -mmacosx-version-min=10.5 for the compiler
 call, otherwise linking fails:

 {{{
 ld: symbol dyld_stub_binder not found (normally in libSystem.dylib).
 Needed to perform lazy binding to function _exit for architecture ppc
 }}}

 I can confirm now that this call works on 10.6.8 using Rosetta (also for
 mp-clang-3.7 and mp-clang-3.8, btw.):

 {{{
 printf '#include<stdio.h> \n int main(void) {fprintf(stderr,"Hello,
 world\\n");}' | clang-mp-3.6 -arch ppc -mmacosx-version-min=10.5 -x c -o
 out.exe - && ./out.exe && rm -f out.exe
 }}}
 {{{
 ld: warning: ignoring file
 /opt/local/libexec/llvm-3.6/bin/../lib/clang/3.6.2/lib/darwin/libclang_rt.osx.a,
 missing required architecture ppc in file
 Hello, world
 }}}

 The warning concerning libclang_rt.osx.a providing nothing for ppc
 architecture might be another field of research.

 So, maybe I should try again to build clang-3.6 on PPC? But if I remember
 right, building is blocked on PPC, and it requires clang-3.4 (which
 possibly can be replaced with gcc-5)...

 In case it builds (I remember there was trouble, but forgot any details),
 do you think there is also something to modify for ld64 on PPC?

 Or should I first try to take explicitely -mmacosx-version-min=10.5 even
 for clang-3.4 on 10.5.8 PPC?

-- 
Ticket URL: <https://trac.macports.org/ticket/49764#comment:15>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list