NetBSD Problem Report #59551

From www@netbsd.org  Thu Jul 24 17:25:08 2025
Return-Path: <www@netbsd.org>
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)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4C4E31A923C
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 24 Jul 2025 17:25:08 +0000 (UTC)
Message-Id: <20250724172506.E2FCD1A923E@mollari.NetBSD.org>
Date: Thu, 24 Jul 2025 17:25:06 +0000 (UTC)
From: sotiris@lamprinidis.com
Reply-To: sotiris@lamprinidis.com
To: gnats-bugs@NetBSD.org
Subject: openssl/libcrypto build fails with MKLLVM=yes (unsupported AVX-IFMA instructions)
X-Send-Pr-Version: www-1.0

>Number:         59551
>Category:       port-amd64
>Synopsis:       openssl/libcrypto build fails with MKLLVM=yes (unsupported AVX-IFMA instructions)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 24 17:30:00 +0000 2025
>Closed-Date:    Thu Jul 24 19:59:08 +0000 2025
>Last-Modified:  Thu Jul 24 19:59:08 +0000 2025
>Originator:     Sotiris Lamprinidis
>Release:        netbsd-current-20250719
>Organization:
>Environment:
NetBSD arm64 10.1_STABLE NetBSD 10.1_STABLE (GENERIC64.20250628095823Z) #0: Mon Jun 30 01:58:42 UTC 2025  builds@b3.aoa.netbsd.org:/home/builds/ab/netbsd-10/evbarm-aarch64/20250628095823Z-obj/home/source/ab/netbsd-10/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
Cross building for amd64-x86_64 from evbarm-aarch64 fails on external/apache2/openssl/lib/libcrypto:

/usr/src/crypto/external/apache2/openssl/lib/libcrypto/arch/x86_64/rsaz-2k-avxifma.S:86:1: error: unsupported instruction                                                                         
{vex} vpmadd52luq 0(%rsi),%ymm1,%ymm3                                                                                                                                                             
^       
[...]

This file was recently added during an update of openssl: https://mail-index.netbsd.org/source-changes/2025/07/17/msg157468.html

Seems like AVX-IFMA was introduced in clang 16 (https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html)?

This _should_ error on a native build, too. I will try a native build and follow up.
>How-To-Repeat:
build.sh command:    /usr/src/build.sh -ax86_64 -mamd64 -Bvanilla-llvm-202507241328CEST -D/home/sl/build/amd64-x86_64-vanilla-llvm/dest -O/home/sl/build/amd64-x86_64-vanilla-llvm/obj -R/home/sl/build/amd64-x86_64-vanilla-llvm/release -T/home/sl/build/amd64-x86_64-vanilla-llvm/tools -V TMPDIR=/tmp -V MAKECONF=/dev/null -V MKDEBUG=yes -U -u -j8 -cclang release
>Fix:

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/59551: openssl/libcrypto build fails with MKLLVM=yes
 (unsupported AVX-IFMA instructions)
Date: Thu, 24 Jul 2025 19:48:45 +0200

 Hasn't this been fixed earlier today?
 Can you try with newer source?

 Martin

From: Sotiris Lamprinidis <sotiris@lamprinidis.com>
To: gnats-bugs@netbsd.org
Cc: martin@duskware.de
Subject: Re: port-amd64/59551: openssl/libcrypto build fails with MKLLVM=yes
 (unsupported AVX-IFMA instructions)
Date: Thu, 24 Jul 2025 20:59:43 +0200

 Thank you for the prompt reply. My apologies for missing that, it is indeed fixed! 

 S.

 On Thu, Jul 24, 2025 at 05:50:02PM +0000, Martin Husemann via gnats wrote:
 > The following reply was made to PR port-amd64/59551; it has been noted by GNATS.
 > 
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: port-amd64/59551: openssl/libcrypto build fails with MKLLVM=yes
 >  (unsupported AVX-IFMA instructions)
 > Date: Thu, 24 Jul 2025 19:48:45 +0200
 > 
 >  Hasn't this been fixed earlier today?
 >  Can you try with newer source?
 >  
 >  Martin
 >  

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Thu, 24 Jul 2025 19:59:08 +0000
State-Changed-Why:
fixed, thanks for the report!


>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.