[MacPorts] #36026: gcc46 problem after ld64 upgrade

MacPorts noreply at macports.org
Mon Sep 10 17:50:11 PDT 2012


#36026: gcc46 problem after ld64 upgrade
-----------------------------------+----------------------------------------
  Reporter:  jwhowse4@…            |       Owner:  macports-tickets@…                   
      Type:  defect                |      Status:  reopened                             
  Priority:  Normal                |   Milestone:                                       
 Component:  ports                 |     Version:  2.1.2                                
Resolution:                        |    Keywords:                                       
      Port:  ld64                  |  
-----------------------------------+----------------------------------------
Changes (by jwhowse4@…):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Replying to [comment:16 jeremyhu@…]:
 > I just rebuilt all of gcc4[345678] with the new ld64 in place, and they
 were able to build/link test applications just fine.
 >
 > The object file you provided above links just fine and produces an
 executable which prints:
 > {{{
 > 0.000000
 > 1.000000
 > 1.414214
 > 1.732051
 > 2.000000
 > }}}
 >
 > Based on comment #14, I've revbumped ld64 to force it to rebuild.
 cctools-headers and dyld-headers were pushed to svn after ld64 which would
 explain why I was not able to reproduce it but someone who built within
 that sliver of time would.  Sorry for that.
 >
 > I'm assuming that you rebuild ld64 without first syncing and upgrading
 the headers as the reason why you didn't report success in comment #15.
 >
 > r97646

 Unfortunately this solution does not work for me.  My attempt to link my
 simple code with the reinstalled ld64 linker gives the following error
 message.  I have tried uninstalling and reinstalling all the explicit
 dependencies of ld64 as well as ld64 with the same negative result.  Do
 you have any other suggestions?

 {{{
 gcc-mp-4.6 -o TstPrg test.o -lm
 ld: warning: ignoring file test.o, file was built for unsupported file
 format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1
 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64):
 test.o
 ld: file is universal (2 slices) but does not contain a(n) x86_64 slice:
 /usr/lib/crt1.10.5.o for architecture x86_64
 collect2: ld returned 1 exit status
 }}}

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


More information about the macports-tickets mailing list