[Bug 264192] lang/ghc: poudriere based build used odd mix of devel/llvm10 and system toolchain

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 29 May 2022 01:06:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264192

--- Comment #16 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #15)

Based on the following sort of experiment, I'm no
longer getting the messages that I reported:

# git -C /usr/ports diff lang/ghc
diff --git a/lang/ghc/files/patch-aclocal.m4 b/lang/ghc/files/patch-aclocal.m4
index 2eb04c157343..dc83f27a23d7 100644
--- a/lang/ghc/files/patch-aclocal.m4
+++ b/lang/ghc/files/patch-aclocal.m4
@@ -14,7 +14,7 @@
  AC_DEFUN([FIND_LLVM_PROG],[
      # Test for program with and without version name.
 -    PROG_VERSION_CANDIDATES=$(for llvmVersion in `seq $4 -1 $3`; do echo
"$2-$llvmVersion $2-$llvmVersion.0"; done)
-+    PROG_VERSION_CANDIDATES=$(for llvmVersion in `seq $4 -1 $3`; do echo
"$2-$llvmVersion $2-$llvmVersion.0 $2$llvmVersion $2$llvmVersion0"; done)
++    PROG_VERSION_CANDIDATES=$(for llvmVersion in `seq $4 -1 $3`; do echo
"$2-$llvmVersion $2-$llvmVersion.0 $2$llvmVersion $2${llvmVersion}0"; done)
      AC_CHECK_TOOLS([$1], [$PROG_VERSION_CANDIDATES $2], [])
      AS_IF([test x"$$1" != x],[
          PROG_VERSION=`$$1 --version | awk '/.*version
[[0-9\.]]+/{for(i=1;i<=NF;i++){ if(\$i ~ /^[[0-9\.]]+$/){print \$i}}}'`



Watching with top shows paths like:

/usr/local/llvm10/bin/llc

which should be fine.

The build is still ongoing, so other issues may show up.
But they are not what was being reported in this bugzilla
submittal.

For reference:

. . .
checking for gawk... (cached) /usr/bin/awk
checking for armv7-unknown-freebsd-gnueabihf-llc-13... no
checking for armv7-unknown-freebsd-gnueabihf-llc-13.0... no
checking for armv7-unknown-freebsd-gnueabihf-llc13... no
checking for armv7-unknown-freebsd-gnueabihf-llc130... no
checking for armv7-unknown-freebsd-gnueabihf-llc-12... no
checking for armv7-unknown-freebsd-gnueabihf-llc-12.0... no
checking for armv7-unknown-freebsd-gnueabihf-llc12... no
checking for armv7-unknown-freebsd-gnueabihf-llc120... no
checking for armv7-unknown-freebsd-gnueabihf-llc-11... no
checking for armv7-unknown-freebsd-gnueabihf-llc-11.0... no
checking for armv7-unknown-freebsd-gnueabihf-llc11... no
checking for armv7-unknown-freebsd-gnueabihf-llc110... no
checking for armv7-unknown-freebsd-gnueabihf-llc-10... no
checking for armv7-unknown-freebsd-gnueabihf-llc-10.0... no
checking for armv7-unknown-freebsd-gnueabihf-llc10... no
checking for armv7-unknown-freebsd-gnueabihf-llc100... no
checking for armv7-unknown-freebsd-gnueabihf-llc-9... no
checking for armv7-unknown-freebsd-gnueabihf-llc-9.0... no
checking for armv7-unknown-freebsd-gnueabihf-llc9... no
checking for armv7-unknown-freebsd-gnueabihf-llc90... no
checking for armv7-unknown-freebsd-gnueabihf-llc... no
checking for llc-13... no
checking for llc-13.0... no
checking for llc13... no
checking for llc130... no
checking for llc-12... no
checking for llc-12.0... no
checking for llc12... no
checking for llc120... no
checking for llc-11... no
checking for llc-11.0... no
checking for llc11... no
checking for llc110... no
checking for llc-10... no
checking for llc-10.0... no
checking for llc10... llc10
checking llc10 version (10.0.1) is between 9 and 13... yes
checking for armv7-unknown-freebsd-gnueabihf-opt-13... no
checking for armv7-unknown-freebsd-gnueabihf-opt-13.0... no
checking for armv7-unknown-freebsd-gnueabihf-opt13... no
checking for armv7-unknown-freebsd-gnueabihf-opt130... no
checking for armv7-unknown-freebsd-gnueabihf-opt-12... no
checking for armv7-unknown-freebsd-gnueabihf-opt-12.0... no
checking for armv7-unknown-freebsd-gnueabihf-opt12... no
checking for armv7-unknown-freebsd-gnueabihf-opt120... no
checking for armv7-unknown-freebsd-gnueabihf-opt-11... no
checking for armv7-unknown-freebsd-gnueabihf-opt-11.0... no
checking for armv7-unknown-freebsd-gnueabihf-opt11... no
checking for armv7-unknown-freebsd-gnueabihf-opt110... no
checking for armv7-unknown-freebsd-gnueabihf-opt-10... no
checking for armv7-unknown-freebsd-gnueabihf-opt-10.0... no
checking for armv7-unknown-freebsd-gnueabihf-opt10... no
checking for armv7-unknown-freebsd-gnueabihf-opt100... no
checking for armv7-unknown-freebsd-gnueabihf-opt-9... no
checking for armv7-unknown-freebsd-gnueabihf-opt-9.0... no
checking for armv7-unknown-freebsd-gnueabihf-opt9... no
checking for armv7-unknown-freebsd-gnueabihf-opt90... no
checking for armv7-unknown-freebsd-gnueabihf-opt... no
checking for opt-13... no
checking for opt-13.0... no
checking for opt13... no
checking for opt130... no
checking for opt-12... no
checking for opt-12.0... no
checking for opt12... no
checking for opt120... no
checking for opt-11... no
checking for opt-11.0... no
checking for opt11... no
checking for opt110... no
checking for opt-10... no
checking for opt-10.0... no
checking for opt10... opt10
checking opt10 version (10.0.1) is between 9 and 13... yes
. . .

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.