[MacPorts] #29915: swig-python, swig, pcre architecture problem...? when installing py26-sfepy
#29915: swig-python, swig, pcre architecture problem...? when installing py26-sfepy ---------------------------------------------------------------+------------ Reporter: eugene.geis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: swig-python, pcre, swig, py26-sfepy, snow leopard | Port: swig-python ---------------------------------------------------------------+------------ 2007 MacBook Pro 2.2 GHz Intel Core 2 Duo Newly installed Snow Leopard MacPorts 1.9.2 Attempted to install py26-sfepy... package dependencies begin... gettext gives me an issue with architecture... I change to +universal variant for gettext and it works... Then gcc44 gives me another architecture problem. I change the macports.conf file to default "i386" instead of "x86_64"... and I change universal binding to "i386 x86_64" instead of the original "i386 ppc". gcc44 now compiles. Then I get to swig-python. Main clues in the logfile are as follows (STILL ARCHITECTURE!!): info:build ld: warning: in /opt/local/lib/libpcre.dylib, file is not of required architecture :info:build Undefined symbols: :info:build "_pcre_version", referenced from: :info:build _Swig_pcre_version in misc.o :info:build "_pcre_compile", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build "_pcre_free", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build "_pcre_exec", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build ld: symbol(s) not found :info:build collect2: ld returned 1 exit status :info:build make[2]: *** [eswig] Error 1 :info:build make[1]: *** [all] Error 2 :info:build make: *** [source] Error 2 HELP! -- Ticket URL: <https://trac.macports.org/ticket/29915> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29915: swig-python, swig, pcre architecture problem...? when installing py26-sfepy ---------------------------------------------------------------+------------ Reporter: eugene.geis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: swig-python, pcre, swig, py26-sfepy, snow leopard | Port: swig-python ---------------------------------------------------------------+------------ Description changed by ryandesign@…: Old description:
2007 MacBook Pro 2.2 GHz Intel Core 2 Duo Newly installed Snow Leopard MacPorts 1.9.2
Attempted to install py26-sfepy... package dependencies begin... gettext gives me an issue with architecture...
I change to +universal variant for gettext and it works...
Then gcc44 gives me another architecture problem. I change the macports.conf file to default "i386" instead of "x86_64"... and I change universal binding to "i386 x86_64" instead of the original "i386 ppc". gcc44 now compiles.
Then I get to swig-python. Main clues in the logfile are as follows (STILL ARCHITECTURE!!): info:build ld: warning: in /opt/local/lib/libpcre.dylib, file is not of required architecture :info:build Undefined symbols: :info:build "_pcre_version", referenced from: :info:build _Swig_pcre_version in misc.o :info:build "_pcre_compile", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build "_pcre_free", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build "_pcre_exec", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build ld: symbol(s) not found :info:build collect2: ld returned 1 exit status :info:build make[2]: *** [eswig] Error 1 :info:build make[1]: *** [all] Error 2 :info:build make: *** [source] Error 2
HELP!
New description: * 2007 MacBook Pro * 2.2 GHz Intel Core 2 Duo * Newly installed Snow Leopard * MacPorts 1.9.2 Attempted to install py26-sfepy... package dependencies begin... gettext gives me an issue with architecture... I change to +universal variant for gettext and it works... Then gcc44 gives me another architecture problem. I change the macports.conf file to default "i386" instead of "x86_64"... and I change universal binding to "i386 x86_64" instead of the original "i386 ppc". gcc44 now compiles. Then I get to swig-python. Main clues in the logfile are as follows (STILL ARCHITECTURE!!): {{{ info:build ld: warning: in /opt/local/lib/libpcre.dylib, file is not of required architecture :info:build Undefined symbols: :info:build "_pcre_version", referenced from: :info:build _Swig_pcre_version in misc.o :info:build "_pcre_compile", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build "_pcre_free", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build "_pcre_exec", referenced from: :info:build _Swig_string_regex in misc.o :info:build _Swig_name_regexmatch_value in naming.o :info:build ld: symbol(s) not found :info:build collect2: ld returned 1 exit status :info:build make[2]: *** [eswig] Error 1 :info:build make[1]: *** [all] Error 2 :info:build make: *** [source] Error 2 }}} HELP! -- -- Ticket URL: <https://trac.macports.org/ticket/29915#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29915: swig-python, swig, pcre architecture problem...? when installing py26-sfepy ---------------------------------------------------------------+------------ Reporter: eugene.geis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: swig-python, pcre, swig, py26-sfepy, snow leopard | Port: swig-python ---------------------------------------------------------------+------------ Comment(by ryandesign@…): Replying to [ticket:29915 eugene.geis@…]:
I change the macports.conf file to default "i386" instead of "x86_64"... and I change universal binding to "i386 x86_64" instead of the original "i386 ppc". gcc44 now compiles.
Actually the default build_arch on Snow Leopard on 64-bit capable machines like your MacBook Pro Core 2 Duo is x86_64, and the default universal_archs on Snow Leopard is i386 x86_64. If your build_arch was i386 and your universal_archs was i386 ppc, then it's probably because you migrated this MacPorts from a previous OS version; see [wiki:Migration] for the steps you need to take. You should spend some time comparing each line of macports.conf, and adopting every change from the corresponding line of macports.conf.default in the same directory, unless you know of a specific reason not to. The inability for gcc ports to build for non-default build_arch is already known and filed as #28376. -- Ticket URL: <https://trac.macports.org/ticket/29915#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29915: swig-python, swig, pcre architecture problem...? when installing py26-sfepy ---------------------------------------------------------------+------------ Reporter: eugene.geis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: swig-python, pcre, swig, py26-sfepy, snow leopard | Port: swig-python ---------------------------------------------------------------+------------ Comment(by eugene.geis@…): I commented out the build_arch line and I changed the order of the universal_arch flags from "i386 x86_64" to "x86_64 i386" to concur with the macports.conf.default file. It worked. -- Ticket URL: <https://trac.macports.org/ticket/29915#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29915: swig-python, swig, pcre architecture problem...? when installing py26-sfepy ------------------------------------+--------------------------------------- Reporter: eugene.geis@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: swig-python, pcre, swig, py26-sfepy, snow leopard Port: swig-python | ------------------------------------+--------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/29915#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts