problems with libclang
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Mon Jun 14 09:58:36 UTC 2021
My $0.02 is that the first LLVM bundle you tried was not correct. I had
this problem myself on 20.04 - e.g. the llvm for 19.04 does not work, as
it's probably compiled against different libraries.
My recommendation is that you always try, after downloading the
pre-built binary, to run bin/clang on the downloaded distribution and
see if that works. In my case that 19.04 download did *not* work.
So, like, you, I had to use a newer one and override the libclang-version.
Maurizio
On 13/06/2021 17:52, Giuseppe Barbieri wrote:
> Forget it, fixed with
>
> elect at 5800x:~/IdeaProjects/panama-foreign$ bash configure
> --with-boot-jdk=/home/elect/.jdks/openjdk-16.0.1
> --with-libclang=/home/elect/Documents/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04
> --with-libclang-version=12
>
> Also, I'd add to the readme to specify it works with the latest version,
> 12, but you have to specify it explicitly
>
> Ps: if locations are coherent between distros, I'd still prefer system
> clang though, just my 2c from a profane :)
>
> Giuseppe
>
> Il giorno dom 13 giu 2021 alle ore 14:15 Giuseppe Barbieri <
> elect86 at gmail.com> ha scritto:
>
>> It's funny because also the github action script fails at the exactly same
>> point
>>
>>
>> https://github.com/elect86/panama-foreign/runs/2813599221?check_suite_focus=true#step:9:277
>>
>> Il giorno dom 13 giu 2021 alle ore 10:31 Giuseppe Barbieri <
>> elect86 at gmail.com> ha scritto:
>>
>>> Hi,
>>>
>>> I'm giving a shot at building this myself, but I'm having issue with the
>>> clang step
>>>
>>> Recalling Maurizio's previous suggestion about using pre-compiled llvm
>>> instead of the distro ones (btw is this still recommended?), I downloaded
>>> from
>>>
>>> https://releases.llvm.org/download.html
>>>
>>> the llvm 9.0.0, by using
>>>
>>> Ubuntu 19.04
>>> <https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-pc-linux-gnu.tar.xz>
>>> (since I'm on Ubuntu 21.04)
>>>
>>> However, it still complains:
>>> https://gist.github.com/elect86/57835001c8e991ff2a98acda4e58b833
>>>
>>> Any idea why?
>>>
>>> Thanks in advance
>>> Giuseppe
>>>
More information about the panama-dev
mailing list