Opened 13 years ago

Closed 13 years ago

Last modified 8 years ago

#29915 closed defect (worksforme)

swig-python, swig, pcre architecture problem...? when installing py26-sfepy

Reported by: eugene.geis@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: snowleopard Cc: geis@…
Port: swig-python

Description (last modified by ryandesign (Ryan Carsten Schmidt))

  • 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!

Attachments (1)

LogFile.txt (19.9 KB) - added by eugene.geis@… 13 years ago.
log file of the swig-python error

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by eugene.geis@…

Attachment: LogFile.txt added

log file of the swig-python error

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:2 in reply to:  description Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to 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 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.

comment:3 Changed 13 years ago 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.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

comment:5 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: snowleopard added; swig-python pcre swig py26-sfepy snow leopard removed
Note: See TracTickets for help on using tickets.