[MacPorts] #37845: multilib support in gcc48

MacPorts noreply at macports.org
Wed Jan 30 05:36:55 PST 2013


#37845: multilib support in gcc48
---------------------+--------------------------------
 Reporter:  barto@…  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.1.2
 Keywords:  gcc      |       Port:
---------------------+--------------------------------
 I'm trying to compile code that must interact with a 3rd party 32 bit
 library, and I can't link it because -m32 is not supported in the latest
 gcc48 compiler.
 http://www.spinics.net/lists/gcchelp/msg36767.html indicates that when
 compiling and the error about 128 bit support appears it is due to not
 enabling multilib. Checking the specs on gcc48 shows:
 nomultidefs
 and multilib is empty for all instances

 *multilib:
 . ;
 *multilib_defaults:
 *multilib_extra:
 *multilib_matches:
 *multilib_exclusions:
 *multilib_options:
 *multilib_reuse:

 When linking for 32 bits I get the following error:

 linking libmvpgemcomm32.so.7.0.0
 ld: warning: ignoring file /opt/local/lib/gcc48/libstdc++.dylib, 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 6 0x 0 0x 0 0x 0 ) which is not the architecture
 being linked (i386): /opt/local/lib/gcc48/libstdc++.dylib

 The code I'm using requires (now) the gcc std=c++11 code (mutex,
 condition_variable, futures, etc) so I can't use the older clang compiler.
 Any suggestions on getting 32 bit support built into gcc48 from macports?

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


More information about the macports-tickets mailing list