You are not logged in.

#1 Today 03:26:21

KassieTeller
Member
Registered: 2023-07-29
Posts: 4

polly + clang unusable in arch?

(I had no idea what was an appropriate topic for this to go under, this seemed like the best option) just today I tried using polly with clang to compile something. I tried testing it first on a basic C file with only a main function and print, trying to compile it via

clang -O3 -mllvm -polly file.c

only returned an error saying llvm option parser couldn't recognize -polly. the llvm wiki says llvm and its tools have to all be built in the same revision in order for clang and polly to work together, I'd assume this was the case since llvm and its tools all come from one PKGBUILD in arch repos. am I doing something wrong or is this a known issue?

Offline

#2 Today 10:18:27

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 646

Re: polly + clang unusable in arch?

https://polly.llvm.org/docs/UsingPollyWithClang.html:

Polly is available through clang, opt, and bugpoint, if Polly was checked out into tools/polly before compilation.

For Arch's llvm or clang packages compilation it wasn't. At least I didn't find any mention of polly in llvm's or clang's PKGBUILDs.

Offline

#3 Today 16:16:27

KassieTeller
Member
Registered: 2023-07-29
Posts: 4

Re: polly + clang unusable in arch?

is there a reason why Polly is even packaged in the arch repos if it's not even compiled with clang and llvm? this seems very counterintuitive

Offline

#4 Today 16:40:19

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 646

Re: polly + clang unusable in arch?

https://bugs.archlinux.org/task/66226#comments

Since it's packaged separately, clang needs "-Xclang -load -Xclang LLVMPolly.so" in addition to "-mllvm -polly"

Disclaimer: I don't know if it really works.

Offline

Board footer

Powered by FluxBB