Created attachment 294223 [details]
media-video/ffmpeg-0.7.8 build log
At least media-video/ffmpeg 0.7.7, 0.7.8, and 0.8.7 all fail to build on armv7a-hardfloat-linux-gnueabi
Created attachment 294225 [details]
By adding the configure argument --extra-cflags='-mfpu=vfp -mfloat-abi=hard' and applying this patch at http://repository.timesys.com/buildsources/f/ffmpeg/ffmpeg-0.8.7/ffmpeg-0.8.7-no-av_clip_uintp2_arm.patch , ffmpeg-0.8.7 seems to build, but still fails to link... I also tried to use -mfpu=neon (in my normal CFLAGS), but that failed to assemble.
For 9999, removing --disable-optimizations (a flag that upstream doesn't support, and tells me is known to break things even on x86) from the configure flags allows it to build. Even with USE=neon, NEON support is still not enabled; adding --extra-cflags='-mfpu=neon -mfloat-abi=hard' fixes that (and builds fine!)
Same changes fix 0.8.7 as well.
the patch is a no go because it simply disables some optimized function, at best there should be a configure check for it.
please attach config.log to see why it fails to detect neon and why it enables vfp when it shouldnt.
does it also fail with -9999 ?
(In reply to comment #5)
> the patch is a no go because it simply disables some optimized function, at
> best there should be a configure check for it.
It didn't help much anyway.
> please attach config.log to see why it fails to detect neon and why it enables
> vfp when it shouldnt.
It fails to detect NEON because it ignores CFLAGS, and doesn't add -mfpu=neon itself. Upstream developers are using --extra-cflags to add this flag. Why shouldn't it enable VFP?
> does it also fail with -9999 ?
Every single ffmpeg ebuild in-tree fails as-is; both 0.8.7 and 9999 work fine if I remove --disable-optimizations
Created attachment 295819 [details]
(In reply to comment #7)
> Created attachment 295819 [details]
> 0.8.7 config.log
(see other bug)
this config.log shows that you're lacking ASFLAGS settings for -mfpu and -mfloat-abi
(In reply to comment #8)
> (In reply to comment #7)
> > Created attachment 295819 [details]
> > 0.8.7 config.log
> (see other bug)
> this config.log shows that you're lacking ASFLAGS settings for -mfpu and
Actually, in case of ffmpeg, this would make sense doing ASFLAGS=$CFLAGS before configure. Could you please check it helps ?
Created attachment 295841 [details]
build.log with ASFLAGS
ASFLAGS does get ffmpeg to enable NEON support, but build still fails.
this should be fixed in 9999, please test
(or 0.9 that ill commit soon)
9999 compiled OK, will VERIFY bug when 0.9 finishes successfully...
0.9 built successful as well, thanks
Actually, you should probably add ~arm to media-video/ffmpeg-0.9 now ;)