Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails on ubuntu #60

Closed
t-sin opened this issue Mar 8, 2021 · 3 comments · Fixed by #61
Closed

build fails on ubuntu #60

t-sin opened this issue Mar 8, 2021 · 3 comments · Fixed by #61
Labels
bug Something isn't working CI Automatic build and installation good first issue Good for newcomers

Comments

@t-sin
Copy link
Contributor

t-sin commented Mar 8, 2021

Building dev branch fails on Ubuntu. Here is a part of build logs:

[ 97%] Building CXX object src/CMakeFiles/mimium_exe.dir/main.cpp.o
[100%] Linking CXX executable mimium
/usr/bin/ld: -lPolly が見つかりません
/usr/bin/ld: -lPollyISL が見つかりません
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/mimium_exe.dir/build.make:108: src/mimium] エラー 1
make[1]: *** [CMakeFiles/Makefile2:379: src/CMakeFiles/mimium_exe.dir/all] エラー 2
make: *** [Makefile:152: all] エラー 2

To reproduce

$ git clone https://github.com/mimium-org/mimium
$ cd mimium
$ cmake -B build
# fails this command
$ cmake --build ./build/ -j

Expected behavior

Building process successfully finishes.

Environment

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"

$ uname -a
Linux timberwolf 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ apt show llvm
Package: llvm
Version: 1:10.0-50~exp1
Priority: optional
Section: universe/devel
Source: llvm-defaults (0.50~exp1)
Origin: Ubuntu
...
@tomoyanonymous
Copy link
Contributor

tomoyanonymous commented Mar 8, 2021

I remember that llvm package in apt does not contain polly while it required by llvm-config --libs. I don't know why but that's why llvm is installed via homebrew in our Github Actions.

- if: contains(matrix.os, 'ubuntu')
run: |
brew install llvm@11
sudo apt-get install libalsa-ocaml-dev libfl-dev libbison-dev libz-dev libvorbis-dev libsndfile-dev libopus-dev gcc-9 ninja-build

Maybe installing with sudo apt-get install llvm-toolchain or installing with the automatic installation script in https://apt.llvm.org/ solves, I will make test PR soon.

@tomoyanonymous tomoyanonymous added bug Something isn't working CI Automatic build and installation good first issue Good for newcomers labels Mar 8, 2021
@tomoyanonymous
Copy link
Contributor

tomoyanonymous commented Mar 8, 2021

@t-sin
Copy link
Contributor Author

t-sin commented Mar 9, 2021

Thanks! I tried with official automatic installation script, it succeeded. And, it's a nice documentation.

I'll close this issue.

@t-sin t-sin closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI Automatic build and installation good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants