Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2022 10:20:57 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        freebsd-haskell@freebsd.org, Gleb Popov <arrowd@freebsd.org>, Brooks Davis <brooks@FreeBSD.org>, =?utf-8?Q?Mika=C3=ABl_Urankar?= <mikael@FreeBSD.org>
Subject:   lang/ghc bootstrap compiler build likely using wrong llc: using /usr/local/llvm12/bin/llc despite BOOT_LLVM_VERSION=10 ( for BOOT_GHC_VERSION=8.10.7 )
Message-ID:  <1C0A0307-647C-458B-9CA3-307867EDFEEF@yahoo.com>
References:  <1C0A0307-647C-458B-9CA3-307867EDFEEF.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

For ghc-9.2.4 builds, should the early:

/wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.7-boot/lib/ghc-8.10.7/bin/ghc . . .

related command activity be using:

/usr/local/llvm12/bin/llc . . .

commands? Or should it be using:

/usr/local/llvm10/bin/llc . . .

commands?

What I see is only /usr/local/llvm12/bin/llc
based despite the Makefile file listing
BOOT_LLVM_VERSION as 10:

LLVM_VERSION?=          12
BOOT_GHC_VERSION=       8.10.7
# LLVM version that bootstrap compiler uses
BOOT_LLVM_VERSION=      10

I ask because the existing builds on the servers for armv7 again
look like they did when a previous incorrect mix of llc versions
had been in use. The old example was:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264192

The fix for that changed the out of memory error behavior at the
time. The garbage-in/garbage-out status seemed to lead more out
of memory failures.

I've not checked on ld or other toolchain commands but I
suppose that if the wrong llc is in use then the wrong
versions of other toolchain commands is a possibility
that should be looked into.


OVERALL . . .

If the

/wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.7-boot/lib/ghc-8.10.7/bin/ghc . . .

related activity should use:

/usr/local/llvm10/bin/llc . . .

then the port needs to be fixed to use the commands from
the right toolchain.


===
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1C0A0307-647C-458B-9CA3-307867EDFEEF>