[MacPorts] #48336: x265 build fails on Leopard G4 PPC
#48336: x265 build fails on Leopard G4 PPC -----------------------------+-------------------------------- Reporter: zanderpower@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: leopard PowerPC | Port: x265 -----------------------------+-------------------------------- Build fails with message {{{ cd /mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x265/x265/work/build/common && /Developer/usr/bin/g++-4.2 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=0 -DMACOS -D__STDC_LIMIT_MACROS=1 -pipe -Os -arch ppc -DNDEBUG -arch ppc -mmacosx-version-min=10.5 -I/mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x265/x265/work/x265_1.7/source/. -I/mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x265/x265/work/x265_1.7/source/common -I/mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x265/x265/work/x265_1.7/source/encoder -I/mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x265/x265/work/build -Wall -Wextra -Wshadow -ffast-math -fno-exceptions -o CMakeFiles/common.dir/common.cpp.o -c /mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x265/x265/work/x265_1.7/source/common/common.cpp /mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x265/x265/work/x265_1.7/source/common/common.cpp: In function ‘void* x265_malloc(size_t)’: /mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x265/x265/work/x265_1.7/source/common/common.cpp:79: error: ‘posix_memalign’ was not declared in this scope make[2]: *** [common/CMakeFiles/common.dir/common.cpp.o] Error 1 }}} The build log is attached. -- Ticket URL: <https://trac.macports.org/ticket/48336> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+-------------------------------- Reporter: zanderpower@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+-------------------------------- Comment (by zanderpower@…): NB. Something tells me that x265 is asking a bit too much for a 1.6 GHz single core PPC. On the other hand, I need it now for ffmpeg, which has served me well to date. -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Changes (by devans@…): * owner: macports-tickets@… => ays388@… * cc: ays388@… (removed) * cc: devans@… (added) Comment: Replying to [comment:1 zanderpower@…]:
NB. Something tells me that x265 is asking a bit too much for a 1.6 GHz single core PPC. On the other hand, I need it now for ffmpeg, which has served me well to date.
Do you mean for the build, or for processing video after it's built? -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by devans@…): Since there seem to be some issues with x265 particularly on the older machines, perhaps x265 should be made optional for ffmpeg for now or perhaps just enabled on the newer OS versions where it builds until these issues are ironed out. Any objections? Does it attempt to provide support for ppc processors? If so, I assume it doesn't need yasm in the ppc environment. See #40154 where this issue was raised for libvpx. -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by zanderpower@…): Replying to [comment:2 devans@…]:
Replying to [comment:1 zanderpower@…]:
NB. Something tells me that x265 is asking a bit too much for a 1.6 GHz single core PPC. On the other hand, I need it now for ffmpeg, which has served me well to date.
Do you mean for the build, or for processing video after it's built?
I'm not worried about the time it takes to build anything! I just am not sure that PPC can handle extreme HD video very smoothly. I only need to (lossy) compress the really high bit-rate stuff. To answer your second question, I'm OK with it being optional until the issue is addressed. I will need to dig a little to find out whether there is any support in x265 for PPC. I'll see if I can answer this question for you. Thanks for the quick response. -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by devans@…): Replying to [comment:4 zanderpower@…]:
I'm not worried about the time it takes to build anything! I just am not sure that PPC can handle extreme HD video very smoothly. I only need to (lossy) compress the really high bit-rate stuff.
I'm thinking that it may take some processing time to compress video but the playback should not be too bad (similar to x264). If you look at the video samples available on x265.org, x265 (hevc) provides the most dramatic improvements in visual quality over x264 for low bit rates.
To answer your second question, I'm OK with it being optional until the issue is addressed. I will need to dig a little to find out whether there is any support in x265 for PPC. I'll see if I can answer this question for you.
I really was directing this to the x265 maintainer but any info you can find would help in determining what the platform constraints are. My old ppc machine died some time ago and since then I have had to rely on folks like you do the testing necessary to support the older OS versions and architectures. I'll probably make x265 support on ffmpeg, ffmpeg-devel optional via variant for now so as not to block building on these platforms. -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by zanderpower@…): From what I have gleaned, it seems that x265 is unstable--at best--on PowerPCs. See[https://bitbucket.org/multicoreware/x265/issues/85/fallback- for-atomic-ops-usage] and [http://www.calculate-linux.org/packages/media- libs/x265] and these examples appear to be referring to 64-bit (running Linux at that). The most optimistic info I have found so far is [https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/w_gcORP9768]. And as before, this is (Debian) Linux. I don't know if this gives you any ideas. I'm not sure what they mean by "atomic", unless there is some assembly code that must be implemented to work around the problem, or some library that needs to be linked ("-latomic"?). Again, I am fine with a ffmpeg variant that lacks x265, until another option becomes viable (if it ever does). -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by ays388@…): x265 requires at least snow leopard, due to the use of posix_memalign() which was not available on leopard and lower. -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by devans@…): Replying to [comment:7 ays388@…]:
x265 requires at least snow leopard, due to the use of posix_memalign() which was not available on leopard and lower.
If there is no work around for this, then you probably should include a test for darwin version in an early phase of port processing (pre-fetch, pre-configure) and error out with an informative message when appropriate rather than just failing to build. -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by devans@…): As promised, ffmpeg, ffmpeg-devel updated in r138604. Now only builds with libx265 support if +libx265 variant is selected. The variant is only available for non-universal builds on 10.6 or later due to issues with x265. See also #48331, #48338. -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by zanderpower@…): Replying to [comment:10 devans@…]:
As promised, ffmpeg, ffmpeg-devel updated in r138604. Now only builds with libx265 support if +libx265 variant is selected. The variant is only available for non-universal builds on 10.6 or later due to issues with x265. See also #48331, #48338.
Thanks for your work and time. -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#48336: x265 build fails on Leopard G4 PPC ----------------------------+----------------------------- Reporter: zanderpower@… | Owner: ays388@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: leopard PowerPC Port: x265 | ----------------------------+----------------------------- Comment (by jeremyhu@…): gstreamer1-gst-plugins-bad workaround in r148970 -- Ticket URL: <https://trac.macports.org/ticket/48336#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts