NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-i386/61069: gcc 12.5 on NetBSD 11.1 i386 fails to compile GLSMAC Github project



The following reply was made to PR port-i386/61069; it has been noted by GNATS.

From: "Lubomir G. Diakov" <zr90004%gmail.com@localhost>
To: "Martin Husemann via gnats" <gnats-admin%NetBSD.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost, port-i386-maintainer%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost
Subject: Re: port-i386/61069: gcc 12.5 on NetBSD 11.1 i386 fails to compile
 GLSMAC Github project
Date: Sat, 28 Nov 2026 09:52:55 -0800

 I agree Martin. I did in a way already let them know.
 
 I had a bug filed on the GLSMAC github earlier, when GLSMAC would not
 compile on NetBSD i386 at all, but already did on amd64, thus alerting
 them that perhaps their code is not 32 bit clean, as it were. I also
 gave them the CMakeLists.txt "patch" to force i486 to default to
 march=pentium, which only affects compiling on amd64 hardware for i386
 targets. On amd64 targets, the patch evaluates to false, and gcc
 defaults to native.
 
 Here is their bug:
 https://github.com/afwbkbc/glsmac/issues/57
 
 On Sat, 28 Nov 2026 16:10:02 +0000 (UTC)
 "Martin Husemann via gnats" <gnats-admin%NetBSD.org@localhost> wrote:
 
 > The following reply was made to PR port-i386/61069; it has been noted
 > by GNATS.
 > 
 > From: Martin Husemann <martin%duskware.de@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: 
 > Subject: Re: port-i386/61069: gcc 12.5 on NetBSD 11.1 i386 fails to
 > compile GLSMAC Github project
 > Date: Sat, 28 Nov 2026 17:09:48 +0100
 > 
 >  On Fri, Nov 27, 2026 at 11:25:01PM +0000, Lubomir G. Diakov via
 > gnats wrote:
 >  >  I understand (and support) keeping older architectures supported.
 >  >  And am willing to sacrifice some speed, but find being able to
 >  >  distribute takes precedence, when I need to guarantee it works on
 >  > x86, even if that means setting the bar a bit higher than netbsd
 >  > would. This project, as written, requires pentium based on your
 >  > advice, so other than learning to code to refactor it, I have no
 >  > other choice.  
 >  
 >  It may not even be a concious choice of the GLSMAC project, but just
 > some unlucky type choice. Using 64bit values for some atomic
 > operations might be required by algorithms, but often it just happens
 > and nobody notices because everything they use and test on is 64bit
 > anyway. 
 >  You can bring the topic up upstream at GLSMAC and find out if they
 > might reduce the requirements (e.g. by making some type that is 64bit
 > now a 32bit value on 32bit builds).
 >  
 >  Martin
 >  
 



Home | Main Index | Thread Index | Old Index