[MacPorts] #37845: multilib support in gcc48
#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
#37845: gcc48: multilib support ----------------------+------------------- Reporter: barto@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc48 | ----------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mww@… * keywords: gcc => * port: => gcc48 Old 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?
New 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? -- -- Ticket URL: <https://trac.macports.org/ticket/37845#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37845: gcc48: multilib support ----------------------+------------------- Reporter: barto@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc48 | ----------------------+------------------- Changes (by macsforever2000@…): * cc: jeremyhu@… (added) -- Ticket URL: <https://trac.macports.org/ticket/37845#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37845: gcc48: multilib support ----------------------+------------------- Reporter: barto@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc48 | ----------------------+------------------- Comment (by jmr@…): Installing gcc with +universal will get you a multilib build (#22116). Cf. #37463, #30240. -- Ticket URL: <https://trac.macports.org/ticket/37845#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37845: gcc48: multilib support -------------------------+-------------------- Reporter: barto@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: worksforme | Keywords: Port: gcc48 | -------------------------+-------------------- Changes (by jeremyhu@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/37845#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts