I think I have found the root cause of this fbtfs failure.
We pass --extra-ldflags for arm64 here in debian/rules:
ifeq (arm64,$(DEB_HOST_ARCH))
CONFIG += \
--extra-cflags="$(CPPFLAGS) $(CFLAGS)" \
--extra-cxxflags="$(CPPFLAGS) $(CXXFLAGS)" \
--extra-ldflags="$(CPPFLAGS) $(LDFLAGS)"
endif
These get passed into FFMPEG_CONFIGURATION configure:
for v in "$@"; do
r=${v#*=}
l=${v%"$r"}
r=$(sh_quote "$r")
FFMPEG_CONFIGURATION="${FFMPEG_CONFIGURATION# } ${l}${r}"
done
The problem is that LDFLAGS contains URL-encoded ELF package metadata.
The percent signs are then interpreted as printf conversion specifiers
in fftools/opt_common.c
av_log(NULL, level, "%sconfiguration: " FFMPEG_CONFIGURATION "\n",
indent);
This then causes the segfaults we see in the build
I tested a minimal patch to resolve the issue in this PPA, based on
7:8.1.1-4ubuntu1:
https://launchpad.net/~finnrg/+archive/ubuntu/lp-2158001-ffmpeg-segfault/+build/33007801
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2158001
Title:
ffmpeg: FTBFS on arm64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ffmpeg/+bug/2158001/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs