NetBSD Problem Report #58855

From simonb@thistledown.com.au  Wed Nov 27 09:50:49 2024
Return-Path: <simonb@thistledown.com.au>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CD7761A9238
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 27 Nov 2024 09:50:48 +0000 (UTC)
Message-Id: <20241127095045.12EE86AF6@thoreau.thistledown.com.au>
Date: Wed, 27 Nov 2024 20:50:45 +1100 (AEDT)
From: Simon Burge <simonb@NetBSD.org>
Reply-To: Simon Burge <simonb@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: libb2 can compile intel-specific x86 binary package
X-Send-Pr-Version: 3.95

>Number:         58855
>Category:       pkg
>Synopsis:       libb2 may compile intel-specific x86 binary package
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bsiegert
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 27 09:55:00 +0000 2024
>Closed-Date:    Sun Sep 28 12:18:51 +0000 2025
>Last-Modified:  Sun Sep 28 12:18:51 +0000 2025
>Originator:     Simon Burge
>Release:        NetBSD 10.99.10 (not really important)
>Organization:
Not really.
>Environment:
	System: (not really important)
	Architecture: x86_64
	Machine: amd64

>Description:
	security/libb2 builds using the -march=native compiler option.
	If built on an Intel x86, it'll include AVX512 instructions (at
	least vmovdqu8, maybe others?).  If a binary package is built on
	an Intel host and then installed on AMD host anything that tries
	to use the functions in this package will die with an illegal
	instruction error.

>How-To-Repeat:
	Build binary package of libb2 on an Intel x86, install the
	package on an AMD x86, try to run borg-backup and watch
	python die with an illegal instruction.

>Fix:
	Patch out -march=native from the libb2 build?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 27 Nov 2024 10:21:59 +0000
Responsible-Changed-Why:
Over to maintainer


From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58855 CVS commit: pkgsrc/security/libb2
Date: Sat, 27 Sep 2025 15:20:51 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Sat Sep 27 15:20:51 UTC 2025

 Modified Files:
 	pkgsrc/security/libb2: Makefile

 Log Message:
 libb2: disable arch-native code

 In the default configuration, libb2 will compile with "-march=native"
 compiler flags. This means that the compiled package might not work when
 used on a different machine of the same architecture, e.g. one without
 AVX512.

 Fixes PR pkg/58855 by Simon Burge, sorry for taking so long :)


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/security/libb2/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->needs-pullups
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 27 Sep 2025 15:32:55 +0000
State-Changed-Why:
Fixed in trunk. This should also go into 2025Q3.
.


From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58855 CVS commit: [pkgsrc-2025Q3] pkgsrc/security/libb2
Date: Sat, 27 Sep 2025 23:22:26 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Sat Sep 27 23:22:26 UTC 2025

 Modified Files:
 	pkgsrc/security/libb2 [pkgsrc-2025Q3]: Makefile

 Log Message:
 Pullup ticket #7007 - requested by bsiegert
 security/libb2: Bug fix

 Revisions pulled up:
 - security/libb2/Makefile                                       1.4

 ---
    Module Name:    pkgsrc
    Committed By:   bsiegert
    Date:           Sat Sep 27 15:20:51 UTC 2025

    Modified Files:
            pkgsrc/security/libb2: Makefile

    Log Message:
    libb2: disable arch-native code

    In the default configuration, libb2 will compile with "-march=native"
    compiler flags. This means that the compiled package might not work when
    used on a different machine of the same architecture, e.g. one without
    AVX512.

    Fixes PR pkg/58855 by Simon Burge, sorry for taking so long :)


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.3.2.1 pkgsrc/security/libb2/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: needs-pullups->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sun, 28 Sep 2025 12:18:51 +0000
State-Changed-Why:
Pulled up


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.