Summary: | sys-apps/memtest86+-6.00 - ../.../main.c: error: indirect goto in function with | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Ben Kohler <bkohler> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bkohler |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/41257 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tar.bz2 sys-apps:memtest86+-6.00_beta3:20221002-123610.log build log for memtest86+-6.20-r1 |
Description
Toralf Förster
![]() 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(-) |