Questions tagged [clang]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
28 views

clang++ not installing on ubuntu 18.04

when I run sudo apt install clang-6.0 I get this error- The following packages have unmet dependencies: clang-6.0 : Depends: libobjc-7-dev but it is not going to be installed Depends: ...
0
votes
0answers
36 views

cannot install clang / graphviz-dev while creating custom Ubuntu image using cubic

I'm using cubic to create a custom ISO with some debs already installed. I used Ubuntu 16.04.6 as my base image and then I did the following: update apt sources list: add-apt-repository "deb http://...
0
votes
1answer
272 views

clang doesn't find c++ stdlib on my ubuntu 18.04, but it does on a brand new install. What have I broken?

I've been building a github package for a while ... a new version comes out, and I build it. It uses clang6 which is default on my ubuntu, ubuntu 18.04 now, it fails to compile, it can't find a ...
3
votes
2answers
5k views

How to set Clang 9 as the default C++ compiler on Ubuntu 19.10?

how do I set Clang 9 as the default C++ compiler on Ubuntu 19.10? I searched the internet, but nothing helped. Thank you for answer :)
0
votes
0answers
27 views

LLVM nightly hash missmatch [duplicate]

i am trying to install latest nightly clang, but i keep getting this messages: E: Failed to fetch http://apt.llvm.org/xenial/dists/llvm-toolchain-xenial/main/binary-i386/Packages.gz Hash Sum ...
0
votes
0answers
130 views

Brave browser build fails in Ubuntu 16.04

I am trying to build brave browser https://github.com/brave/brave-browser/wiki I successfully build it around 2 weeks ago. when I am trying to rebuild again it's giving me errors that I do not ...
2
votes
1answer
169 views

clang 3.9 on ubuntu 19.04

I'm am using Ubuntu 19.04 trying to compile an older version of software (carla 0.7.0) that only allows getting compiled in clang-3.9 From my research online I have not found a way to install clang ...
1
vote
0answers
390 views

How can I install multiple version of clang/llvm?

I added the repo from llvm-apt. It contains llvm7 and llvm8. I want to install both versions. The main packages are installed fine. However, there is a problem for libc++, since both packages want to ...
0
votes
1answer
229 views

installation of clang on ubuntu18.04?

I am trying to install clang on ubuntu 18.04. I have done the following: going to the source of llvm making a directory build and executed cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../...
2
votes
2answers
2k views

Broken packages when trying to install clang on Ubuntu 18.04

I tried installing clang on Ubuntu 18.04, but I could not install it. I tried sudo apt install clang and got these results: Reading package lists... Done Building dependency tree Reading state ...
3
votes
1answer
1k views

How to install clang for YouCompleteMe?

OS: Ubuntu 18.04 There are already some posts about how to install clang in Ubuntu, however many of them are out of date, and my question is specific to installing clang as part of the insallation ...
0
votes
1answer
352 views

No .a or .o file created after building the project in Codelite

I have installed Codelite and I have g++ installed on my machine: I've also used the following settings when creating a new codelite project And I 've created a simple project #include <...
2
votes
1answer
105 views

How to find a binary name with only the prefix?

Context: I have a bash script that generates a windows import library from a MinGW cross-compiled DLL. As part of the build process, it runs llvm-dlltool-6.0, because that happens to be the specific ...
1
vote
1answer
707 views

sys/ustat.h file not found

I'm trying to build a modified version of the LLVM compiler as used in the Pepper-project I'm using this script to install it, however it fails with this error: /pequin/compiler/buffetfsm/llvm/...
2
votes
1answer
3k views

How may I install clang v8 on 32-bit Ubuntu 18.04?

I have this, but it's not working: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \ && add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 ...
4
votes
1answer
10k views

Using C++17 with clang++ on Ubuntu 16.04

I can't for the life of me figure out how to get C++17 to work on Ubuntu 16.04. This works on Ubuntu 18.04: sudo apt-get update sudo apt-get install clang-6.0 which installs the C++17 standard ...
0
votes
0answers
338 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
346 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):...
18
votes
5answers
41k views

Installing clang 6.0 on Ubuntu 18.04 LTS Bionic

How can I install clang on Ubuntu 18.04 LTS Bionic?
2
votes
0answers
1k 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
367 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 ...
1
vote
0answers
2k 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 ...
2
votes
1answer
3k 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 ...
1
vote
1answer
936 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 ...
7
votes
1answer
8k 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
458 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: ...
5
votes
1answer
3k 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
510 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 ...
4
votes
1answer
4k 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
812 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 ...
3
votes
0answers
1k 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 : ...
0
votes
1answer
1k 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
55 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
102 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 ...
1
vote
4answers
1k 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
1k 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++ (...
4
votes
2answers
4k 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
9k 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
2k 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
250 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 ...
1
vote
1answer
1k 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 ...
5
votes
2answers
7k 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
967 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/...
17
votes
1answer
20k 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 (...
9
votes
2answers
14k 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
1k 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
6k 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.
30
votes
3answers
73k 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://...
2
votes
1answer
376 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
211 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 ...