#38935 closed defect (fixed)
MPlayer: build failure on OSX 10.4 ppc
Reported by: | jasper@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager) | |
Port: | MPlayer |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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
Attachments (1)
Change History (9)
Changed 12 years ago by jasper@…
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to jeremyhu@… |
Port: | MPlayer added |
Summary: | Mplayer: build failure on OSX 10.4 ppc → MPlayer: build failure on OSX 10.4 ppc |
Replying to 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'
comment:2 Changed 12 years ago 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.
comment:3 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
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.
comment:4 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
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...
comment:7 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
from attempt to build mplayer with apple-gcc-4.2