Opened 12 years ago

Closed 12 years ago

#33747 closed defect (invalid)

py27-readline @6.2.2 build failure

Reported by: GuillaumeBOUERAT@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ned-deily (Ned Deily), ryandesign (Ryan Carsten Schmidt)
Port: py27-readline

Description

py27-readline fail to build on OSX lion

# port upgrade outdated
--->  Computing dependencies for py27-readline
--->  Fetching archive for py27-readline
--->  Attempting to fetch py27-readline-6.2.2_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/py27-readline
--->  Fetching py27-readline
--->  Verifying checksum(s) for py27-readline
--->  Extracting py27-readline
--->  Applying patches to py27-readline
--->  Configuring py27-readline
--->  Building py27-readline
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for py27-readline is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-readline/py27-readline/main.log
Error: Unable to upgrade port: 1

Attachments (1)

main.log (57.7 KB) - added by GuillaumeBOUERAT@… 12 years ago.
build log

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by GuillaumeBOUERAT@…

Attachment: main.log added

build log

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

Log says:

unable to execute /Developer/usr/bin/clang: No such file or directory

Sounds like you have not set up Xcode 4.3 properly. Read the ProblemHotlist and Guide.

comment:2 Changed 12 years ago by ned-deily (Ned Deily)

The problem is building the Python extension module which uses Python's distutils. It looks like MacPorts overrode the CC environment variable but that's not enough for Python framework builds; LDSHARED must be overridden as well (see http://bugs.python.org/issue13590#msg152803). What probably happened here is that the OP originally installed python27 with Xcode 4.2 was installed when clang was in /Developer/usr/bin. Python installs remember the absolute path of the C compiler used to build themselves for use later by Distutils when installing packages with C extension modules. If the path to the compiler changes, as happened with Xcode 4.3 (where /Developer was removed), subsequent Python package installs will fail. The easiest way to fix the problem is to force reinstalling Python, e.g.

port -n upgrade --force python27

which will rebuild Python and record the current compiler path. This probably should go into the ProblemHostList as users will likely run into this with other Python packages that include C extension modules.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

It is in ProblemHotlist#xcode43. It could probably be clearer though; feel free to edit the wiki.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: nad@… ryandesign@… added

Sorry, didn't realize you hadn't already Cc'd yourself. Please see my comment in the ticket.

comment:5 Changed 12 years ago by ned-deily (Ned Deily)

Ah, I didn't see the Python reference in the wiki entry. I added an example.

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.