[MacPorts] #33747: py27-readline @6.2.2 build failure
#33747: py27-readline @6.2.2 build failure ----------------------------------------+----------------------------------- Reporter: GuillaumeBOUERAT@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: py27-readline ----------------------------------------+----------------------------------- 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/33747> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33747: py27-readline @6.2.2 build failure ----------------------------------------+----------------------------------- Reporter: GuillaumeBOUERAT@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: py27-readline ----------------------------------------+----------------------------------- Comment(by ryandesign@…): 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 [http://guide.macports.org/ Guide]. -- Ticket URL: <https://trac.macports.org/ticket/33747#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33747: py27-readline @6.2.2 build failure ----------------------------------------+----------------------------------- Reporter: GuillaumeBOUERAT@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: py27-readline ----------------------------------------+----------------------------------- Comment(by nad@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/33747#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33747: py27-readline @6.2.2 build failure ----------------------------------------+----------------------------------- Reporter: GuillaumeBOUERAT@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: py27-readline ----------------------------------------+----------------------------------- Comment(by ryandesign@…): It ''is'' in ProblemHotlist#xcode43. It could probably be clearer though; feel free to edit the wiki. -- Ticket URL: <https://trac.macports.org/ticket/33747#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33747: py27-readline @6.2.2 build failure ----------------------------------------+----------------------------------- Reporter: GuillaumeBOUERAT@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: py27-readline ----------------------------------------+----------------------------------- Changes (by ryandesign@…): * cc: nad@…, ryandesign@… (added) Comment: Sorry, didn't realize you hadn't already Cc'd yourself. Please see my comment in the ticket. -- Ticket URL: <https://trac.macports.org/ticket/33747#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33747: py27-readline @6.2.2 build failure ----------------------------------------+----------------------------------- Reporter: GuillaumeBOUERAT@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: py27-readline ----------------------------------------+----------------------------------- Comment(by nad@…): Ah, I didn't see the Python reference in the wiki entry. I added an example. -- Ticket URL: <https://trac.macports.org/ticket/33747#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33747: py27-readline @6.2.2 build failure -----------------------------------------+---------------------------------- Reporter: GuillaumeBOUERAT@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: invalid | Keywords: Port: py27-readline | -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/33747#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts