Created attachment 871872 [details] buildl.log Compiling media-libs/netpbm-11.4.2 with CFLAGS="-O1 -pipe -mtune=generic" results in a buggy executable `pamtosvg`. If using -O0, -O2, -O3 or -Os, the bug vanishes. Also if not having -mtune=generic. How to reproduce: $ export RGBDEF=/var/tmp/portage/media-libs/netpbm-11.4.2/work/netpbm-11.4.2/lib/rgb.txt $ ppmmake black 20 20 | ppmdraw -script="line 5 2 15 17" > test.pam I will atach this test.pam to the bug. $ pamtosvg test.pam pamtosvg: zero determinant of C matrix This is the bug. This is the test: /var/tmp/portage/media-libs/netpbm-11.4.2/work/netpbm-11.4.2/test $ ./pamtosvg.test Test 1. Should print match pamtosvg: zero determinant of C matrix no match Test 2. Should print match match I did not find the cause, or a shorter program that has the same bug. The test file (test.pam) is the always same, so the bug is not in generating it.
Created attachment 871873 [details] emerge --info
Created attachment 871874 [details] the test file
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afc03d9c325d6449e575c5554b43b9cb26a10bd8 commit afc03d9c325d6449e575c5554b43b9cb26a10bd8 Author: Viorel Munteanu <ceamac@gentoo.org> AuthorDate: 2023-10-25 04:43:45 +0000 Commit: Viorel Munteanu <ceamac@gentoo.org> CommitDate: 2023-10-25 04:43:45 +0000 media-libs/netpbm: add 11.4.3 Bug fixed upstream. Closes: https://bugs.gentoo.org/914999 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org> media-libs/netpbm/Manifest | 1 + media-libs/netpbm/netpbm-11.4.3.ebuild | 253 +++++++++++++++++++++++++++++++++ 2 files changed, 254 insertions(+)
Do you know which commit fixed it? I'm curious.
https://sourceforge.net/p/netpbm/code/4776/