Stack Exchange Network

Stack Exchange network consists of 174 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 [clang]

Clang is a C/C++ language compiler frontend for LLVM.

0
votes
0answers
20 views

No candidate version found for clang-3.2. Unable to apply some actions, aborting

Hello, all I am trying to install clang version 3.2. I want this version because I want some external options that don't exist in newer versions(dumping-objects-memory-layout). My problem is that i ...
0
votes
0answers
68 views

trying to compile chromium-browser from source, but failing with 'map' file not found

I have downloaded source for chromium-browser. Also: apt-get source chromium-browser sudo apt install build-essential sudo apt-get build-dep chromium-browser I have installed libraries (and more):...
0
votes
0answers
155 views

Cannot proceed on clang-6.0 installation

I followed this and this, but I get a dependencies requirement I do not know how to proceed. I might have done something wrong beforehand. I tried the following sudo apt install clang-6.0 Reading ...
0
votes
0answers
83 views

Problem with installing libclang-3.8-dev:i386 on 64 bit ubuntu 18.04

I was trying to install a libclang-3.8-dev:i386 package, when I met this problem: sudo apt-get install libclang-3.8-dev:i386 Reading package lists... Done Building dependency tree ...
0
votes
0answers
122 views

Compile a 32-bit libfuzzer application on the 64-bit linux

Recently, I've been familiar with libfuzzer and want to give it a go. Well, as far you know for using Sanitizer it's better to compile the binary in 32bit mode because it on 64bit system requests a ...
5
votes
5answers
7k views

Installing clang 6.0 on Ubuntu 18.04 LTS Bionic

How can I install clang on Ubuntu 18.04 LTS Bionic?
1
vote
0answers
248 views

Unable to find STL headers in Ubuntu 18.04

I am running the following command, with the verbose output below it: $ clang++ -m32 -I ../include -o format.cc.o -c format.cc -v clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) Target: i386-pc-...
0
votes
0answers
182 views

Installing clang 5.0 properly so that other libs can see it

I followed this guide to install clang 5.0 on Ubuntu 16.04 build. I was trying to build a ruby gem source which uses clang 5.0. However, it can't see certain libs, specifically clang/Lex/Token.h ...
0
votes
0answers
329 views

Why is clang-format: command not found [duplicate]

The command was installed on Ubuntu 18.04 LTS using: sudo apt-get install clang-format with the following result: Reading package lists... Done Building dependency tree Reading state ...
1
vote
1answer
811 views

vim-clang-format: clang-format is not found

I installed clang-format on Ubuntu 18.04 LTS with sudo apt install clang-format and the installation was successful. I can execute clang-format-6.0 now, but when I use ClangFormat in vim, it tells me ...
0
votes
1answer
441 views

Ubuntu 16.04: libclang 6 cannot be installed

I am currently trying to install doxygen, which has an unmet dependency libclang.so.6. I followed these instructions for installing this package, but it has its own dependencies. The following ...
2
votes
1answer
2k views

How can Clang static analyzer (scan-build) be installed on Ubuntu 18.04?

In Ubuntu 16.04, I could: $ sudo apt install clang $ scan-build --help USAGE: scan-build [options] <build command> [build options] ... But in Ubuntu 18.04, after installing clang, the scan-...
0
votes
1answer
284 views

Ubuntu 16.04: Doxygen fails claiming it cannot open libclang

I am currently trying to install doxygen on my computer, but upon running doxygen through the command line it fails with this error: doxygen: error while loading shared libraries: libclang.so.6: ...
3
votes
1answer
626 views

Unmet dependencies when installing Clang++ [duplicate]

I get the following error when trying to sudo apt-get install Clang++: Note, selecting 'clang-tidy-4.0' for regex 'Clang+' Note, selecting 'python-clang-5.0' instead of 'python-clang-x.y' Some ...
0
votes
1answer
198 views

unable to install pyside2 on ubuntu

I have clonned the pyside2 repo using $ git clone --recursive https://codereview.qt-project.org/pyside/pyside-setup and installed llvm3.9 using https://askubuntu.com/a/799998/653786 But when I run ...
2
votes
1answer
804 views

Difference between libasan packes (libasan0, libasan2, libasan3, etc)

There are many similar named packages for libasan (the address sanitizer for gcc and clang): $ apt-cache search libasan | grep -v dbg | grep -v cross libasan2 - AddressSanitizer -- a fast memory ...
0
votes
1answer
532 views

VMware Player(14.1.1) segfaults on clang-built kernel and clang-built VMware kernel modules

As part of my clang/LLVM experiments and explorations with different clang-built kernel versions, I tried to install VMware Player 14.1.1(x86_64) on Ubuntu 17.10 x86_64 with clang-built VMware kernel ...
1
vote
0answers
512 views

Change clang selected gcc installation

I'm working on a Ubuntu 16.04 system. First I run sudo apt install gcc clang gcc-multilib g++-multilib but then I realised that I need the gcc version 4.9 to compile my code, so I delete the 5.4 : ...
1
vote
1answer
689 views

How do I build a 4.15.7 kernel with LLVM/clang and a Nvidia 390.25 x86_64 driver on Ubuntu 17.10 x86_64?

This is about my successful experience in bringing up Ubuntu 17.10 x86_64 on the clang-built Linux 4.15.7 kernel(latest stable as of now) and proprietary Nvidia 390.25(latest as of now) driver for my ...
1
vote
0answers
36 views

Numpy can't exist on the same system as Unreal Engine - aptitude?

I'm having an exceedingly difficult time resolving dependencies for Unreal Engine on Ubuntu 16.04 LTS. I'm now being presented with a dilemia which appears to require me to either remove numpy or give ...
0
votes
0answers
80 views

Having problems fixing clang after deleting clangd directory [duplicate]

I am trying to install clang. Recently, I accidentally deleted clangd directory in /usr/bin/ and so removed clang and tried to install it again. The installation occurs perfectly but there is no ...
0
votes
0answers
179 views

/usr/lib/x86_64-linux-gnu/libLLVM-4.0.so.1: version `LLVM_4.0' not found

I am trying to run a tool that uses Clang and LLVM. The tool name is cppgrep that is available with the docker. Please find it from the github repository - https://github.com/peter-can-talk/cppnow-...
1
vote
4answers
660 views

How can I add options to `make` command?

I am trying to add options to the make command. For example to add -l option to include libraries. Something like clang filename.c -o filename to clang filename.c -o filename -l{libary} What should I ...
1
vote
0answers
766 views

Install latest version of libc++

While I know, that I can install the latest clang compiler for xenial from http://apt.llvm.org/xenial/ (Doku: https://apt.llvm.org/) I could not determine how to install the latest version of libc++ (...
1
vote
2answers
2k views

Wrong default include directories for clang cross-compile?

My build machine is xenial x86_64. I am cross-compiling for arm-linux-gnueabihf. I have installed g++-arm-linux-gnueabihf. When building with clang++ --target=arm-linux-gnueabihf, I get the error "/...
1
vote
4answers
8k views

Building CCminer on Ubuntu 17.04

I recently started to mine some cryptconcurrencys again and I wanted to try Monero (XMR). The CPU miner xmrig works perfectly however I am having problems install a GPU miner. What I already did I ...
-5
votes
1answer
752 views

How do I run clang after installing it? [closed]

I have downloaded clang. When I got onto terminal and type clang it results in the error no input files.
-1
votes
2answers
209 views

Cannot open C, C++ and Objective-C compiler(clang) on Ubuntu [duplicate]

I was on the Ubuntu Software Center and downloaded "C, C++ and Objective-C compiler(clang)." I didn't see it anywhere so i went to "search your computer and online resources" and didn't see it ...
0
votes
1answer
384 views

Linux: How to set location that command to run

Clang-3.9 and clang-5.0 are installed in my computer, but clang-3.9 seems to be set default. (Because clang-3.9 runs when I type "clang".) Now, I want to switch them temporary. How to set location ...
4
votes
2answers
4k views

How to set Clang 3.9 as the default in Zesty?

Zesty ships with multiple versions of Clang. The clang package depends on both clang-3.9 and clang-4.0 . It appears that Clang 4 is used by default: $ clang --version clang version 4.0.0-1ubuntu1 (...
0
votes
0answers
407 views

NVPROF Error: unable to locate profiling library libcuinj64.so

I have already tried some answers from AskUbuntu, but none helped. The "missing" library can be found by the locate command: $ locate libcuinj64.so /usr/lib/nvidia-cuda-toolkit/bin/libcuinj64.so /usr/...
16
votes
1answer
17k views

Installing clang 5.0 and using C++17

I have been trying for 3 days to install clang 5.0 on an Ubuntu 16.04 machine. I have tried various guides, but nothing seems to work. When I try to simply grab the latest from SVN and build/install (...
6
votes
2answers
10k views

How to compiler OpenMP program using clang?

My gcc compiles well, but clang fails with the following message: clang -fopenmp=libomp -o main main.c main.c:5:10: fatal error: 'omp.h' file not found I also installed libomp5 package and changed ...
2
votes
2answers
822 views

16.04 clang: bad selection of gcc toolchain

I have two 16.04 systems with gcc (5.4.0 and 6.0.0) and clang 3.8 (1:3.8-33ubuntu3.1). On the first system, clang succeeds compiling C++ code; with adding -v, essential output parts are: Found ...
2
votes
1answer
4k views

Install libclang on Ubuntu 12.04 LTS 32 bit machine

I am trying to install libclang on Ubuntu 12.04 LTS 32 bit. I have gone through some references though I din't get a clear idea.
23
votes
3answers
49k views

How to install gcc-7 or clang 4.0?

I want to try C++17 features and I want to install standard compliant compiler (preferably GCC). I'm totally new to Linux and Ubuntu and I simply don't understand a lot. I tried to follow https://...
1
vote
1answer
309 views

Man pages for clang unavailable

I'm running ubuntu 16.04 LTS and I've installed clang via apt. When I try to look at the man page, I'm told that the man page is unavailable. Man pages for other things (eg. man gcc) work fine. What ...
0
votes
1answer
147 views

No clang package for 16.04 seems to contain pp-trace

I'd like to use Clang's pp-trace tool (on a Kubuntu 16.04 machine) I already have clang installed. Typing in pp-trace gives me: The program 'pp-trace' is currently not installed. You can install it ...
2
votes
0answers
170 views

clang3.8 unmet dependecies on Ubuntu 14.04

I have for a while been trying to install Clang3.8 or for that matter any other version of clang. But every time I run into a problem with some unmet dependencies. bonde@Bonde-Laptop:~$ sudo apt-get ...
2
votes
2answers
3k views

How can I install clang 3.9 on Ubuntu 12.04

Our old server runs Ubuntu 12.04 and has clang 3.4 version. We are now checking Ubuntu 16.04. From what I see when I try apt-get install clang - the possible version to install are 3.5 to 3.9. I want ...
4
votes
1answer
2k views

Ubuntu 14.04, Clang 3.8: cannot update due to missing libllvm3.8v4

I am no longer able to update Clang 3.8 on my Ubuntu 14.04 machine. When I run apt-get upgrade (or dist-upgrade), the packet manager fails with the following error. david@window:~$ sudo apt-get dist-...
8
votes
2answers
10k views

Set clang-3.8 as default

I have installed clang 3.0 and clang 3.8: $ sudo update-alternatives --config clang update-alternatives: error: no alternatives for clang. How can I set 3.8 as /usr/bin/clang?
29
votes
3answers
34k views

How to install LLVM 3.9

I'm working with Emscripten and one of the error messages is: LLVM version appears incorrect (seeing "3.3", expected "3.9") But I can't find 3.9 on the LLVM page: http://llvm.org/releases/download....
1
vote
0answers
669 views

Why after adding alternative to clang I get undefined references?

I have clang3.6 installed and it works fine but as soon as I try to add alternative to it by sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang++-3.6 10 and use it while ...
0
votes
1answer
315 views

can't compile .cpp file with clang even after installing clang3.8

I installed clang3.8 with bunch of other packages that I usually need, after a fresh installation of Ubuntu 15.10 using following command: $ sudo apt-get install clang-3.8 clang-3.8-doc libclang-...
2
votes
2answers
2k views

Which package do I need to use clang with asan for 32 bit?

I get this error when compiling with clang++ and -fsanitize=address -m32: /usr/bin/ld: cannot find /usr/lib/llvm-3.6/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.asan-i386.a: No such file or ...
15
votes
1answer
31k views

Installing clang 3.8 on Ubuntu 14.04.3

I've tried the following obvious commands: sudo apt-get update sudo apt-get install clang-3.8 but I get the message: Reading package lists... Done Building dependency tree Reading state ...
4
votes
1answer
4k views

Undefined references compiling clang tutorial on 14.04.2

I tried to compile the code from clang's libtooling tutorial (section "Put it together"). Compiling works: g++ `llvm-config-3.5 --cxxflags` -fno-rtti -c test.cpp -o test.o I got undefined ...
0
votes
1answer
783 views

Cannot find ld when non-root user

I have an autocompile program available on a website that I am running. The program uses clang++-3.5 to compile C++. When I run the auto-compile python script, as a root user, compilation is ...
2
votes
0answers
1k views

How can I find the directory to clang-format

I use gvim to code and want to use clang-format as a plugin. As I read it is already integrated in vim. I just need to add this line to my .vimrc: map <C-K> :pyf <path-to-this-file>/clang-...