| CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Sat, 17 Jan 2026 01:21:00 GMT
content-type: text/html
content-length: 115
location: https://gitlab.haskell.org/ghc/ghc/-/issues/19829
cache-control: no-cache
nel: {"max_age": 0}
x-gitlab-meta: {"correlation_id":"01KF4RN4AANBNSZWXX7QS3VKD6","version":"1"}
x-request-id: 01KF4RN4AANBNSZWXX7QS3VKD6
x-runtime: 0.057869
HTTP/2 200
server: nginx
date: Sat, 17 Jan 2026 01:21:01 GMT
content-type: text/html; charset=utf-8
content-length: 63591
cache-control: max-age=0, private, must-revalidate
content-security-policy:
etag: W/"c76dd2a1c9416977b6c4eb4f8f51ac73"
nel: {"max_age": 0}
permissions-policy: interest-cohort=()
referrer-policy: strict-origin-when-cross-origin
set-cookie: _gitlab_session=a668d21d3a59b84d859882b42b1dfb29; path=/; secure; HttpOnly; SameSite=None
vary: Accept
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-gitlab-meta: {"correlation_id":"01KF4RN4N4Q4D47JCEVA9QXXNR","version":"1"}
x-permitted-cross-domain-policies: none
x-request-id: 01KF4RN4N4Q4D47JCEVA9QXXNR
x-runtime: 0.482145
x-ua-compatible: IE=edge
x-xss-protection: 1; mode=block
configure llc (#19829) · Issues · Glasgow Haskell Compiler / GHC · GitLab
Skip to content
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 https://ftp.ports.debian.org/debian-ports experimental main\ndeb-src https://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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information