From 054f98174b80dab18cae85c1fb64052eb85b008a Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 17 Feb 2020 18:51:52 +0000 Subject: [PATCH 1/2] Work around riscv buildworld failure where it cannot link the final clang binary, with: ld: error: undefined symbol: llvm::EnableABIBreakingChecks >>> referenced by PlistDiagnostics.cpp >>> PlistDiagnostics.o:(.sdata+0x0) in archive /usr/obj/usr/src/riscv.riscv64/lib/clang/libclang/libclang.a [... many more like this ...] --- lib/clang/libllvm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index 3b34694b312..a7b141d02d5 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -825,6 +825,7 @@ SRCS_MIN+= Remarks/RemarkSerializer.cpp SRCS_MIN+= Remarks/RemarkStringTable.cpp SRCS_MIN+= Remarks/YAMLRemarkSerializer.cpp SRCS_MIN+= Support/AArch64TargetParser.cpp +SRCS_MIN+= Support/ABIBreak.cpp SRCS_MIN+= Support/APFloat.cpp SRCS_MIN+= Support/APInt.cpp SRCS_MIN+= Support/APSInt.cpp From 816dab96c16f0640a443bad6b88df547ea8367d6 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 17 Feb 2020 19:20:47 +0000 Subject: [PATCH 2/2] Disable new clang 10.0.0 warnings about misleading indentation in sys/contrib/ncsw/Peripherals/FM/fman_ncsw.c. This is horribly formatted contributed code, and fixing it is not worth the effort. --- sys/powerpc/conf/dpaa/files.dpaa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/conf/dpaa/files.dpaa b/sys/powerpc/conf/dpaa/files.dpaa index ba53da3d54d..ecad2690c5f 100644 --- a/sys/powerpc/conf/dpaa/files.dpaa +++ b/sys/powerpc/conf/dpaa/files.dpaa @@ -74,7 +74,7 @@ contrib/ncsw/Peripherals/FM/fm_muram.c optional dpaa \ contrib/ncsw/Peripherals/FM/fm_ncsw.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/FM/fman_ncsw.c optional dpaa \ - no-depend compile-with "${DPAA_COMPILE_CMD}" + no-depend compile-with "${DPAA_COMPILE_CMD} ${NO_WMISLEADING_INDENTATION}" contrib/ncsw/Peripherals/QM/qm.c optional dpaa \ no-depend compile-with "${DPAA_COMPILE_CMD}" contrib/ncsw/Peripherals/QM/qm_portal_fqr.c optional dpaa \