Open avbohemen opened 3 years ago
The reason you're hitting this error is because of https://github.com/mstorsjo/fdk-aac/blob/master/libFDK/include/mips/abs_mips.h#L110
__mips_dsp is not enabled on the build bots and under any standard toolchain. If you're going to be modifying your toolchain, there's no point in putting an issue here.
A somewhat proper fix would be:
--- a/libFDK/include/mips/abs_mips.h
+++ b/libFDK/include/mips/abs_mips.h
@@ -107,7 +107,7 @@ amm-info@iis.fraunhofer.de
#if defined(__GNUC__) && defined(__mips__)
-#if defined(__mips_dsp)
+#if defined(__mips_dsp) && !defined(__mips16)
#define FUNCTION_fixabs_D
#define FUNCTION_fixabs_I
#define FUNCTION_fixabs_S
edit2: actually can you run benchmarks? I'm very curious how much of a speedup PKG_USE_MIPS16:=0 brings.
Maintainer: @thess Environment: ath79, TP-Link Archer C7 v2, OpenWrt trunk r15252
Description:
fdk-aac does not compile with MIPS16. At least with GCC 9.3. Adding "PKG_USE_MIPS16:=0" to Makefile fixes it.
Compile log: