[MacPorts] #50686: py-psutil 4.0.0 does not build on a PPC
#50686: py-psutil 4.0.0 does not build on a PPC -------------------------+-------------------------------- Reporter: drjesacco@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: PPC | Port: py-psutil -------------------------+-------------------------------- Programming a PPC-based Mac is akin to riding a dead horse. Conventional wisdom suggests the best strategy when you discover you are riding a dead horse is to dismount. Still, we persist... :-) The culprit file is psutil/_psutil_osx.c. If this file is replaced with its predecessor from version 3.4.2, the module builds, albeit with some minor complaints. The compiler errors are shown below. -Joseph /usr/bin/gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch ppc -DPSUTIL_VERSION=400 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_osx.o psutil/_psutil_osx.c: In function âpsutil_proc_memory_mapsâ: psutil/_psutil_osx.c:351: warning: format â%016lxâ expects type âlong unsigned intâ, but argument 3 has type âvm_address_tâ psutil/_psutil_osx.c:351: warning: format â%016lxâ expects type âlong unsigned intâ, but argument 4 has type âvm_address_tâ psutil/_psutil_osx.c: In function âpsutil_proc_memory_ussâ: psutil/_psutil_osx.c:603: error: âforâ loop initial declaration used outside C99 mode psutil/_psutil_osx.c:624: error: âSM_LARGE_PAGEâ undeclared (first use in this function) psutil/_psutil_osx.c:624: error: (Each undeclared identifier is reported only once psutil/_psutil_osx.c:624: error: for each function it appears in.) error: command '/usr/bin/gcc-4.2' failed with exit status 1 -- Ticket URL: <https://trac.macports.org/ticket/50686> MacPorts <https://www.macports.org/> Ports system for OS X
#50686: py-psutil 4.0.0 does not build on a PPC --------------------------+------------------------ Reporter: drjesacco@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: powerpc Port: py-psutil | --------------------------+------------------------ Changes (by mf2k@…): * cc: stromnov@… (removed) * keywords: PPC => powerpc * owner: macports-tickets@… => stromnov@… Comment: In the future, please use WikiFormatting. -- Ticket URL: <https://trac.macports.org/ticket/50686#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50686: py-psutil 4.0.0 does not build on a PPC --------------------------+------------------------ Reporter: drjesacco@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: powerpc Port: py-psutil | --------------------------+------------------------ Description changed by mf2k@…: Old description:
Programming a PPC-based Mac is akin to riding a dead horse. Conventional wisdom suggests the best strategy when you discover you are riding a dead horse is to dismount. Still, we persist... :-)
The culprit file is psutil/_psutil_osx.c. If this file is replaced with its predecessor from version 3.4.2, the module builds, albeit with some minor complaints.
The compiler errors are shown below.
-Joseph
/usr/bin/gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch ppc -DPSUTIL_VERSION=400 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_osx.o psutil/_psutil_osx.c: In function âpsutil_proc_memory_mapsâ: psutil/_psutil_osx.c:351: warning: format â%016lxâ expects type âlong unsigned intâ, but argument 3 has type âvm_address_tâ psutil/_psutil_osx.c:351: warning: format â%016lxâ expects type âlong unsigned intâ, but argument 4 has type âvm_address_tâ psutil/_psutil_osx.c: In function âpsutil_proc_memory_ussâ: psutil/_psutil_osx.c:603: error: âforâ loop initial declaration used outside C99 mode psutil/_psutil_osx.c:624: error: âSM_LARGE_PAGEâ undeclared (first use in this function) psutil/_psutil_osx.c:624: error: (Each undeclared identifier is reported only once psutil/_psutil_osx.c:624: error: for each function it appears in.) error: command '/usr/bin/gcc-4.2' failed with exit status 1
New description: Programming a PPC-based Mac is akin to riding a dead horse. Conventional wisdom suggests the best strategy when you discover you are riding a dead horse is to dismount. Still, we persist... :-) The culprit file is psutil/_psutil_osx.c. If this file is replaced with its predecessor from version 3.4.2, the module builds, albeit with some minor complaints. The compiler errors are shown below. -Joseph {{{ /usr/bin/gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch ppc -DPSUTIL_VERSION=400 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.5-ppc-2.7/psutil/_psutil_osx.o psutil/_psutil_osx.c: In function âpsutil_proc_memory_mapsâ: psutil/_psutil_osx.c:351: warning: format â%016lxâ expects type âlong unsigned intâ, but argument 3 has type âvm_address_tâ psutil/_psutil_osx.c:351: warning: format â%016lxâ expects type âlong unsigned intâ, but argument 4 has type âvm_address_tâ psutil/_psutil_osx.c: In function âpsutil_proc_memory_ussâ: psutil/_psutil_osx.c:603: error: âforâ loop initial declaration used outside C99 mode psutil/_psutil_osx.c:624: error: âSM_LARGE_PAGEâ undeclared (first use in this function) psutil/_psutil_osx.c:624: error: (Each undeclared identifier is reported only once psutil/_psutil_osx.c:624: error: for each function it appears in.) error: command '/usr/bin/gcc-4.2' failed with exit status 1 }}} -- -- Ticket URL: <https://trac.macports.org/ticket/50686#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50686: py-psutil 4.0.0 does not build on a PPC --------------------------+------------------------ Reporter: drjesacco@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: powerpc Port: py-psutil | --------------------------+------------------------ Comment (by drjesacco@…): I patched psutil/_psutil_osx.c and got py27_psutil and py34_psutil to build on a G4 PowerMac running OS X 10.5.8. The resulting build passes many, but not all tests. [See attached patch]. -Joseph -- Ticket URL: <https://trac.macports.org/ticket/50686#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50686: py-psutil 4.0.0 does not build on a PPC --------------------------+------------------------------ Reporter: drjesacco@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: powerpc haspatch Port: py-psutil | --------------------------+------------------------------ Changes (by mf2k@…): * keywords: powerpc => powerpc haspatch Comment: Thank you for the patch. FYI, according to the [https://guide.macports.org/chunked/development.patches.html patch guidelines], you should prepend the text "patch-" to your patchfile name. -- Ticket URL: <https://trac.macports.org/ticket/50686#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50686: py-psutil 4.0.0 does not build on a PPC --------------------------+------------------------------ Reporter: drjesacco@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: powerpc haspatch Port: py-psutil | --------------------------+------------------------------ Comment (by stromnov@…): Feel free to check proposed patch and Portfile on G4 PowerMac. -- Ticket URL: <https://trac.macports.org/ticket/50686#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50686: py-psutil 4.0.0 does not build on a PPC --------------------------+------------------------------ Reporter: drjesacco@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: powerpc haspatch Port: py-psutil | --------------------------+------------------------------ Comment (by drjesacco@…): The proposed patch and Portfile work on a G4 PowerMac [as expected... :-)]. Be well, -Joseph -- Ticket URL: <https://trac.macports.org/ticket/50686#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50686: py-psutil 4.0.0 does not build on a PPC --------------------------+------------------------------ Reporter: drjesacco@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: powerpc haspatch Port: py-psutil | --------------------------+------------------------------ Comment (by gnwiii@…): Build fails on OS X Snow Leopard because {{{SM_LARGE_PAGE}}} is not defined. Adding "{{{ && defined(SM_LARGE_PAGE)}}}" to the ppc tests should work: {{{ +#if !defined(__ppc__) && ... && defined(SM_LARGE_PAGE) }}} -- Ticket URL: <https://trac.macports.org/ticket/50686#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts