Opened 13 years ago

Closed 13 years ago

#32660 closed defect (fixed)

boost@1.48.0_3+python24 build fails

Reported by: larryv (Lawrence Velázquez) Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: boost

Description

I can successfully build the +python25, +python26, and +python27 variants. I haven't tried either of the Python 3.x variants.

I tried sifting through the log but gave up pretty quickly. I compressed it before attaching, since it was 25 MB.

I'm on OS X 10.7.2, with Xcode 4.2 and MacPorts 2.0.3.

Attachments (1)

boost-1.48.0_3+python24-main.log.bz2 (342.8 KB) - added by larryv (Lawrence Velázquez) 13 years ago.
main.log, compressed

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by larryv (Lawrence Velázquez)

main.log, compressed

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

Cc: adfernandes@… removed
Owner: changed from macports-tickets@… to adfernandes@…

So the problems are:

:info:build notice: [python-cfg] Configuring python...
:info:build notice: [python-cfg]   user-specified version: "2.4"
:info:build notice: [python-cfg]   user-specified cmd-or-prefix: "/opt/local"
:info:build notice: [python-cfg] Checking interpreter command "/opt/local/bin/python"...
:info:build notice: [python-cfg] running command '"/opt/local/bin/python" -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
:info:build notice: [python-cfg] ...version mismatch (looking for 2.4 but found 2.7)
:info:build notice: [python-cfg] Checking interpreter command "python"...
:info:build notice: [python-cfg] running command '"python" -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
:info:build notice: [python-cfg] ...version mismatch (looking for 2.4 but found 2.7)
:info:build notice: [python-cfg] Checking interpreter command "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/python"...
:info:build notice: [python-cfg] running command '"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/python" -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
:info:build notice: [python-cfg] ...does not invoke a working interpreter
:info:build notice: [python-cfg] No working Python interpreter found.
:info:build notice: [python-cfg] falling back to "/opt/local/bin/python"
:info:build notice: [python-cfg] Details of this Python configuration:
:info:build notice: [python-cfg]   interpreter command: "/opt/local/bin/python"
:info:build notice: [python-cfg]   include path: "/opt/local/Headers"
:info:build notice: [python-cfg]   library path: "/opt/local/lib/python2.4/config" "/opt/local/lib"
:info:build ./boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory
:info:build ./boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such file or directory

The Portfile specifies that we want python to be /opt/local/bin/python2.4, but the configure script appears to ignore this and use the command /opt/local/bin/python, or just python, which it then discovers happens to be version 2.7 (probably because that's what you've selected with "sudo port select python"). Then it can't make this work ("No working Python interpreter found"), falls back to nonsensical defaults ("include path: "/opt/local/Headers""), and then can't find the files it needs ("pyconfig.h: No such file or directory").

comment:2 in reply to:  1 Changed 13 years ago by larryv (Lawrence Velázquez)

:info:build notice: [python-cfg] Checking interpreter command "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/python"...
:info:build notice: [python-cfg] running command '"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/python" -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
:info:build notice: [python-cfg] ...does not invoke a working interpreter

Well I don't have a bin directory under ${frameworks_dir}/Python.framework/Versions/2.4, so that would explain why it can't find python there. It does exist for 2.5, 2.6, and 2.7.

comment:3 Changed 13 years ago by adfernandes (Andrew Fernandes)

Hmm... I think the easiest thing to do is remove the support for Python 2.4 in the next checkin. Anything else would involve a lot more logic to the Portfile than I'm willing to put in.

So - unless someone volunteers to implement and test the patch, 2.4 will be removed in the next checkin.

comment:4 Changed 13 years ago by adfernandes (Andrew Fernandes)

Committed in r88683.

comment:5 Changed 13 years ago by adfernandes (Andrew Fernandes)

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