* [FFmpeg-devel] [PATCH] 0001-libavutil-tx-Check-also-for-ARCH_X86.patch
@ 2023-04-19 15:07 Alessandro Bono
0 siblings, 0 replies; only message in thread
From: Alessandro Bono @ 2023-04-19 15:07 UTC (permalink / raw)
To: ffmpeg-devel
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
Fallout from 9787005846893c1d1c01cb8ac71abed91980b218.
While it doesn't make sense to pass --enable-x86asm option in a arm64
build, this is the only place where we don't check also for ARCH_X86
when we check for HAVE_X86ASM in code that is not x86-specific. As
a consequence we get:
```
Undefined symbols for architecture arm64:
"_ff_tx_codelet_list_float_x86", referenced from:
_codelet_list in tx.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
```
[-- Attachment #2: 0001-libavutil-tx-Check-also-for-ARCH_X86.patch --]
[-- Type: text/x-patch, Size: 1245 bytes --]
From c20c9ee960d23e5ca234e142f98f9a5c56243546 Mon Sep 17 00:00:00 2001
From: Alessandro Bono <alessandro.bono369@gmail.com>
Date: Tue, 18 Apr 2023 17:16:36 +0200
Subject: [PATCH] libavutil/tx: Check also for ARCH_X86
Fallout from 9787005846893c1d1c01cb8ac71abed91980b218.
While it doesn't make sense to pass --enable-x86asm option in a arm64
build, this is the only place where we don't check also for ARCH_X86
when we check for HAVE_X86ASM in code that is not x86-specific. As
a consequence we get:
```
Undefined symbols for architecture arm64:
"_ff_tx_codelet_list_float_x86", referenced from:
_codelet_list in tx.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
---
libavutil/tx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/tx.c b/libavutil/tx.c
index e25abf998f..fb9d9f477a 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -341,7 +341,7 @@ static const FFTXCodelet * const * const codelet_list[] = {
ff_tx_codelet_list_double_c,
ff_tx_codelet_list_int32_c,
ff_tx_null_list,
-#if HAVE_X86ASM
+#if ARCH_X86 && HAVE_X86ASM
ff_tx_codelet_list_float_x86,
#endif
#if ARCH_AARCH64
--
2.34.1
[-- Attachment #3: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-19 15:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-19 15:07 [FFmpeg-devel] [PATCH] 0001-libavutil-tx-Check-also-for-ARCH_X86.patch Alessandro Bono
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git