Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2026 10:49:13 +0000
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f7721e48cbb4 - main - shells/bash: fix build on powerpc64le/CURRENT
Message-ID:  <6a3d07a9.251ab.52eb1a53@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f7721e48cbb496979c781ddf7aea4073991647ef

commit f7721e48cbb496979c781ddf7aea4073991647ef
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-06-25 10:27:30 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-06-25 10:49:04 +0000

    shells/bash: fix build on powerpc64le/CURRENT
    
    Clang crashes with the default -mcpu, but builds with -O0:
    Assertion failed: (Subtarget->hasP9Vector() && "XSCMPUQP requires Power9 Vector"), function SelectCC, file /usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp, line 4271.
---
 shells/bash/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/shells/bash/Makefile b/shells/bash/Makefile
index 666236558a2f..701dc5646a50 100644
--- a/shells/bash/Makefile
+++ b/shells/bash/Makefile
@@ -63,6 +63,12 @@ CONFLICTS+=	bashc
 
 .include <bsd.port.options.mk>
 
+# clang crashes (XSCMPUQP requires Power9) building IEEE-128 long double at
+# -O1+ on the powerpc64le POWER8 baseline; build at -O0. CPUTYPE (POWER9+) is fine.
+.if ${ARCH} == powerpc64le && !defined(CPUTYPE) && ${OSVERSION} >= 1600019
+CFLAGS+=	-O0
+.endif
+
 .if ${PORT_OPTIONS:MSTATIC} || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ${NOSHARED:tl} != "no")
 CONFIGURE_ARGS+=	--enable-static-link
 LLD_UNSAFE=		yes


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3d07a9.251ab.52eb1a53>