clang -c -std=c11 -Wall -Wextra -Wshadow -m64 -march=x86-64 -mno-mmx -mno-sse -mno-sse2 -fpic -fno-builtin -ffreestanding -fomit-frame-pointer -fno-stack-protector -Os -I../boot -I../system -I../lib -I../tests -I../app -Iapp -o app/interrupt.o ../app/interrupt.c -MMD -MP -MT app/interrupt.o -MF app/interrupt.d clang -c -std=c11 -Wall -Wextra -Wshadow -m64 -march=x86-64 -mno-mmx -mno-sse -mno-sse2 -fpic -fno-builtin -ffreestanding -fomit-frame-pointer -fno-stack-protector -Os -I../boot -I../system -I../lib -I../tests -I../app -Iapp -o app/main.o ../app/main.c -MMD -MP -MT app/main.o -MF app/main.d as -64 boot/bootsect.s -o boot/bootsect.o as -64 boot/setup.s -o boot/setup.o ../app/main.c:172:5: error: indirect goto in function with no address-of-label expressions goto *new_start_addr; ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-j4-20221001-020003 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.2.0 * clang/llvm (if any): clang version 15.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin /usr/lib/llvm/15 15.0.1 Python 3.10.7 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.64.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11] *) Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17] 3) Eclipse Temurin JRE 8.345_p01 [openjdk-jre-bin-8] Available Java Virtual Machines: [1] openjdk-bin-11 [2] openjdk-jre-bin-8 [3] openjdk-jre-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit ffd974ef87604e20495370342e9dbcb42a4dbc82 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sun Oct 2 11:31:48 2022 +0000 2022-10-02 11:31:48 UTC emerge -qpvO sys-apps/memtest86+ [ebuild N ] sys-apps/memtest86+-6.00_beta3 USE="bios64 boot efi64 -bios32 -efi32 -iso32 -iso64"
Created attachment 815425 [details] emerge-info.txt
Created attachment 815428 [details] emerge-history.txt
Created attachment 815431 [details] environment
Created attachment 815434 [details] etc.portage.tar.bz2
Created attachment 815437 [details] sys-apps:memtest86+-6.00_beta3:20221002-123610.log
clang-stricter_tinderbox has reproduced this issue with version 6.00 - Updating summary.
Workaround is to use gcc instead of clang? Probably should add in title that this is a clang build of memtest86+ issue? I happened to chance upon this bug on one of my machines that somehow has 'cc' pointing to clang by default. Changing to gcc worked around the problem.
Can anyone test if this still affects 6.10 and/or 6.20?
Created attachment 865630 [details] build log for memtest86+-6.20-r1 With memtest86+-6.20-r1 on clang-16.0.6, an additional macro instantiation error occurs prior.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8307d43ab2d75e997ec160f3d80a1d42a7ad0334 commit 8307d43ab2d75e997ec160f3d80a1d42a7ad0334 Author: Z. Liu <zhixu.liu@gmail.com> AuthorDate: 2025-02-28 06:23:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-04-10 10:17:34 +0000 sys-apps/memtest86+: fix pkgcheck warnings & force compiler to gcc clang failed with: ../app/main.c:172:5: error: indirect goto in function with no address-of-label expressions for code below: uintptr_t *new_start_addr = (uintptr_t *)(addr + startup - _start); ... goto *new_start_addr; Closes: https://bugs.gentoo.org/874039 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/41257 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/memtest86+/memtest86+-6.20-r1.ebuild | 15 ++++++++++++--- sys-apps/memtest86+/memtest86+-7.00.ebuild | 15 ++++++++++++--- sys-apps/memtest86+/memtest86+-7.20.ebuild | 15 ++++++++++++--- 3 files changed, 36 insertions(+), 9 deletions(-)