[MacPorts] #24372: Problem installing psyco on Snow Leopard
#24372: Problem installing psyco on Snow Leopard ------------------------------+--------------------------------------------- Reporter: news@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-psyco ------------------------------+--------------------------------------------- Fresh install of SL and py26 Installing py26-psyco: ---> Building py26-psyco Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-psyco/work/psyco-1.6" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1 Command output: c/dispatcher.c:131: warning: comparison is always false due to limited range of data type c/dispatcher.c: In function 'fz_compress': c/dispatcher.c:233: warning: cast from pointer to integer of different size c/dispatcher.c:239: warning: cast to pointer from integer of different size In file included from c/initialize.h:48, from c/psyco.c:14: c/psyfunc.c: In function 'psycofunction_call': c/psyfunc.c:801: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type In file included from c/initialize.h:49, from c/psyco.c:14: c/stats.c: In function 'psyco_stats_reset': c/stats.c:260: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type c/stats.c: In function 'psyco_stats_dump': c/stats.c:298: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type c/stats.c: In function 'psyco_stats_top': c/stats.c:326: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type In file included from c/initialize.h:53, from c/psyco.c:14: c/codemanager.c: In function 'psyco_shrink_code_buffer': c/codemanager.c:235: warning: format '%d' expects type 'int', but argument 3 has type 'long int' In file included from c/initialize.h:60, from c/psyco.c:14: c/Objects/pobject.c: In function 'getdictoffset': c/Objects/pobject.c:257: error: 'SIZE_OF_LONG_BITS' undeclared (first use in this function) c/Objects/pobject.c:257: error: (Each undeclared identifier is reported only once c/Objects/pobject.c:257: error: for each function it appears in.) In file included from c/initialize.h:61, from c/psyco.c:14: c/Objects/pabstract.c:723:3: error: #error "omitted code from Python 2.3 here" error: command '/usr/bin/gcc-4.2' failed with exit status 1 Error: Status 1 encountered during processing. -- Ticket URL: <http://trac.macports.org/ticket/24372> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24372: Problem installing psyco on Snow Leopard ------------------------------+--------------------------------------------- Reporter: news@… | Owner: jmr@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-psyco ------------------------------+--------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => jmr@… * status: new => assigned Old description:
Fresh install of SL and py26 Installing py26-psyco:
---> Building py26-psyco Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-psyco/work/psyco-1.6" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1 Command output: c/dispatcher.c:131: warning: comparison is always false due to limited range of data type c/dispatcher.c: In function 'fz_compress': c/dispatcher.c:233: warning: cast from pointer to integer of different size c/dispatcher.c:239: warning: cast to pointer from integer of different size In file included from c/initialize.h:48, from c/psyco.c:14: c/psyfunc.c: In function 'psycofunction_call': c/psyfunc.c:801: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type In file included from c/initialize.h:49, from c/psyco.c:14: c/stats.c: In function 'psyco_stats_reset': c/stats.c:260: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type c/stats.c: In function 'psyco_stats_dump': c/stats.c:298: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type c/stats.c: In function 'psyco_stats_top': c/stats.c:326: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type In file included from c/initialize.h:53, from c/psyco.c:14: c/codemanager.c: In function 'psyco_shrink_code_buffer': c/codemanager.c:235: warning: format '%d' expects type 'int', but argument 3 has type 'long int' In file included from c/initialize.h:60, from c/psyco.c:14: c/Objects/pobject.c: In function 'getdictoffset': c/Objects/pobject.c:257: error: 'SIZE_OF_LONG_BITS' undeclared (first use in this function) c/Objects/pobject.c:257: error: (Each undeclared identifier is reported only once c/Objects/pobject.c:257: error: for each function it appears in.) In file included from c/initialize.h:61, from c/psyco.c:14: c/Objects/pabstract.c:723:3: error: #error "omitted code from Python 2.3 here" error: command '/usr/bin/gcc-4.2' failed with exit status 1
Error: Status 1 encountered during processing.
New description: Fresh install of SL and py26 Installing py26-psyco: {{{ ---> Building py26-psyco Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-psyco/work/psyco-1.6" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1 Command output: c/dispatcher.c:131: warning: comparison is always false due to limited range of data type c/dispatcher.c: In function 'fz_compress': c/dispatcher.c:233: warning: cast from pointer to integer of different size c/dispatcher.c:239: warning: cast to pointer from integer of different size In file included from c/initialize.h:48, from c/psyco.c:14: c/psyfunc.c: In function 'psycofunction_call': c/psyfunc.c:801: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type In file included from c/initialize.h:49, from c/psyco.c:14: c/stats.c: In function 'psyco_stats_reset': c/stats.c:260: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type c/stats.c: In function 'psyco_stats_dump': c/stats.c:298: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type c/stats.c: In function 'psyco_stats_top': c/stats.c:326: warning: passing argument 2 of 'PyDict_Next' from incompatible pointer type In file included from c/initialize.h:53, from c/psyco.c:14: c/codemanager.c: In function 'psyco_shrink_code_buffer': c/codemanager.c:235: warning: format '%d' expects type 'int', but argument 3 has type 'long int' In file included from c/initialize.h:60, from c/psyco.c:14: c/Objects/pobject.c: In function 'getdictoffset': c/Objects/pobject.c:257: error: 'SIZE_OF_LONG_BITS' undeclared (first use in this function) c/Objects/pobject.c:257: error: (Each undeclared identifier is reported only once c/Objects/pobject.c:257: error: for each function it appears in.) In file included from c/initialize.h:61, from c/psyco.c:14: c/Objects/pabstract.c:723:3: error: #error "omitted code from Python 2.3 here" error: command '/usr/bin/gcc-4.2' failed with exit status 1 Error: Status 1 encountered during processing. }}} -- Comment: Please remember to preview and use WikiFormatting, and to cc the maintainer. Is this on an x86_64 machine? I've just now made a change to the psyco ports to indicate that they only work on i386. -- Ticket URL: <http://trac.macports.org/ticket/24372#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24372: Problem installing psyco on Snow Leopard ------------------------------+--------------------------------------------- Reporter: news@… | Owner: jmr@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-psyco ------------------------------+--------------------------------------------- Comment(by news@…): Sorry about that It is a x64 machine. Python is universal variant. Would it not work? -- Ticket URL: <http://trac.macports.org/ticket/24372#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24372: psyco doesn't allow building for i386 on x86_64 machines ------------------------------+--------------------------------------------- Reporter: news@… | Owner: jmr@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-psyco ------------------------------+--------------------------------------------- Comment(by jmr@…): Probably not, since psyco's build system is not picking up our arch flags. -- Ticket URL: <http://trac.macports.org/ticket/24372#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24372: psyco doesn't allow building for i386 on x86_64 machines -------------------------------+-------------------------------------------- Reporter: news@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: py26-psyco | -------------------------------+-------------------------------------------- Changes (by jmr@…): * status: assigned => closed * resolution: => fixed Comment: Seems to build OK after the changes from #24802. You no doubt have to run the i386 half of a universal python in order to use psyco. -- Ticket URL: <http://trac.macports.org/ticket/24372#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts