Opened 17 years ago
Last modified 14 years ago
#14923 closed defect
python25 +universal fails to compile Mac OS 10.4 — at Version 8
Reported by: | wjb@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.2 |
Keywords: | tiger | Cc: | n.hoffmann@… |
Port: | python25 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I previously installed MacPorts python2.5 and am trying to switch to +universal variant. Running the command:
sudo port install python25 +universal
installation fails with
---> Building python25 with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python25/work/Python-2.5.1" && make all " returned error 2 Command output: libtool -o libpython2.5.dylib -dynamic \ -all_load libpython2.5.a -single_module \ -install_name /opt/local/lib/libpython2.5.dylib \ -compatibility_version 2.5 \ -current_version 2.5 -lSystem -lSystemStubs -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/opt/local/lib libtool: unknown option character `r' in: -arch Usage: libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] Usage: libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load] make: *** [libpython2.5.dylib] Error 1 Error: Status 1 encountered during processing.
My specs:
MacPorts 1.520
Mac OS 10.4 Intel
Xcode 2.4.1
Any idea on what could be wrong here?
Change History (9)
comment:1 Changed 17 years ago by jmroot (Joshua Root)
Milestone: | → Port Bugs |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
comment:2 Changed 17 years ago by wjb@…
I've updated and cleaned python25. The same error occurs when trying to build the universal variant.
comment:3 follow-up: 4 Changed 17 years ago by rigahial@…
I had the same error message building python25 +universal on Mac OS X 10.5.2 with MacPorts 1.6.0. I was able to work around it and build a universal Python by modifying patch-Makefile.pre.in.diff.
The distributed path-Makefile.pre.in.diff calls /usr/bin/libtool with $(LDFLAGS) in its argument list. But /usr/bin/libtool doesn't understand "-arch", or the other options that appeared in $(LDFLAGS) it appears. So I just removed the $(LDFLAGS) part. I don't know if that's the right thing, but it worked for me.
comment:4 follow-up: 5 Changed 16 years ago by stdoonline@…
Replying to rigahial@bugmenot.com:
I had the same error message building python25 +universal on Mac OS X 10.5.2 with MacPorts 1.6.0. I was able to work around it and build a universal Python by modifying patch-Makefile.pre.in.diff.
The distributed path-Makefile.pre.in.diff calls /usr/bin/libtool with $(LDFLAGS) in its argument list. But /usr/bin/libtool doesn't understand "-arch", or the other options that appeared in $(LDFLAGS) it appears. So I just removed the $(LDFLAGS) part. I don't know if that's the right thing, but it worked for me.
Can you explain more precise what you did? I am a dumb beginner and try to get py25 working on MacOSX 10.5 with macports 1.6.0.
Thanks for helping!
comment:5 Changed 16 years ago by rigahial@…
Replying to stdoonline@gmail.com:
Can you explain more precise what you did? I am a dumb beginner and try to get py25 working on MacOSX 10.5 with macports 1.6.0.
Set up a local ports repository according to the instructions at http://guide.macports.org/#development.local-repositories. Then copy the python25 package:
mkdir ~/ports/lang cp -r /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python25 ~/ports/lang/
And apply the patch that I will attach:
cd ~/ports patch -p1 < ~/python25-universal.diff
Run a portindex:
cd ~/ports portindex
And edit sources.conf.
Changed 16 years ago by rigahial@…
Attachment: | python25-universal.diff added |
---|
comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
Assigning to maintainer.
The first thing to try is upgrading to the latest MacPorts by running
sudo port selfupdate
. Then runsudo port clean python25
and try installing again.