[MacPorts] #43737: ld64 @236.3_1 build failure with g++-4.2 on OS X 10.6.8

MacPorts noreply at macports.org
Sat May 24 06:05:02 PDT 2014


#43737: ld64 @236.3_1 build failure with g++-4.2 on OS X 10.6.8
-------------------------+------------------------
  Reporter:  mopihopi@…  |      Owner:  jeremyhu@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.2.1
Resolution:              |   Keywords:
      Port:  ld64        |
-------------------------+------------------------

Comment (by jdasmith@…):

 Hmm, I thought I had responded here, but perhaps I ended up doing so on
 one of the many duplicates.

 Given https://trac.macports.org/wiki/UsingTheRightCompiler to find the
 appropriate compilers:

 I have tried

 {{{
 lassi:~ jonny$ sudo port clean ld64
 Password:
 --->  Cleaning ld64
 lassi:~ jonny$ sudo port select --list gcc
 Available versions for gcc:
         apple-gcc42
         gcc40
         gcc42
         llvm-gcc42 (active)
         mp-gcc47
         none
 lassi:~ jonny$ sudo port upgrade ld64 configure.compiler=llvm-gcc-4.2
 --->  Computing dependencies for ld64
 --->  Fetching archive for ld64
 --->  Attempting to fetch ld64-236.3_1+llvm32.darwin_10.x86_64.tbz2 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/ld64
 --->  Attempting to fetch ld64-236.3_1+llvm32.darwin_10.x86_64.tbz2 from
 http://lil.fr.packages.macports.org/ld64
 --->  Attempting to fetch ld64-236.3_1+llvm32.darwin_10.x86_64.tbz2 from
 http://nue.de.packages.macports.org/macports/packages/ld64
 --->  Fetching distfiles for ld64
 --->  Verifying checksums for ld64
 --->  Extracting ld64
 --->  Applying patches to ld64
 --->  Configuring ld64
 --->  Building ld64
 Error: org.macports.build for port ld64 returned: command execution failed
 Please see the log file for port ld64 for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.
 org_release_tarballs_ports_devel_ld64/ld64/main.log
 Error: Unable to upgrade port: 1
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets

 lassi:~ jonny$ cat
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64/main.log
 | grep -i error
 :debug:archivefetch Fetching archive failed:: The requested URL returned
 error: 404
 :debug:archivefetch Fetching archive failed:: The requested URL returned
 error: 404
 :debug:archivefetch Fetching archive failed:: The requested URL returned
 error: 404
 :info:build src/ld/parsers/macho_relocatable_file.cpp:4484: error:
 ‘ld::Section’ is not a template
 :info:build src/ld/parsers/macho_relocatable_file.cpp:4504: error:
 ‘ld::Section’ is not a template
 :info:build src/ld/parsers/macho_relocatable_file.cpp:4512: error: ‘class
 ld::Section’ has no member named ‘machoSection’
 :info:build src/ld/parsers/macho_relocatable_file.cpp:4531: error:
 ‘ld::Section’ is not a template
 :info:build src/ld/parsers/macho_relocatable_file.cpp:6951: error: using
 ‘typename’ outside of template
 :info:build make: *** [src/ld/parsers/macho_relocatable_file.o] Error 1
 :error:build org.macports.build for port ld64 returned: command execution
 failed
 :debug:build Error code: CHILDSTATUS 25082 2
 }}}

 I have additionally tried setting gcc to the other compilers listed here,
 cleaning, then setting macports to build ld64 with the configure.compiler
 set (except apple, which I tried to build, but only got half way because
 it needed ld64)

 There is only the one ld64 showing in macports, so I think no macports
 user option to downgrade to get a snow leopard system working again. I'm
 happy to try any suggestions.

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


More information about the macports-tickets mailing list