Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [llvm]

The tag has no usage guidance.

3
votes
3answers
142 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, ...
2
votes
1answer
167 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 ...
1
vote
0answers
539 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:...
0
votes
2answers
194 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 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-1 8) ) #1 SMP Debian 4.9.65-3+...
2
votes
2answers
76 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/...
3
votes
1answer
331 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 (...
0
votes
0answers
227 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 ...
3
votes
1answer
430 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 ...
1
vote
1answer
107 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 ...
4
votes
3answers
5k 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 ...
2
votes
1answer
497 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. ...
3
votes
4answers
993 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 ...
0
votes
2answers
9k 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/...
1
vote
1answer
279 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 ...
3
votes
1answer
294 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 ...
4
votes
3answers
5k 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, ...
2
votes
1answer
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 ...
2
votes
1answer
80 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 ...
3
votes
2answers
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 ...
0
votes
1answer
91 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?
241
votes
4answers
90k 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 ...
7
votes
3answers
7k 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?