https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-misc/dahdi-3.1.0-r2 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses a clang/LLVM toolchain. If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004. This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Created attachment 658916 [details] build.log build log and emerge --info
To be honest - this looks like you're trying to compile against kernel sources that weren't prepared. And looking at the build log it's using gcc here, not clang. With CC=clang I do get a number of errors regarding unsupported options, which are mostly -Wno-unused-but-set-variable being passed at various locations (ie, assuming GCC). Anyway, upstream bug opened, patch submitted (and included into -r3 I'm about to push). https://issues.asterisk.org/jira/browse/DAHLIN-385
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b3b4a73fe525c228f3b60727f59ffc0b7ca1aa commit c3b3b4a73fe525c228f3b60727f59ffc0b7ca1aa Author: Jaco Kroon <jaco@uls.co.za> AuthorDate: 2021-01-08 12:02:40 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2021-01-22 06:35:22 +0000 net-misc/dahdi: version bump to fix compiler problems. 1. clang/LLVM 2. Kernel header changes (5.9 onwards) Three additional patches added to the patch set (two of which from dahdi-linux/next, and one just submitted): 09-dahdi-3.1.0-r3-remove-32bit-userspace-on-64bit-support.patch 10-dahdi-3.1.0-r3-ioctl-kernel-5.9.patch 11-dahdi-3.1.0-r3-clang.patch 09 is a dependency for 10, which is required since kernel version 5.9. The former seems to affect 32-bit userspace on 64-bit kernels only, and according to upstream there are no tests for this. 10 fixes the compile issues for kernels 5.9 onwards (which dropped ioctl from proc_ops structures. 11 imports clang fixes as per https://issues.asterisk.org/jira/browse/DAHLIN-385 Signed-off-by: Jaco Kroon <jaco@uls.co.za> Closes: https://bugs.gentoo.org/748240 Closes: https://bugs.gentoo.org/740818 Closes: https://github.com/gentoo/gentoo/pull/18990 Signed-off-by: Joonas Niilola <juippis@gentoo.org> net-misc/dahdi/Manifest | 1 + net-misc/dahdi/dahdi-3.1.0-r3.ebuild | 107 +++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+)