Skip to main content

Questions tagged [llvm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
2 answers
82 views

dnf won't let me overwrite or change packages

I want to do something that is supposed to be simple in any package manager, install a package, in my case it is this specifically lib64MLIRVectorToSPIRV13. LC_ALL=C dnf install ...
ArtEze's user avatar
  • 55
0 votes
1 answer
27 views

Error: Option 'debug-counter' registered more than once

I have a error when open the following programs: LxTerminal, Octopi, Qemu, Google Chrome, Geany, CodeBlocks, Blender, Baobab, Czkawka, Peek, FSearch, Gnumeric, QT Designer, Gtk3-Demo, KNewStuff Dialog,...
ArtEze's user avatar
  • 55
1 vote
0 answers
518 views

How to install LLVM-14 on Ubuntu?

I have installed LLVM-14 on Ubuntu manually. Everything seems to work fine except ld during the compilation of cargo-bpf in Rust cargo. = note: /usr/bin/ld: cannot find -lLLVM-14 collect2: ...
HyperX Pro's user avatar
1 vote
0 answers
106 views

Build Linux kernel with prebuilt object files

I am trying to build the files in the kernel mm/ directory with a personalized LLVM compiler, then link them together with the rest of the kernel to get a bootable kernel. I extracted the exact ...
ihi's user avatar
  • 11
0 votes
1 answer
162 views

How to [cross-]compile Linux kernel with no vDSO support?

I am compiling the Linux kernel for SPARC64 [with LLVM] and I'd like to not compile the vDSO code. I removed all the vDSO-related arguments in arch/sparc/Makefile, arch/sparc/Kbuild and arch/sparc/...
ihi's user avatar
  • 11
1 vote
1 answer
934 views

Clang producing a symbol lookup error

i am getting this error whenever i run clang even with the --version flag clang: symbol lookup error: /usr/lib/libclang-cpp.so.14: undefined symbol: ...
causewe's user avatar
  • 11
1 vote
1 answer
363 views

What purpose does ELF's stack-size metadata have?

I was reading the Rust Unstable Book, and I saw a new feature for emit-stack-sizes, The rustc flag -Z emit-stack-sizes makes LLVM emit stack size metadata. It goes on to say NOTE: This LLVM feature ...
Evan Carroll's user avatar
  • 31.6k
1 vote
1 answer
6k views

How to fix missing libLLVM-13.so libraries

I am using Arch Linux and I installed llvm using sudo pacman -S llvm. I installed some programs like ccls, clangd, cppcheck etc. and none of them are working: ccls: error while loading shared ...
Mohamed Irfan's user avatar
4 votes
0 answers
6k views

How to change clang-10, llvm-10, etc to clang, llvm, etc.?

I use Spacemacs, and installed llvm-10, clnag-10, clangd-10, and all related packages, in Debian 10. Used the following command to install llvm $ sudo bash -c "$(wget -O - https://apt.llvm.org/...
tom_kp's user avatar
  • 43
1 vote
0 answers
1k views

Arch: broken lib-llvm dependency using postgresql on Manjaro

I have a database server running Manjaro 20.0 and postgresql 12.1-2 A recent update has prevented complex queries from running - simple select queries execute ok, but larger select queries with joins ...
meepmeep's user avatar
  • 121
0 votes
1 answer
248 views

llvm 8 install size

I recently compiled llvm from source since I wanted to look at 8. However, it is a whooping 56G in size once installed. That seems excessive. How can I reduce the size of the installation? ; du -h -...
Sardathrion - against SE abuse's user avatar
2 votes
0 answers
260 views

How to build LLVM/Clang isolated from the host system?

I'm looking for something like the Linux From Scratch process for GCC, but for LLVM/Clang. Linux From Scratch builds an isolated GCC/binutils toolchain, and because of the rather monolithic nature, `...
user364814's user avatar
4 votes
4 answers
3k views

Embedding binary data into an executable using LLVM tools

In the past I have embedded resource files (images) into programs by first converting them to .o files using the GNU linker. For example: ld -r -b binary -o file.o file.svg Starting with FreeBSD 12, ...
Richard Smith's user avatar
2 votes
1 answer
467 views

lldb hangs on Alpine Linux

I'm trying to run lldb on Alpine Linux V3.8, but when trying to debug any program, it hangs. I'm using lldb 5.0.1-r0 from the edge/testing repository, which is the only version available currently in ...
valiano's user avatar
  • 659
6 votes
0 answers
4k views

Could NOT find LLVM (missing: LLVM_DIR)

I'm trying to install darktable from source on Fedora 27. I've installed all dependencies, but when I run cmake I got error: -- Could NOT find LLVM (missing: LLVM_DIR) CMake Warning at CMakeLists.txt:...
jcubic's user avatar
  • 9,982
0 votes
2 answers
576 views

Can't add symbols to ../../lib/libLLVMSupport.a when building llvm-6.0.0 using llvm-5.0

Here is the information about my system and the compiler I use: Linux version 4.9.0-5-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-1 8) ) #1 SMP Debian 4.9.65-3+...
JiaHao Xu's user avatar
  • 228
2 votes
3 answers
277 views

Made an oupsie while testing some protection and executed rm /usr/bin/clang*

I deleted clang. I tried to use apt to uninstall clang, and then re-install it but I get this error: Setting up clang (1:3.8-33ubuntu3.1) ... update-alternatives: error: alternative path /usr/bin/...
curious student's user avatar
3 votes
1 answer
765 views

Problem with installing Clang: undefined symbol: LLVMInitializeMipsAsmParser

I'm new to Linux environment. Few days ago I've installed Fedora on my laptop. I want to complie some C++ source code but having trouble with Clang. First, after installing it with yum I see an error (...
pmakal's user avatar
  • 31
1 vote
0 answers
334 views

Error compiling LLVM

I am trying to compile LLVM with LLD (I really just want LLD but it requires the rest of LLVM iirc). When I try to run CMake (cmake ..) in my build folder (inside the source folder), I get the ...
Rogue's user avatar
  • 185
3 votes
1 answer
603 views

Installing Swift on Freebsd Cannot Make LLVM

I am attempting to build Swift using the new port on FreeBSD 10.2, however, make throws the following error : llvm38-3.8.0_3 is marked as broken: LLDB does not build with Python 3. What do I need ...
Brandon Bradley's user avatar
1 vote
1 answer
219 views

Filebased SELinux booleans

I'm trying to get numba running on my Debian server in SELinux enforcing mode. Numba is build on LLVMs jit compiler. The problem is, LLVM insists on having memory, which is writeable and executable at ...
Michael's user avatar
  • 225
4 votes
3 answers
6k views

LLVM error instead of 3D acceleration in Debian stable

I've installed Debian stable (Jessie) on a Acer Notebool (Aspire ES 15). If I try to start some programs (qtcreator, processing) I see: LLVM ERROR: Cannot select: intrinsic %llvm.x86.sse41.pblendvb ...
Bernd's user avatar
  • 89
2 votes
1 answer
951 views

Building an LFS system using ELLCC

Firstly, this isn't my first attempt at building an LFS system - I've already successfully built LFS 7.8 and LFS 7.8-systemd. I would like to replace GCC+GlibC with ELLCC, which is Clang/LLVM+musl. ...
Forrest Carroll's user avatar
4 votes
4 answers
6k views

What does make -jn mean?

I am trying to install LLVM on my CentOS machine. In the installation tutorial of LLVM, a flag -jn is specified along with make. It says to perform make -jn and also says "Choose n such that make ...
Rakesh R Nair's user avatar
0 votes
2 answers
12k views

Make python 2.7 the default python in centos, making an alias didn't work

I am trying to install llvm on my centos 6.7. While running the configure file it says it throws the error checking for python >= 2.7... not found configure: error: found python 2.6.6 (/usr/...
Rakesh R Nair's user avatar
1 vote
1 answer
856 views

can i change the name of executable during compilation

I'm compiling LLVM/Clang but want to give a different name to the executable. Is there a special option I need to be using, like --binary-name? The trick is that I want to rename every tool that comes ...
flashburn's user avatar
  • 671
3 votes
1 answer
504 views

Can't seem to set environmental variables in fish correctly?

this is my fish configuration: set -x CGO_CPPFLAGS 'llvm-config --cppflags' set -x CGO_LDFLAGS 'llvm-config --ldflags --libs --system-libs all' set -x CGO_CXXFLAGS '-std=c++11' I've tried running ...
Jon Blow's user avatar
10 votes
3 answers
11k views

what's the name of ubuntu package contains llvm linker lld

Would like to try this lld from LLVM. The doc on apt could be found here, but I don't know which package contains the lld executable. It seems the purpose of lld is to remove the system dependency, ...
Albert Netymk's user avatar
2 votes
1 answer
2k views

How to fix my llvm installation?

So I am a new Linux user and new to programming, and I wanted to learn some of the C style languages. One of the online courses that I'm taking provides me a vm environment with clang installed and ...
kchak's user avatar
  • 123
2 votes
1 answer
86 views

How can I get a regular gcc etc. under HomeBrew under Mac OSX Mountain Lion?

I have a Mac with command-line developer tools installed, including Apple's LLVM C compiler, present as /bin/gcc. How can I get a real gcc installed so that e.g. make will see the standard gcc ...
Christos Hayward's user avatar
3 votes
2 answers
4k views

llvm and clang on CentOS 5 without root permissions?

I am trying to have llvm and clang on a centOS 5 without root permissions. I tried to do it downloading llvm and clang src packages and trying the ususal configure, make and make install steps as ...
719016's user avatar
  • 701
0 votes
1 answer
111 views

Is there a clang-snapshot?

I've just discovered the wonderful gcc-snapshot package for Ubuntu. I don't see a clang-snapshot or llvm-snapshot package though. Is there an equivalent for clang?
user7543's user avatar
  • 256
254 votes
4 answers
96k views

Why is FreeBSD deprecating GCC in favor of Clang/LLVM?

So I was surfing the net and stumbled upon this article. It basically states that FreeBSD, starting from Version 10 and above will deprecate GCC in favor of Clang/LLVM. From what I have seen around ...
NlightNFotis's user avatar
  • 7,605
12 votes
5 answers
11k views

Is there a Linux distro compiled with clang/llvm?

Is there a Linux distro compiled with clang/llvm? It looks like as of late 2010 the kernel was working. If not, would it be more likely to be a technical or licensing issue?
user avatar