configure llc
Summary
RiscV64 build 9.2.1-alpha2 bad configure llvm detection
checking /usr/bin/llc version (12.0.0) is between 10 and 12... no
configure: We only support llvm 10 to 12 (found 12.0.0).
checking /usr/bin/opt version (12.0.0) is between 10 and 12... no
configure: We only support llvm 10 to 12 (found 12.0.0).
Steps to reproduce
From ubuntu hirsute
docker run -it juampe/ubuntu:hirsute-riscv64 /bin/bash
URL="https://github.com/juampe/base-cabal/raw/main/repo/cabal-install-3.4.0.0-riscv64-ubuntu-21.04-bootstrapped.tar.xz"
wget "$URL" -O /cabal.tar.xz
tar -xf /cabal.tar.xz -C /tmp/
mv /tmp/cabal /usr/local/bin/
cd /
rm -Rf /cabal.tar.xz
/usr/local/bin/cabal --version
apt-get -y install debian-ports-archive-keyring
/bin/echo -ne "deb http://ftp.ports.debian.org/debian-ports experimental main\ndeb-src http://ftp.ports.debian.org/debian-ports experimental main\n"> /etc/apt/sources.list.d/experimental.list
/bin/echo -ne "Package: ghc\nPin: release a=experimental\nPin-Priority: 600" > /etc/apt/preferences.d/ghc.pref
apt-get -y update
apt-get -y install --no-install-recommends apt-utils bash curl wget ca-certificates automake build-essential pkg-config \
libffi7 libffi-dev libgmp-dev libssl-dev libtinfo-dev libsystemd-dev zlib1g-dev make g++ tmux git jq wget libncursesw5 libtool \
autoconf libnuma1 libnuma-dev ghc llvm llvm-12 llvm-12-dev clang libclang-12-dev ghc
apt-get -y build-dep ghc
git clone --recurse-submodules --tags https://gitlab.haskell.org/ghc/ghc.git /ghc
cd /ghc
git checkout ghc-9.2.1-alpha2
git submodule update --init
./boot
ALEX=~/.cabal/bin/alex HAPPY=~/.cabal/bin/happy ./configure
Expected behavior
Detect LLVM libraries to configure build
Environment
- GHC version used: The Glorious Glasgow Haskell Compilation System, version 8.10.2
- cabal-install version 3.4.0.0 compiled using version 3.4.0.0 of the Cabal library
Optional:
- Operating System:Linux 5.11.0-16-generic #17 (closed)-Ubuntu SMP Wed Apr 14 20:12:43 UTC 2021 riscv64 riscv64 riscv64 GNU/Linux
- System Architecture: qemu RiscV64