Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2020 12:28:49 +0000 (UTC)
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366698 - head/sys/modules
Message-ID:  <202010141228.09ECSn64023501@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arichardson
Date: Wed Oct 14 12:28:48 2020
New Revision: 366698
URL: https://svnweb.freebsd.org/changeset/base/366698

Log:
  Don't build the malo module with clang 10
  
  Compiling it with LLVM 10 triggers https://bugs.llvm.org/show_bug.cgi?id=44351
  While LLVM 11 is the default compiler, I regularly build with
  CROSS_TOOLCHAIN=llvm10 or use system packages for clang on Linux/macOS and
  those have not been updated to 11 yet.

Modified:
  head/sys/modules/Makefile

Modified: head/sys/modules/Makefile
==============================================================================
--- head/sys/modules/Makefile	Wed Oct 14 12:28:41 2020	(r366697)
+++ head/sys/modules/Makefile	Wed Oct 14 12:28:48 2020	(r366698)
@@ -224,7 +224,7 @@ SUBDIR=	\
 	mac_seeotheruids \
 	mac_stub \
 	mac_test \
-	malo \
+	${_malo} \
 	md \
 	mdio \
 	mem \
@@ -802,6 +802,12 @@ _cloudabi64=	cloudabi64
 .if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
 _bcm283x_clkman=  bcm283x_clkman
 _bcm283x_pwm=  bcm283x_pwm
+.endif
+
+.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000)
+# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11:
+# https://bugs.llvm.org/show_bug.cgi?id=44351
+_malo=	malo
 .endif
 
 SUBDIR+=${MODULES_EXTRA}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010141228.09ECSn64023501>