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

llvm-lib is not automatically found on Ubuntu in LLVM 6 #196

Closed
JayFoxRox opened this issue Oct 7, 2019 · 8 comments
Closed

llvm-lib is not automatically found on Ubuntu in LLVM 6 #196

JayFoxRox opened this issue Oct 7, 2019 · 8 comments
Labels
upstream issue Issues that track upstream problems

Comments

@JayFoxRox
Copy link
Member

JayFoxRox commented Oct 7, 2019

As we noticed in #156 (comment), Ubuntu 18.04 LTS seems to use LLVM 6 by default. However, in their LLVM 6 package not all binaries are found in PATH, even though they are still installed.

In #156 (comment) I've additionally described that upstream probably won't fix it themselves.
They did fix it for LLVM 7 in the past but do not plan to backport the change to LLVM 6.

Possible workarounds include:

  • Installing a more recent LLVM version (recommended)
  • PATH=$PATH:/usr/lib/llvm-6.0/bin so the binaries are found (recommended)
  • Manually creating a symbolic link per-binary

A workaround must be added to the wiki (here). Ideally to install a newer LLVM altogether.

This issue might also affect other Debian distributions.

@Natetronn
Copy link

Thanks! I ran into this problem just now. I didn't have success with the first work around (had trouble installing llvm-9; kept saying something about unmet dependency llvm-9-dev, even though I installed that as well) but, the second working around seemed to have worked.

@dracc
Copy link
Contributor

dracc commented Dec 19, 2019

Preferable way to create symlink on Debian-based distros such as Ubuntu:
sudo update-alternatives --install /usr/bin/llvm-lib llvm-lib /usr/bin/llvm-lib-6.0 10

You should probably consider installing a newer version of llvm though.

@JayFoxRox JayFoxRox pinned this issue Apr 10, 2020
@thrimbor
Copy link
Member

While Ubuntu 18.04 LTS is still supported, they don't plan to fix this. For people still affected by this issue I recommend to either switch to 20.04 LTS, or, if that's not a fitting solution for them, use the nxdk Docker image.

@thrimbor thrimbor added the upstream issue Issues that track upstream problems label Nov 30, 2020
@Margen67
Copy link
Contributor

Margen67 commented Apr 1, 2021

@thrimbor
Copy link
Member

thrimbor commented Apr 1, 2021

@Margen67 It looks like you're not installing the dependencies.

@Margen67
Copy link
Contributor

Margen67 commented Apr 1, 2021

@Margen67 It looks like you're not installing the dependencies.

You were right. Installing lld and llvm fixed the issue.

@JayFoxRox
Copy link
Member Author

While Ubuntu 18.04 LTS is still supported, they don't plan to fix this. For people still affected by this issue I recommend to either switch to 20.04 LTS, or, if that's not a fitting solution for them, use the nxdk Docker image.

What's the lowest supported LLVM version now?
There's also #119 (comment) which requires LLVM 9 or higher.

@thrimbor
Copy link
Member

The oldest LLVM version that, to the best of my knowledge, does not have any issues in one of the distributions, is LLVM 10 (<9 can't build import libs, 9 crashes with debug builds). It's also the default version on Ubuntu 20.04 LTS.
I didn't find any documentation of what the LLVM project considers to be a supported release, but it seems like they only release bugfix versions until the next major version is released (newest one is LLVM 12, released last Wednesday).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream issue Issues that track upstream problems
Development

No branches or pull requests

5 participants