Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 831971

Summary: sys-apps/memtest86+-5.31b-r3 fails to compile: clang-13: error: unsupported argument -mx86-used-note=no to option Wa
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Ben Kohler <bkohler>
Status: RESOLVED OBSOLETE    
Severity: normal CC: bkohler
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
patch1 for memtest86+
patch2 for memtest86+

Description Agostino Sarubbo gentoo-dev 2022-01-24 12:22:23 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/memtest86+-5.31b-r3 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-24 12:22:26 UTC
Created attachment 763493 [details]
build.log

build log and emerge --info
Comment 2 dieter ferdinand 2022-02-07 11:08:24 UTC
Created attachment 764523 [details, diff]
patch1 for memtest86+
Comment 3 dieter ferdinand 2022-02-07 11:09:15 UTC
Created attachment 764524 [details, diff]
patch2 for memtest86+

this two patches solves the makefile problem
Comment 4 Agostino Sarubbo gentoo-dev 2022-02-07 11:17:06 UTC
Hello, thanks for the patch. I believe you can speed up the process by making a pull-request via Github.
Comment 5 Ben Kohler gentoo-dev 2022-06-29 14:55:38 UTC
We specifically added that (clang-)unsupported option to fix bug 339691, I wonder if a different option to accomplish the same thing is needed, or if clang is unaffected by that bug to begin with.