[MacPorts] #38935: Mplayer: build failure on OSX 10.4 ppc
#38935: Mplayer: build failure on OSX 10.4 ppc ----------------------+-------------------------------- Reporter: jasper@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: ----------------------+-------------------------------- After applying patch https://trac.macports.org/changeset/105571 I tried to install mplayer but it said I had no suitable compilers. I have Xcode 2.5 installed which I beleive is the latest that will run on OSX 10.4/ppc. So I tried: sudo port install mplayer configure.compiler=apple- gcc-4.2 ...and it started building OK but threw up another error, logfile attached as main2.log -- Ticket URL: <https://trac.macports.org/ticket/38935> MacPorts <http://www.macports.org/> Ports system for OS X
#38935: MPlayer: build failure on OSX 10.4 ppc -----------------------+------------------------ Reporter: jasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: MPlayer | -----------------------+------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => jeremyhu@… * cc: ryandesign@… (added) * port: => MPlayer Old description:
After applying patch https://trac.macports.org/changeset/105571 I tried to install mplayer but it said I had no suitable compilers. I have Xcode 2.5 installed which I beleive is the latest that will run on OSX 10.4/ppc. So I tried: sudo port install mplayer configure.compiler =apple-gcc-4.2 ...and it started building OK but threw up another error, logfile attached as main2.log
New description: After applying patch r105571 I tried to install mplayer but it said I had no suitable compilers. I have Xcode 2.5 installed which I beleive is the latest that will run on OSX 10.4/ppc. So I tried: `sudo port install mplayer configure.compiler=apple- gcc-4.2` ...and it started building OK but threw up another error, logfile attached as main2.log -- Comment: Replying to [ticket:38935 jasper@…]:
After applying patch r105571
You should not have had to apply anything manually; that's a committed revision which should have been delivered to you by running `sudo port selfupdate`.
I tried to install mplayer but it said I had no suitable compilers.
Correct; the port blacklists all the compilers Xcode on Tiger includes and that MacPorts 2.1.x looks for. MacPorts 2.2 will look for more compilers automatically, including apple-gcc-4.2. So this portion of the bug report will either be resolved by releasing MacPorts 2.2 or by adding more compiler fallbacks to the MPlayer port.
I have Xcode 2.5 installed which I beleive is the latest that will run on OSX 10.4/ppc.
Correct, Xcode 2.5 is the latest version for Tiger.
So I tried: `sudo port install mplayer configure.compiler=apple-gcc-4.2` ...and it started building OK but threw up another error, logfile attached as main2.log
Hmm... I don't know what this is: {{{ :info:build In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32, :info:build from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125, :info:build from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21, :info:build from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20, :info:build from input/ar.c:27: :info:build /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:115: error: expected specifier-qualifier-list before 'vector' }}} -- Ticket URL: <https://trac.macports.org/ticket/38935#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38935: MPlayer: build failure on OSX 10.4 ppc -----------------------+------------------------ Reporter: jasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: MPlayer | -----------------------+------------------------ Comment (by jasper@…): The line with the error is {{{ vector unsigned int v;}}} It appears the compiler does not recognize 'vector' as a qualifier. Might be something to do with Altivec support. -- Ticket URL: <https://trac.macports.org/ticket/38935#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38935: MPlayer: build failure on OSX 10.4 ppc -----------------------+------------------------ Reporter: jasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: MPlayer | -----------------------+------------------------ Comment (by jeremyhu@…): Yes, also see #36942 {{{ :info:configure Checking for GCC AltiVec flags ... -maltivec -mabi=altivec }}} This probably needs -mcpu=ppc7450 or -faltivec ... I remember that the altivec compiler flags were a PITA to keep straight. -- Ticket URL: <https://trac.macports.org/ticket/38935#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38935: MPlayer: build failure on OSX 10.4 ppc -----------------------+------------------------ Reporter: jasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: MPlayer | -----------------------+------------------------ Comment (by jeremyhu@…): Give this a try: {{{ Index: Portfile =================================================================== --- Portfile (revision 105581) +++ Portfile (working copy) @@ -79,6 +79,12 @@ patchfiles configure.x11.patch +post-patch { + reinplace "s|-maltivec|-faltivec -maltivec|g" \ + ${worksrcpath}/configure \ + ${worksrcpath}/ffmpeg/configure +} + post-destroot { xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} eval file copy [glob ${worksrcpath}/DOCS/*] \ }}} If that doesn't work, at least that should get you on the right track to figuring out the fix... -- Ticket URL: <https://trac.macports.org/ticket/38935#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38935: MPlayer: build failure on OSX 10.4 ppc -----------------------+------------------------ Reporter: jasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: MPlayer | -----------------------+------------------------ Comment (by jasper@…): Works OK! Go ahead and commit! Thanks -- Ticket URL: <https://trac.macports.org/ticket/38935#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38935: MPlayer: build failure on OSX 10.4 ppc -----------------------+------------------------ Reporter: jasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: MPlayer | -----------------------+------------------------ Comment (by jeremyhu@…): r105593 -- Ticket URL: <https://trac.macports.org/ticket/38935#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38935: MPlayer: build failure on OSX 10.4 ppc -----------------------+------------------------ Reporter: jasper@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: MPlayer | -----------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/38935#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts