mun-lang / mun

Source code for the Mun language and runtime.
https://mun-lang.org
Other
1.81k stars 72 forks source link

Couldn't build mun from source #533

Closed Adomas-beep-boop-maggots closed 1 year ago

Adomas-beep-boop-maggots commented 1 year ago

Steps to reproduce this problem

  1. remove generated cargo artifacts (just in case) $ cargo clean $ cargo cache -a

  2. build $ cargo build --release

   Compiling other-stuff v69.69.69
error: could not find native static library `Polly`, perhaps an -L flag is missing?

error: could not compile `llvm-sys` due to previous error
warning: build failed, waiting for other jobs to finish...

System Info:

$ uname -a

Linux bababoi 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 GNU/Linux

$ lsb_release -a

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:    12
Codename:   bookworm

Rust env:

$ rustc --version

rustc 1.67.0 (fc594f156 2023-01-24)

$ cargo --version

cargo 1.67.0 (8ecd4f20a 2023-01-10)

llvm info

$ llvm-config --version

14.0.6
baszalmstra commented 1 year ago

This is related to #523

I think the gist there was to do:

apt-get install -y llvm-14 llvm-14-* liblld-14* libclang-rt-14-dev
apt download libpolly-14-dev && \
    dpkg --force-all -i libpolly-14-dev*
Adomas-beep-boop-maggots commented 1 year ago

This is related to #523

I think the gist there was to do:

apt-get install -y llvm-14 llvm-14-* liblld-14* libclang-rt-14-dev
apt download libpolly-14-dev && \
    dpkg --force-all -i libpolly-14-dev*

Confirmed, that did fix the problem. Thank you! If this is not a temporary problem, shouldn't this be mentioned in README.md or somewhere in the docs?