[MacPorts] #27925: gcc45: g++ 4.5.2 64-bit linking error
MacPorts
noreply at macports.org
Wed Jan 12 04:59:21 PST 2011
#27925: gcc45: g++ 4.5.2 64-bit linking error
--------------------------------------------------------------------------------------+
Reporter: lowtech@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: gcc g++ 4.5.2 link libstdc++.dylib libgcc_ext.10.5.dylib libgcc.a 64-bit | Port: gcc45
--------------------------------------------------------------------------------------+
Comment(by lowtech@…):
Replying to [comment:3 jmr@…]:
> Did you install gcc45 with +universal? If not, you're not expected to be
able to build both 32- and 64-bit. What do you have build_arch set to? If
it's x86_64 and you didn't use +universal then the port has built for the
wrong arch for some reason, but if it's i386 then this is not a bug.
Found no build_arch setting in my macport.conf from 2007.
Seems the default is then i386 on leopard. Unfortunately didn't install
gcc45 with +universal.
Updated the port now with "sudo port upgrade --enforce-variants gcc45
+universal" and got this error:
{{{
---> Fetching gmp
---> Verifying checksum(s) for gmp
---> Extracting gmp
---> Applying patches to gmp
---> Configuring gmp
---> Building gmp
---> Staging gmp into destroot
---> Installing gmp @5.0.1_0+universal
---> Deactivating gmp @5.0.1_0
---> Activating gmp @5.0.1_0+universal
---> Cleaning gmp
---> Computing dependencies for gcc45
Error: Cannot install gcc45 for the arch(s) 'i386 x86_64' because
Error: its dependency gmp does not build for the required arch(s) by
default
Error: and the configured universal_archs 'i386 ppc' are not sufficient.
Error: Unable to upgrade port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>
}}}
'''Workaround''':
Adding "universal_archs x86_64 i386" to macports.conf and a second upgrade
run with "+universal" did resolve this. Linking 64-bit with gcc45 works
well now!
Thanks to jmr for helping, sorry for reporting this as bug.
--
Ticket URL: <https://trac.macports.org/ticket/27925#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list