Opened 12 years ago

Last modified 11 years ago

#37845 closed defect

multilib support in gcc48 — at Initial Version

Reported by: barto@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: gcc48

Description

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?

Change History (0)

Note: See TracTickets for help on using tickets.