Questions tagged [llvm]
32 questions
252
votes
4 answers
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 the net so far, Clang/LLVM is a fairly ambitious…
NlightNFotis
- 7,525
- 7
- 32
- 38
12
votes
4 answers
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?
James Snelling
10
votes
3 answers
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, but clang doesn't have lld built-in. (Not…
Albert Netymk
- 203
- 1
- 2
- 6
6
votes
1 answer
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:381 (message):
Could not find LLVM 3.9+
What…
jcubic
- 9,612
- 16
- 54
- 75
4
votes
3 answers
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, the default linker has changed from GNU's to…
Richard Smith
- 1,243
- 1
- 8
- 13
4
votes
3 answers
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
I think the reason is a not working 3D…
Bernd
- 89
- 1
- 6
4
votes
4 answers
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 doesn’t run in to swap space issue."
What is the…
Rakesh R Nair
- 365
- 5
- 7
- 14
3
votes
2 answers
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 such:
wget…
719016
- 681
- 3
- 15
- 30
3
votes
0 answers
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/llvm.sh)"
Then, changed clangd-10 to clangd using the…
tom_kp
- 33
- 1
- 4
3
votes
1 answer
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 (whenever I call clang in the console):
clang:…
pmakal
- 31
- 1
3
votes
1 answer
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 to do to resolve this?
Brandon Bradley
- 339
- 3
- 9
3
votes
1 answer
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 make on my LLVM-based project, but I get the…
Jon Blow
- 33
- 2
2
votes
1 answer
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 instead of the LLVM compiler?
Christos Hayward
- 529
- 1
- 6
- 17
2
votes
0 answers
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, `the process is relatively simple.
But how would…
user364814
- 21
- 1
2
votes
1 answer
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 the Alpine repos:
lldb policy:
5.0.1-r0:
…
valiano
- 629
- 4
- 16