[MacPorts] #39337: weechat @0.4.0 +python Build failure (Clang, Python)
#39337: weechat @0.4.0 +python Build failure (Clang, Python) ------------------------+-------------------------------- Reporter: alastair@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: weechat ------------------------+-------------------------------- Building on Mac OS X 10.8.3 with Xcode 4.6.2 results in: {{{ Error: org.macports.build for port weechat returned: command execution failed }}} Relevant section of log file could be lines 604 and 605 as follows: {{{ :info:build Linking C shared module python.so :info:build clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python' }}} However, `python27 @2.7.5_0+universal` is active. -- Ticket URL: <https://trac.macports.org/ticket/39337> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python Build failure (Clang, Python) -------------------------+-------------------------------- Reporter: alastair@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: weechat | -------------------------+-------------------------------- Comment (by egall@…): Have you used `port select` to choose a default python at all? -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+--------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: weechat | -------------------------+--------------------- Changes (by larryv@…): * owner: macports-tickets@… => nefar@… Comment: Please Cc relevant port maintainers in the future. -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+--------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: weechat | -------------------------+--------------------- Comment (by macsforever2000@…): The python chosen via {{{port select}}} should never affect the installation of a port. -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+--------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: weechat | -------------------------+--------------------- Comment (by alastair@…): `port select python` returned the following: {{{ Available versions for python: none (active) python25-apple python26-apple python27 python27-apple }}} `sudo port select --set python python27` returned the following: {{{ Selecting 'python27' for 'python' failed: symlink: /opt/local/etc/select/python/ current -> python27: file already exists }}} I then ran `sudo rm /opt/local/etc/select/python/current`. At this point, `sudo port select --set python python27` succeeded with: {{{ Selecting 'python27' for 'python' succeeded. 'python27' is now active. }}} However, the build continues to fail with: {{{ Error: org.macports.build for port weechat returned: command execution failed }}} Python can still not be found (main2.log, lines 574-575, to be attached): {{{ :info:build clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python' :info:build make[2]: *** [src/plugins/python/python.so] Error 1 }}} -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+--------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: weechat | -------------------------+--------------------- Comment (by alastair@…): I had a related problem with Vim not being able to find Python, and reinstalled MacPorts. I now have no problems installing this port. I do not know the exact reason for the problem with my Python port installation, but even if reproducible it would not be related to this port. I dot not appear to be able to modify the status of this ticket, so I hereby request it be closed. -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+--------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: duplicate | Keywords: Port: weechat | -------------------------+--------------------- Changes (by larryv@…): * status: new => closed * resolution: => duplicate Comment: This looks like #39357. -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+--------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: duplicate | Keywords: Port: weechat | -------------------------+--------------------- Comment (by larryv@…): Replying to [comment:7 larryv@…]:
This looks like #39357.
nvm, actually #39223. -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+---------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: weechat | -------------------------+---------------------- Changes (by dcecchin@…): * status: closed => reopened * resolution: duplicate => Comment: I'm not sure if that bug is actually a duplicate I did notice this https://github.com/mxcl/homebrew/issues/21013 Seems to be an issue with that version of python? I wonder what we can do to resolve this? -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+---------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: weechat | -------------------------+---------------------- Comment (by jmr@…): The python version chosen with port select does affect weechat even though it shouldn't, that's #37048. The other problem here is that, as discussed in #39223, LINKFORSHARED is only useful when building python itself and is not a valid way for other programs to find out how to link with python. For that, you have to use `pythonX.Y-config --ldflags`. -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#39337: weechat @0.4.0 +python: build cannot find Python -------------------------+--------------------- Reporter: alastair@… | Owner: nefar@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: weechat | -------------------------+--------------------- Changes (by and.damore@…): * status: reopened => closed * resolution: => fixed Comment: Should be fixed in r111398, it could probably be done better by passing appropriate arguments to cmake at configure phase rather than patching link.txt afterwards, any cmake-savvy person welcome to adjust it. -- Ticket URL: <https://trac.macports.org/ticket/39337#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts