Package Details: libffi6 3.2.1-1

Git Clone URL: https://aur.archlinux.org/libffi6.git (read-only, click to copy)
Package Base: libffi6
Description: A portable, high level programming interface to various calling conventions (ABI version 6)
Upstream URL: http://sourceware.org/libffi
Licenses: MIT
Submitter: oefd
Maintainer: oefd
Last Packager: oefd
Votes: 5
Popularity: 0.000000
First Submitted: 2020-04-11 14:12 (UTC)
Last Updated: 2020-04-11 14:12 (UTC)

Latest Comments

mentalpagefault commented on 2026-02-03 16:30 (UTC)

Applying the patch that fixes the test suite for C23 resolves the failures.

https://github.com/libffi/libffi/commit/0859f8431242d5adff21420b9cab538d2af527b5

diff --git a/PKGBUILD b/PKGBUILD
index a0c0086..4add9d7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,8 +10,14 @@ url="http://sourceware.org/libffi"
 license=('MIT')
 depends=('glibc')
 checkdepends=('dejagnu')
-source=(https://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz)
-sha1sums=('280c265b789e041c02e5c97815793dfc283fb1e6')
+source=(https://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz
+       https://github.com/libffi/libffi/commit/0859f8431242d5adff21420b9cab538d2af527b5.patch)
+sha1sums=('280c265b789e041c02e5c97815793dfc283fb1e6'
+          '0080a6ea86eeb13c146ed4d3da07ff3deaa9df32')
+
+prepare() {
+  patch -d "$srcdir/$_pkgbasename-$pkgver" -Np1 -i ../0859f8431242d5adff21420b9cab538d2af527b5.patch
+}

 build() {
   cd "$srcdir/$_pkgbasename-$pkgver"

sunohonmy commented on 2025-07-02 08:58 (UTC)

still getting the same issue as @micwoj92 is there a fix for this yet?

micwoj92 commented on 2025-06-10 21:41 (UTC)

Several check fail:

Running ../../testsuite/libffi.call/call.exp ...
FAIL: libffi.call/va_struct2.c -W -Wall -Wno-psabi -O0 (test for excess errors)
FAIL: libffi.call/va_struct2.c -W -Wall -Wno-psabi -O2 (test for excess errors)
FAIL: libffi.call/va_struct2.c -W -Wall -Wno-psabi -O3 (test for excess errors)
FAIL: libffi.call/va_struct2.c -W -Wall -Wno-psabi -Os (test for excess errors)
FAIL: libffi.call/va_struct2.c -W -Wall -Wno-psabi -O2 -fomit-frame-pointer (test for excess errors)
FAIL: libffi.call/va_struct3.c -W -Wall -Wno-psabi -O0 (test for excess errors)
FAIL: libffi.call/va_struct3.c -W -Wall -Wno-psabi -O2 (test for excess errors)
FAIL: libffi.call/va_struct3.c -W -Wall -Wno-psabi -O3 (test for excess errors)
FAIL: libffi.call/va_struct3.c -W -Wall -Wno-psabi -Os (test for excess errors)
FAIL: libffi.call/va_struct3.c -W -Wall -Wno-psabi -O2 -fomit-frame-pointer (test for excess errors)

        === libffi Summary ===

# of expected passes        1860
# of unexpected failures    10
make[3]: *** [Makefile:397: check-DEJAGNU] Error 1
make[3]: Leaving directory '/build/libffi6/src/libffi-3.2.1/x86_64-unknown-linux-gnu/testsuite'
make[2]: *** [Makefile:471: check-am] Error 2
make[2]: Leaving directory '/build/libffi6/src/libffi-3.2.1/x86_64-unknown-linux-gnu/testsuite'
make[1]: *** [Makefile:1596: check-recursive] Error 1
make[1]: Leaving directory '/build/libffi6/src/libffi-3.2.1/x86_64-unknown-linux-gnu'
make: *** [Makefile:3097: check] Error 2
make: Leaving directory '/build/libffi6/src/libffi-3.2.1'
==> ERROR: A failure occurred in check().
    Aborting...