Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339691 - sys-apps/memtest86+-4.10: does not start when loaded by grub on recent motherboard
Summary: sys-apps/memtest86+-4.10: does not start when loaded by grub on recent mother...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 11:29 UTC by Thomas
Modified: 2021-12-15 19:00 UTC (History)
4 users (show)

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


Attachments
memtest86+-5.31b-discard-note_gnu_property_Makefile.patch (memtest86+-5.31b-discard-note_gnu_property_Makefile.patch,475 bytes, patch)
2021-12-04 15:05 UTC, jospezial
Details | Diff
memtest86+-5.31b-discard-note_gnu_property_bin-lds.patch (memtest86+-5.31b-discard-note_gnu_property_bin-lds.patch,248 bytes, patch)
2021-12-04 15:05 UTC, jospezial
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2010-10-04 11:29:54 UTC
memtest86+ cannot be loaded any more since i switched to a new motherboard (MSI 890GXM-G65).  Grub refuses to load the zImage with an error message complaining about "cannot fit into memory".  This came as a surprise for a 150k+ application on a machine with 4 GB RAM. ;-)  This seems to be a well known problem if the BIOS requires too much memory below 640k.

As an alternative, using --type=netbsd and memtest.netbsd is recommended, but grub refuses to load the ELF executable below 1M.  I have found patches that recommend shifting the start address abv 1M (cf. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=319837), but this just increases the program size (and error message) and does not solve the problem.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-10-04 12:32:13 UTC
emerge --info please
Comment 2 Thomas 2010-10-04 12:37:51 UTC
Here you are.  grub is sys-boot/grub-0.97-r10, BTW.

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo-r9 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r9-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-1.12.13
Timestamp of tree: Sun, 03 Oct 2010 11:00:22 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fno-strict-aliasing -march=barcelona -mabm -mcx16 -mpopcnt -msahf -msse4a -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /usr/share/X11/xkb"
CXXFLAGS="-O2 -fno-strict-aliasing -march=barcelona -mabm -mcx16 -mpopcnt -msahf -msse4a -pipe"
DISTDIR="/scratch/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE en en_US en_GB"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr emacs emboss encode exif expat fam ffmpeg firefox flac fluidsynth fontconfig fortran gdbm gif gimp gmp gnome gnome-keyring gnutls gstreamer gtk hal iconv icu ithreads java jpeg jpeg2k lame lcms libnotify libproxy log4j logrotate lzma mad midi mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt4 raw readline reflection sdl session smp sndfile spell sqlite3 sse sse2 ssl startup-notification svg sysfs system-sqlite tcpd threads tiff truetype unicode usb vim-syntax vorbis x264 xcb xcomposite xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE en en_US en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Paolo Pedroni 2010-10-20 09:56:32 UTC
Same problem for me on an ASUS M4A79T Deluxe with 4 GB RAM. In comment #11 of bug #291729 it says that the problem with memtest.netbsd is caused by newer binutils and that using binutils-2.18-r3 fixes it. It would be nice if someone (not me, I wouldn't know where to start) would track down what the problem with newer versions of binutils is and fix that.
Comment 4 Thomas 2011-01-06 12:59:06 UTC
The problem with memtest.netbsd is still present with memtest86+-4.10-r1 (and the same version 2.20.1-r1 of binutils.
Comment 5 Michal Januszewski (RETIRED) gentoo-dev 2011-01-06 19:53:30 UTC
(In reply to comment #4)
> The problem with memtest.netbsd is still present with memtest86+-4.10-r1 (and
> the same version 2.20.1-r1 of binutils.

Do you see this problem with both the netbsd and the standard binary of memtest86+?  If so, could you please upgrade to the latest available version of binutils (2.21) and re-emerge memtest86+ to test whether it fixes the problem by any chance?
Comment 6 Thomas 2011-01-06 21:47:19 UTC
(In reply to comment #5)
> Do you see this problem with both the netbsd and the standard binary of
> memtest86+?

Nope.  I didn't try in a while, but standard binary never ceased working.  For some reason, the 2.20 ld doesn't seem to be able (or not intructed properly) to build ELFs to be loaded above 1 MB.

> If so, could you please upgrade to the latest available version of
> binutils (2.21) and re-emerge memtest86+ to test whether it fixes the problem
> by any chance?

I will try tomorrow.  Do you have any preference which 2.21 i should use?
Comment 7 Michal Januszewski (RETIRED) gentoo-dev 2011-01-06 21:58:20 UTC
(In reply to comment #6)
> Nope.  I didn't try in a while, but standard binary never ceased working.  For
> some reason, the 2.20 ld doesn't seem to be able (or not intructed properly) to
> build ELFs to be loaded above 1 MB.

I'm not sure if I read this correctly, but if the standard binary works fine, then why can't use that instead of the netbsd one?  

> I will try tomorrow.  Do you have any preference which 2.21 i should use?

Please just use the latest available version. 

Comment 8 Thomas 2011-01-07 15:28:17 UTC
(In reply to comment #7)
> 
> I'm not sure if I read this correctly, but if the standard binary works fine,
> then why can't use that instead of the netbsd one?  

The standard binary works on SOME machines, e. g. this notebook i am currently using.  One my desktop PC, grub refuses to load it since the BIOS allocates too much memory below 640k (cf. my original problem description).

> > I will try tomorrow.  Do you have any preference which 2.21 i should use?
> 
> Please just use the latest available version. 

I will try 2.21, as 2.21.51.0.n don't have any keywords yet.
Comment 9 Thomas 2011-01-07 15:40:33 UTC
(In reply to comment #8)
> I will try 2.21, as 2.21.51.0.n don't have any keywords yet.

No difference with 2.21. :-/

Comment 10 Giuseppe Vitillaro 2011-07-07 11:29:35 UTC
I have the same problem, with my new machine, an Intel DX58SO2 under an updated version of Gentoo. Same problem increasing, as suggested, address above 1Mb generates a larger executable, not loaded from Grub.

This for memtest85+-4.20 with ld 2.21.1.

Googling on the Net I found, in Fedora groups, the hint to add to ld flags the flag "-z max-page-size=0x1000". I tested it manually ... and it works ...

I added just a minor change to memtest86+-4.20.ebuild:

26,27c26,27
<       sed -i -e 's/$(LD) -s /$(LD) -s -z max-page-size=0x1000 /' -e 's/-nopie//' Makefile || die
<       sed -i -e 's,0x5000,0x100000,' memtest.lds || die
---
>       sed -i -e 's/$(LD) -s /$(LD) /' -e 's/-nopie//' Makefile || die
>       sed -i -e 's,0x10000,0x100000,' memtest.lds || die

and reemerged memtest86+.

Now grub load correctly memtest.netbsd on my machine and memtest 4.20 start.

Wonder if this may be a general solution.
Comment 11 Paolo Pedroni 2011-07-07 12:21:39 UTC
(In reply to comment #10)
> I have the same problem, with my new machine, an Intel DX58SO2 under an updated
> version of Gentoo. Same problem increasing, as suggested, address above 1Mb
> generates a larger executable, not loaded from Grub.
> 
> This for memtest85+-4.20 with ld 2.21.1.
> 
> Googling on the Net I found, in Fedora groups, the hint to add to ld flags the
> flag "-z max-page-size=0x1000". I tested it manually ... and it works ...

It sure builds. When I get home I'll try to see if it works for me as well on different hardware (AMD 790FX chipset).
Comment 12 Paolo Pedroni 2011-07-07 16:10:57 UTC
(In reply to comment #11)
> It sure builds. When I get home I'll try to see if it works for me as well on
> different hardware (AMD 790FX chipset).

Works like a charm.
Comment 13 Thomas 2011-07-09 23:21:05 UTC
Works here, too.  It seems the problem is solved.
Comment 14 Giuseppe Vitillaro 2011-07-13 09:18:38 UTC
Nice: it looks it works at least on 3 different machines, with different chipsets. Any hope a patch will emerge from the portage?
Comment 15 Paolo Pedroni 2011-11-07 09:02:55 UTC
Why closing it RESOLVED FIXED? The suggested fix is not in portage for any of the versions
Comment 16 Giuseppe Vitillaro 2011-11-07 09:10:11 UTC
(In reply to comment #15)
> Why closing it RESOLVED FIXED? The suggested fix is not in portage for any of
> the versions

If I can, I would like to associate with this question.
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-11-07 11:43:28 UTC
I can't reproduce on any of my machines at all.
ASUS P5Q Premium, 16GB RAM
ASUS P8Z68 Deluxe, 16GB RAM
Thinkpad X220, 8GB RAM
Comment 18 Paolo Pedroni 2011-12-15 11:52:14 UTC
(In reply to comment #17)
> I can't reproduce on any of my machines at all.
> ASUS P5Q Premium, 16GB RAM
> ASUS P8Z68 Deluxe, 16GB RAM
> Thinkpad X220, 8GB RAM

I can still reproduce it on an ASUS M4A79T Deluxe with 8 GB of RAM. I think it may be AMD specific at this point. Anyway this bug should be reopened.
Comment 19 Thomas 2011-12-15 13:02:15 UTC
(In reply to comment #18)
> 
> I can still reproduce it on an ASUS M4A79T Deluxe with 8 GB of RAM. I think it
> may be AMD specific at this point. Anyway this bug should be reopened.

The sed scripts mentioned in comment #10 are contained in memtest86+-4.20.ebuild dating from June 2011.  So the netbsd image can now be built with current binutils.

What is the exact problem you can reproduce?  You should be able to start the netbsd flavour of memtest (abv 1 MB), the "standard" version cannot be loaded on many machines (independent from being Intel or AMD), as there is not enough free memory below 1 MB (depending on BIOS).  This cannot be fixed, but using the netbsd image is a feasible solution.
Comment 20 Paolo Pedroni 2011-12-15 14:25:46 UTC
(In reply to comment #19)
> The sed scripts mentioned in comment #10 are contained in
> memtest86+-4.20.ebuild dating from June 2011.  So the netbsd image can now be
> built with current binutils.

No, they are not. In memtest86+-4.20.ebuild we have:
        sed -i -e 's/$(LD) -s /$(LD) /' -e 's/-nopie//' Makefile || die
        sed -i -e 's,0x10000,0x100000,' memtest.lds || die

and it does not work (neither standard nor netbsd version)

while in my overlay I have:
        sed -i -e 's/$(LD) -s /$(LD) -s -z max-page-size=0x1000 /' -e 's/-nopie//' Makefile || die
        sed -i -e 's,0x5000,0x100000,' memtest.lds || die

and it works (with the netbsd version)

> What is the exact problem you can reproduce?

The same in the original bug description.

> You should be able to start the
> netbsd flavour of memtest (abv 1 MB), the "standard" version cannot be loaded
> on many machines (independent from being Intel or AMD), as there is not enough
> free memory below 1 MB (depending on BIOS).  This cannot be fixed, but using
> the netbsd image is a feasible solution.

...that does not work in current portage...
Comment 21 Thomas 2011-12-15 15:54:39 UTC
You are right.

I just realised that my netbsd image is from April and it either worked back then (rather unlikely) or i manually fixed that build.

So portage is still broken.
Comment 22 Paolo Pedroni 2011-12-16 11:30:58 UTC
(In reply to comment #21)
> You are right.
> 
> I just realised that my netbsd image is from April and it either worked back
> then (rather unlikely) or i manually fixed that build.
> 
> So portage is still broken.

Can someone maybe fix it? The fix is known, after all. At least don't just leave it RESOLVED FIXED, when it's not.
Comment 23 Thomas 2015-06-20 14:41:50 UTC
Version 4.20-r2 is still lacking the two changes to get the netbsd image started: the base address in memtest.lds and the max-page size in Makefile.
Version 5.01 contains the corrected base address, but still lacks the max-page size.  (if the latter is missing, the netbsd image has a size > 1 MB and is not recognized as proper ELF image.

The boot image of 5.01 works well (if it can be loaded), the netbsd image (after fixes applied) does not: immediate crash with blue background.
Comment 24 Paolo Pedroni 2015-06-22 08:06:35 UTC
(In reply to Thomas from comment #23)
> Version 4.20-r2 is still lacking the two changes to get the netbsd image
> started: the base address in memtest.lds and the max-page size in Makefile.
> Version 5.01 contains the corrected base address, but still lacks the
> max-page size.  (if the latter is missing, the netbsd image has a size > 1
> MB and is not recognized as proper ELF image.
> 
> The boot image of 5.01 works well (if it can be loaded), the netbsd image
> (after fixes applied) does not: immediate crash with blue background.

I can confirm this.
Comment 25 globus 2017-01-28 17:28:03 UTC
Sorry my bad English.
Version 4.20-r1 amd64 when booting using LILO not working. The display shows the message:"Loading mem86+EBDA is big: kernel setup stack overlaps LILO second stage"

In lilo.conf:
image=/boot/memtest86plus/memtest.bin
        label=mem86+
Comment 26 Ben Kohler gentoo-dev 2021-09-16 15:40:54 UTC
Does this still affect 5.31b?
Comment 27 Thomas 2021-09-16 16:04:25 UTC
I think, memtest only works with BIOS booted machines -- not easy to find any more. ;-)
However, i happen to still have gentoo running on the board mentioned in the original description.  I will build it and try it.
Comment 28 Thomas 2021-09-16 16:27:11 UTC
Yes, this still affects 5.31b on a BIOS booted machine.

The "linux16" image immediately crashes and reboots the machine.
The "knetbsd" image hangs on an empty blue screen.

My comment abv is probably wrong, as https://bugs.gentoo.org/382757 suggests that people use it with EFI.
Comment 29 jospezial 2021-11-09 03:55:43 UTC
(In reply to Thomas from comment #28)
> Yes, this still affects 5.31b on a BIOS booted machine.
> 
> The "linux16" image immediately crashes and reboots the machine.
> The "knetbsd" image hangs on an empty blue screen.
> 

I can confirm this behaviour. 5.31b from opensuse tumbleweed works.
https://build.opensuse.org/package/show/openSUSE:Factory/memtest86+

from dmidecode:
Base Board Information
        Manufacturer: ASUSTeK Computer INC.
        Product Name: M5A78L-M/USB3

emerge --info memtest86+ gcc grub mtools cdrtools
Portage 3.0.28 (python 3.10.0-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r7, 5.15.1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.1-x86_64-AMD_Athlon-tm-_II_X2_240_Processor-with-glibc2.33
KiB Mem:     4026636 total,   1455072 free
KiB Swap:   11010040 total,  11010040 free
Timestamp of repository poly-c: Mon, 08 Nov 2021 09:21:20 +0000
Head commit of repository poly-c: b521bdfe342e5e93acf07d3bc3fcbdc9d5910741

Head commit of repository gentoo: 7a124633ca3850d15c30b3299eeb918f944a00ba

Timestamp of repository FireBurn: Sun, 31 Oct 2021 19:53:05 +0000
Head commit of repository FireBurn: 53ed99009cf16378a34fdceee76d4511087990ae

Timestamp of repository gamerlay: Thu, 04 Nov 2021 09:37:09 +0000
Head commit of repository gamerlay: 9827b098d519e82d194bd4a3962e4827ed10a8f9

Timestamp of repository java: Sun, 31 Oct 2021 19:53:09 +0000
Head commit of repository java: 75fd412a7737d541c9c1b11528f7f0a94ea8ec45

Head commit of repository kde: c6c186c3932ac7ba478cd20d3b9a85e7ff4c725e

Head commit of repository netfab-overlay: eb3db763b281530726b4c1ad74a1c438ef1dc53f

Timestamp of repository pg_overlay: Mon, 08 Nov 2021 09:21:20 +0000
Head commit of repository pg_overlay: 94a7b0ba94a51b633478efadc9bf5bce22cebd36

Timestamp of repository qt: Sun, 31 Oct 2021 19:53:12 +0000
Head commit of repository qt: ac9d3dde2e0467974b2692f0f83c18ea00850c26

Timestamp of repository seden: Thu, 04 Nov 2021 19:36:23 +0000
Head commit of repository seden: e90f06e5c15fc8113bfafe2328c7cab1ab8d50a7

Timestamp of repository stefantalpalaru: Mon, 08 Nov 2021 18:06:31 +0000
Head commit of repository stefantalpalaru: 96bc35771bf5acd0eae785ad05345e19c3d9e34f

Timestamp of repository wine: Sat, 06 Nov 2021 22:06:20 +0000
Head commit of repository wine: 23ff8c0d0832127961a73ef675b523dd92d4e6db

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
ccache version 4.4.2 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          3.9.8::gentoo, 3.10.0_p1::gentoo
dev-lang/rust-bin:        1.56.1::gentoo
dev-util/ccache:          4.4.2::gentoo
dev-util/cmake:           3.21.4::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.7::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

poly-c
    location: /var/db/repos/poly-c
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/poly-c.git
    masters: gentoo
    priority: -1001

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000

FireBurn
    location: /var/db/repos/FireBurn
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/FireBurn.git
    masters: gentoo

gamerlay
    location: /var/db/repos/gamerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gamerlay.git
    masters: gentoo

java
    location: /var/db/repos/java
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/java.git
    masters: gentoo

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo

netfab-overlay
    location: /var/db/repos/netfab-overlay
    sync-type: git
    sync-uri: https://github.com/netfab/overlay
    masters: gentoo

overlay_jl
    location: /usr/local/portage
    masters: gentoo
    priority: 0

pg_overlay
    location: /var/db/repos/pg_overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pg_overlay.git
    masters: gentoo

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qt.git
    masters: gentoo

seden
    location: /var/db/repos/seden
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/seden.git
    masters: gentoo

stefantalpalaru
    location: /var/db/repos/stefantalpalaru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/stefantalpalaru.git
    masters: gentoo

wine
    location: /var/db/repos/wine
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wine.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-write=y --keep-going --quiet-build=y --verbose-conflicts"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo https://ftp.gwdg.de/pub/linux/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp.tu-ilmenau.de/mirror/gentoo/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="64bit X Xaw3d a52 aac aacplus aacs aalib ace acl acpi activefilter admin aften alsa ambisonics amd64 ap apm apng archive arping audacious audiofile automount avif bash bazaar bdplus binary-drivers bluetooth bluray boost btrfs bzip2 cairo ccache cdda cddb cdio cdr cdrom charconv chm chroot cjk clang cli client colordiff colorpicker colors compress corefonts cpio cpufreq_bench cpuload crypt css cue cups curl custom-modes d3d9 dav1d dbus declarative dga dhcp dom doom doomsday dri dri3 drm dts dump dv dvb dvd dvdnav eap eap-sim eap-tls ebook egl elogind encode enscript epub equalizer exif extensions extras faac faad farstream fat fax fbcon fdformat fdk ffmpeg fftw firefox flac fluidsynth fontconfig foomatic foomaticdb fortran freedoom ftp fuse gadu gd gegl geoip gif git glamor gpg gphoto2 graphite gstreamer gtk gtk3 gtk4 gui gzip haptic hddtemp hdf hdf5 heretic hexen hid highlight history hpcups hpijs http http2 hwdb iconv icu id3tag idn imagemagick initramfs inotify introspection ipc ipod ipv6 jack java javafx jbootstrap jit jpeg jpeg2k kde kdenlive keyfinder ladspa lame lcms legacy-systray lensfun libaom libass libcanberra libdrm libglvnd libinput libkms libmpv libnotify librtmp libsamplerate libssh2 libtirpc libv4l libwww lightdm live lm-sensors lm_sensors logrotate lua lv2 lximage lz4 lzma lzo mad magic man matroska md5sum meanwhile melt mercurial metalink midi mikmod mime minizip mixer mjpeg mmap mms mng mobi mod modern-top modplug mono mount mouse mozilla mp3 mp4 mpeg mpeg2 mplayer mtp multilib multimedia multislot musepack musicbrainz nano-syntax ncat ncurses ndiff network networkmonitor newnet nls nmap-update normalize nowlistening nping nptl ntfs ntfsprogs ntp nvidia nvram obex ocr odbc odf offload ogg ogm openal opencl opengl openh264 openmp openssl opus osdmenu otr p2p pam pango panorama parse-clocks pcap pci pcre pcre16 pdf pdfimport phonon pipes pkcs11 plasma plugins pm-utils png policykit postproc postscript powermanagement ppds printsupport privacy projectm pulseaudio pvr python qalculate qml qrcode qt5 qtkeychain quicktime radio rar raw readline recording reiser4 reiserfs remote-access replaygain rtc rtmp rubberband sbsms scanner screensaver scripttools sdl seccomp secure-delete sensors serial serialport sftp sha512 shorten shout skins slang smi sndfile sockets sound soundtouch source-highlight speech speex spell split-usr sql sqlite sqlite3 squashfs ssh ssl staging startup-notification statistics statusnotifier stk stream subtitles sudo svg symlink sync-plugin-portage syslog sysstat system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libvpx system-sqlite sysv-utils szip taglib text texteffect tftp tftpd themes theora threads thumbnail tiff timidity tracepath traceroute translator truetype twolame udev udf udisks unicode update_drivedb upower urlpicpreview usb utils v4l v4l2 vaapi vala vamp vdpau vector-icons video videos virtualbox vkd3d vnc vorbis vpx vroot vst vulkan vulkaninfo wad wav wavpack wayland webgl webp webpresence widgets winbind winpopup wmf worldclock wps wxwidgets x264 x265 xattr xcb xcomposite xfs xine xinerama xinetd xkb xml xmp xorg xosd xpm xrandr xscreensaver xv xvid yahoo zenmap zip zlib zstd zvbi" ABI_X86="64" ADA_TARGET="gnat_2019" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="radeon amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

sys-apps/memtest86+-5.31b-r1::gentoo was built with the following:
USE="boot serial (-floppy) -iso" ABI_X86="(64)"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


sys-devel/gcc-11.2.0::gentoo was built with the following:
USE="(cxx) fortran graphite jit (multilib) nls nptl openmp pch (pie) sanitize ssp zstd (-ada) -custom-cflags -d -debug -doc (-fixed-point) -go (-hardened) (-libssp) -lto -objc -objc++ -objc-gc -pgo -systemtap -test -valgrind -vanilla -vtv" ABI_X86="(64)"
CFLAGS="-march=native -mtune=native -pipe -O2"
CXXFLAGS="-march=native -mtune=native -pipe -O2"
FEATURES="ccache unmerge-orphans strict network-sandbox unknown-features-warn usersandbox ebuild-locks usersync protect-owned qa-unresolved-soname-deps assume-digests news merge-sync userfetch binpkg-logs fixlafiles distlocks unmerge-logs pid-sandbox multilib-strict binpkg-multi-instance config-protect-if-modified xattr binpkg-dostrip parallel-fetch binpkg-docompress sfperms preserve-libs sandbox ipc-sandbox userpriv"


sys-boot/grub-2.06-r1::gentoo was built with the following:
USE="fonts mount nls sdl themes truetype -device-mapper -doc -efiemu -libzfs (-test)" ABI_X86="(64)" GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -qemu -qemu-mips -uboot -xen -xen-32 -xen-pvh"
CFLAGS=""
FEATURES="ebuild-locks parallel-fetch protect-owned usersandbox usersync network-sandbox pid-sandbox ccache binpkg-docompress binpkg-dostrip preserve-libs sfperms sandbox unmerge-logs unknown-features-warn qa-unresolved-soname-deps config-protect-if-modified merge-sync xattr assume-digests userpriv strict binpkg-logs news fixlafiles multilib-strict ipc-sandbox distlocks userfetch binpkg-multi-instance unmerge-orphans"
LDFLAGS=""


sys-fs/mtools-4.0.35::gentoo was built with the following:
USE="X" ABI_X86="(64)"


app-cdr/cdrtools-3.02_alpha09-r4::gentoo was built with the following:
USE="acl filecaps nls unicode -caps (-selinux)" ABI_X86="(64)"
CFLAGS="-march=native -mtune=native -O2 -pipe -finput-charset=ISO-8859-1 -fexec-charset=UTF-8"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -finput-charset=ISO-8859-1 -fexec-charset=UTF-8"
Comment 30 Ben Kohler gentoo-dev 2021-12-03 18:16:54 UTC
(In reply to Thomas from comment #28)
> Yes, this still affects 5.31b on a BIOS booted machine.
> 
> The "linux16" image immediately crashes and reboots the machine.
> The "knetbsd" image hangs on an empty blue screen.
> 
> My comment abv is probably wrong, as https://bugs.gentoo.org/382757 suggests
> that people use it with EFI.

I think this issue may have been fixed with the patch added in 5.31b-r1, can you try that or -r2 (which has yet another fix)?
Comment 31 Ben Kohler gentoo-dev 2021-12-03 18:20:43 UTC
And anyone in this bug who has an issue related to "image too big" etc, please try -r2.
Comment 32 jospezial 2021-12-04 00:18:18 UTC
(In reply to Ben Kohler from comment #30)
> (In reply to Thomas from comment #28)
> > Yes, this still affects 5.31b on a BIOS booted machine.
> > 
> > The "linux16" image immediately crashes and reboots the machine.
> > The "knetbsd" image hangs on an empty blue screen.
> > 
> > My comment abv is probably wrong, as https://bugs.gentoo.org/382757 suggests
> > that people use it with EFI.
> 
> I think this issue may have been fixed with the patch added in 5.31b-r1, can
> you try that or -r2 (which has yet another fix)?

I had the same with sys-apps/memtest86+-5.31b-r1 and sys-apps/memtest86+-5.31b-r2 also does not fix this.
Does somebody know what opensuse does different on their package?
compiler, flags?
Comment 33 Ben Kohler gentoo-dev 2021-12-04 11:29:14 UTC
There is an extra patch here [1] that may be of interest, could you try memtest86+-5.31b-discard-note_gnu_property.patch ?  It supposedly fixes a runtime crash caused by binutils:

Tue Apr 27 06:57:21 UTC 2021 - Josef Möllers <josef.moellers@suse.com>

- Due to recent binutils update the gnu assembler defaults to
  generate a ".note.gnu.property" section. The linker happily picks
  it up to the output binary that offsets the real code entry and
  crashes at runtime.
  This patch discards the ".note.gnu.property" section.
  [bsc#1185272, memtest86+-5.31b-discard-note_gnu_property.patch]



[1] https://build.opensuse.org/package/show/openSUSE%3AFactory/memtest86%2B
Comment 34 jospezial 2021-12-04 15:00:32 UTC
With the changes from the patch
Memtest86+ linux16 "/boot/memtest86plus/memtest.bin works
Memtest86+ (ELF) knetbsd "/boot/memtest86plus/memtest" still hangs on an empty blue screen with blinking cursor.

I could not find a way to download the patch raw so I did copy and paste the patch content from the site.

The suse patch failed to apply on Makefile because of all the gentoo patches.
We have to many patches that mess a lot around on the same lines in Makefile.
Please reorganize them!

>>> Preparing source in /var/tmp/portage/sys-apps/memtest86+-5.31b-r2/work/memtest86+-5.31b ...
 * Applying memtest86+-5.31b-gcc-473.patch ...                                                                                                                                                                                                                                                                                                     [ ok ]
 * Applying memtest86+-5.31b-hardcoded_cc.patch ...                                                                                                                                                                                                                                                                                                [ ok ]
 * Applying memtest86+-5.31b-no-clean.patch ...                                                                                                                                                                                                                                                                                                    [ ok ]
 * Applying memtest86+-5.31b-objcopy.patch ...
patching file Makefile
Hunk #2 succeeded at 37 with fuzz 1.                                                                                                                                                                                                                                                                                                               [ ok ]
 * Applying memtest86+-5.31b-test-random-cflags.patch ...                                                                                                                                                                                                                                                                                          [ ok ]
 * Applying memtest86+-5.31b-fix-gcc8-freeze-crash.patch ...
patching file Makefile
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 64 with fuzz 2.                                                                                                                                                                                                                                                                                                               [ ok ]
 * =======================================================================================================================================================================================================================================================================================================================================================
 * Applying user patches from /etc/portage/patches ...
 * Applying memtest86+-5.31b-discard-note_gnu_property_Makefile.patch ...                                                                                                                                                                                                                                                                          [ ok ]
 * Applying memtest86+-5.31b-discard-note_gnu_property_bin-lds.patch ...                                                                                                                                                                                                                                                                           [ ok ]
 * User patches applied.
 * =======================================================================================================================================================================================================================================================================================================================================================
>>> Source prepared.





The flags in compile phase are very inconsistent, note the "-O3 -fno-PIC":

>>> Compiling source in /var/tmp/portage/sys-apps/memtest86+-5.31b-r2/work/memtest86+-5.31b ...
make -j2 OBJCOPY=x86_64-pc-linux-gnu-objcopy 
x86_64-pc-linux-gnu-gcc -E -traditional head.S -o head.s
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o reloc.o reloc.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o main.o main.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -fno-strict-overflow -m32  -c -o test.o test.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o init.o init.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o lib.o lib.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o patn.o patn.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o screen_buffer.o screen_buffer.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o config.o config.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o cpuid.o cpuid.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o linuxbios.o linuxbios.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o pci.o pci.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o spd.o spd.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o error.o error.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o dmi.o dmi.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o controller.o controller.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o smp.o smp.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -m32  -c -o vmem.o vmem.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector   -c -o memsize.o memsize.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -Wa,-mx86-used-note=no -O3 -fno-PIC -m32  -c -o random.o random.c
x86_64-pc-linux-gnu-gcc -E -traditional bootsect.S -o bootsect.s
x86_64-pc-linux-gnu-gcc -E -traditional setup.S -o setup.s
x86_64-pc-linux-gnu-as -32 -mx86-used-note=no  -o head.o head.s
x86_64-pc-linux-gnu-as -32 -mx86-used-note=no  -o setup.o setup.s
x86_64-pc-linux-gnu-as -32 -mx86-used-note=no  -o bootsect.o bootsect.s
x86_64-pc-linux-gnu-ld --warn-constructors --warn-common -static -T memtest_shared.lds \
 -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o cpuid.o linuxbios.o pci.o spd.o error.o dmi.o controller.o smp.o vmem.o memsize.o random.o && \
x86_64-pc-linux-gnu-ld -shared -Bsymbolic -T memtest_shared.lds -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o cpuid.o linuxbios.o pci.o spd.o error.o dmi.o controller.o smp.o vmem.o memsize.o random.o
x86_64-pc-linux-gnu-ld: random.o: warning: relocation in read-only section `.text'
x86_64-pc-linux-gnu-ld: warning: creating DT_TEXTREL in a shared object
x86_64-pc-linux-gnu-objcopy -O binary memtest_shared memtest_shared.bin
x86_64-pc-linux-gnu-ld -T memtest.bin.lds bootsect.o setup.o -b binary \
memtest_shared.bin -o memtest.bin
x86_64-pc-linux-gnu-ld -s -T memtest.lds -z max-page-size=0x1000 -b binary memtest_shared.bin -o memtest
>>> Source compiled.
Comment 35 jospezial 2021-12-04 15:05:11 UTC
Created attachment 757425 [details, diff]
memtest86+-5.31b-discard-note_gnu_property_Makefile.patch

useable after all other patches
Comment 36 jospezial 2021-12-04 15:05:49 UTC
Created attachment 757426 [details, diff]
memtest86+-5.31b-discard-note_gnu_property_bin-lds.patch
Comment 37 Ben Kohler gentoo-dev 2021-12-09 12:55:20 UTC
I'm looking to get as many open bugs fixed as possible before I target a new stable.

With those last 2 patches applied (and possibly merging/reorganizing a few), we will have fixed everything but the knetbsd boot... I think that is the best we can do for now.

And honestly at this point if that issue is still a priority for you, we probably should open a fresh bug report about it, this one is old and all over the place.

Are you ok with that?
Comment 38 Larry the Git Cow gentoo-dev 2021-12-15 19:00:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c14a13e3a42edffe77d3472c81ab803f0f203d30

commit c14a13e3a42edffe77d3472c81ab803f0f203d30
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2021-12-15 18:58:55 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2021-12-15 18:59:53 +0000

    sys-apps/memtest86+: add fix from suse
    
    Closes: https://bugs.gentoo.org/339691
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 ...emtest86+-5.31b-discard-note_gnu_property.patch |  23 ++++
 sys-apps/memtest86+/memtest86+-5.31b-r3.ebuild     | 117 +++++++++++++++++++++
 2 files changed, 140 insertions(+)