Opened 17 years ago

Closed 14 years ago

#14923 closed defect (wontfix)

python25 +universal fails to compile Mac OS 10.4

Reported by: wjb@… Owned by: jyrkiwahlstedt
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?

Attachments (1)

python25-universal.diff (759 bytes) - added by rigahial@… 17 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 17 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to mww@…

Assigning to maintainer.

The first thing to try is upgrading to the latest MacPorts by running sudo port selfupdate. Then run sudo port clean python25 and try installing again.

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 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 in reply to:  3 ; Changed 17 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 in reply to:  4 Changed 17 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 17 years ago by rigahial@…

Attachment: python25-universal.diff added

comment:6 Changed 16 years ago by n.hoffmann@…

Cc: n.hoffmann@… added

Cc Me!

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

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

Description: modified (diff)

comment:9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Port: python25 added

comment:10 Changed 15 years ago by jmroot (Joshua Root)

Keywords: tiger added; python25 universal removed
Owner: changed from mww@… to jwa@…

comment:11 Changed 14 years ago by jyrkiwahlstedt

Resolution: wontfix
Status: newclosed

Well, we are long past Python 2.5, the recommended Python 2 is now 2.7. I myself don't have 10.4 anymore around, so I can't test it. In Python 2.7 the universal builds are already taken into account in upstream code, so that is better from the start.

Note: See TracTickets for help on using tickets.