Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610768 - media-video/ffmpeg-9999 - libavcodec/libavcodec.so: undefined reference to 'ff_vp9_copy32_aarch64' and other SIMD instructions.
Summary: media-video/ffmpeg-9999 - libavcodec/libavcodec.so: undefined reference to 'f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-24 04:18 UTC by R030t1
Modified: 2017-02-27 08:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Compilation failure sans configure and prepare output. (build.log,4.70 KB, text/plain)
2017-02-24 04:18 UTC, R030t1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R030t1 2017-02-24 04:18:30 UTC
Created attachment 464946 [details]
Compilation failure sans configure and prepare output.

It is my understanding this package should compile without issue.

Supporting build output and system information can be provided, but if I don't post it before you need it please ask as I need to transfer files in a very manual fashion for the time being.
Comment 1 Alexis Ballier gentoo-dev 2017-02-27 08:35:25 UTC
commit 9275d9229f6f13fd2b3f7577b56df158249fd9fa
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Sun Feb 26 23:54:58 2017 +0100

    media-video/ffmpeg: neon is required on arm64, bug #610768.


Also, I had to make a change to arm64 profiles:


commit 77d18b6fd1d08dca8fdf121adc478e25c25a467c
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Mon Feb 27 09:33:46 2017 +0100

    profiles/arch/arm64: Unmask neon and armvfp useflags. Force them on for ffmpeg as it assumes they are available on arm64 and fails to build if those are disabled, bug #610768

diff --git a/profiles/arch/arm64/package.use.force b/profiles/arch/arm64/package.use.force
index a5c1831f38..0bf8b00205 100644
--- a/profiles/arch/arm64/package.use.force
+++ b/profiles/arch/arm64/package.use.force
@@ -2,6 +2,14 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
+# Alexis Ballier <27 Feb 2017>
+# arm64 always has neon and vfp:
+# http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0024a/CJHECGIH.html
+# Both floating-point and NEON are required in all standard ARMv8
+# implementations.
+# It also fails to build without neon: bug #610768
+media-video/ffmpeg neon armvfp
+
 # Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
 # Force the host target to avoid dependency hell
 sys-devel/clang llvm_targets_AArch64
diff --git a/profiles/arch/arm64/use.mask b/profiles/arch/arm64/use.mask
index ea6679d6bf..cacb75abb5 100644
--- a/profiles/arch/arm64/use.mask
+++ b/profiles/arch/arm64/use.mask
@@ -1,6 +1,10 @@
 # Unmask the flag which corresponds to ARCH.
 -arm64
 
+# Unmask arm specific USE flags
+-neon
+-armvfp
+
 # doomsday ebuild is not available on this architecture
 doomsday