Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874039 - sys-apps/memtest86+-6.00 - ../.../main.c: error: indirect goto in function with
Summary: sys-apps/memtest86+-6.00 - ../.../main.c: error: indirect goto in function with
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
Depends on:
Reported: 2022-10-02 12:45 UTC by Toralf Förster
Modified: 2023-07-17 06:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

emerge-info.txt (emerge-info.txt,18.63 KB, text/plain)
2022-10-02 12:45 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,227.91 KB, text/plain)
2022-10-02 12:45 UTC, Toralf Förster
environment (environment,60.79 KB, text/plain)
2022-10-02 12:45 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,24.48 KB, application/x-bzip)
2022-10-02 12:45 UTC, Toralf Förster
sys-apps:memtest86+-6.00_beta3:20221002-123610.log (sys-apps:memtest86+-6.00_beta3:20221002-123610.log,18.64 KB, text/plain)
2022-10-02 12:45 UTC, Toralf Förster
build log for memtest86+-6.20-r1 (sys-apps:memtest86+-6.20-r1:20230717-031253.log,23.05 KB, text/x-log)
2023-07-17 03:22 UTC, ppw0

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-10-02 12:45:42 UTC
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
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 [openjdk-bin-11]
*)	Eclipse Temurin JRE [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 <>
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"
Comment 1 Toralf Förster gentoo-dev 2022-10-02 12:45:43 UTC
Created attachment 815425 [details]
Comment 2 Toralf Förster gentoo-dev 2022-10-02 12:45:44 UTC
Created attachment 815428 [details]
Comment 3 Toralf Förster gentoo-dev 2022-10-02 12:45:46 UTC
Created attachment 815431 [details]
Comment 4 Toralf Förster gentoo-dev 2022-10-02 12:45:47 UTC
Created attachment 815434 [details]
Comment 5 Toralf Förster gentoo-dev 2022-10-02 12:45:48 UTC
Created attachment 815437 [details]
Comment 6 Agostino Sarubbo gentoo-dev 2022-12-18 14:30:17 UTC
clang-stricter_tinderbox has reproduced this issue with version 6.00 - Updating summary.
Comment 7 Ben 2023-02-24 17:31:40 UTC
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.
Comment 8 Ben Kohler gentoo-dev 2023-05-19 13:06:16 UTC
Can anyone test if this still affects 6.10 and/or 6.20?
Comment 9 ppw0 2023-07-17 03:22:09 UTC
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.