[MacPorts] #36026: gcc46 problem after ld64 upgrade

MacPorts noreply at macports.org
Thu Sep 6 21:03:33 PDT 2012


#36026: gcc46 problem after ld64 upgrade
----------------------------------+-----------------------------------------
 Reporter:  jwhowse4@…            |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  ports                 |     Version:  2.1.2                                
 Keywords:                        |        Port:                                       
----------------------------------+-----------------------------------------
 I am running Lion 10.7.4 and Xcode 4.4.1.  After the recent upgrade of
 ld64 to 133.3 I received the following compile error using gcc46 on a
 piece of my own code.

 ld: warning: ignoring file main_bst_ddkc_sup_tf.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): main_bst_ddkc_sup_tf.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
 make: *** [sup_tf_ddkc] Error 1

 This same code had compiled prior to the ld64 update.

 So I tried recompiling the gcc46 port and it failed leaving the attached
 log file.  I then tried replacing the linker ld from the ld64 port with
 the apple linker from Xcode 4.4.1 and the gcc46 port compiled just fine.
 Furthermore this new gcc46 compiled my code without the above error.

 Additionally since the ld64 port upgrade the pgplot port with the +gcc46
 option has failed to compile leaving the attached log file.

 In short I suspect there is something wrong with the current ld64 port,
 but I am not sure how to fix it.  Any help would be appreciated.

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


More information about the macports-tickets mailing list