Questions tagged [clang]

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

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

Unable to install Rstudio due libclang-dev problem

I am new to ubuntu, and have been trying to install the new version of Rstudio, which should normally work. But it somehow broke today. Reading package lists... Done Building dependency tree Reading ...
user avatar
0 votes
0 answers
23 views

Is there a package manager that offers recent boost/clang/cmake versions AND creates references and env. variables? (18.04)

I need at least clang 7+, boost 1.77+, cmake 3.11+ on Ubuntu 18.04 and I am too dumb to install them manually because I do not know where to install, what to link and which env. variables to set. ...
user avatar
0 votes
1 answer
335 views

How do you compile c files with clang into a binary format?

I created source code as a .c file and tried running clang exampledebugging.c into it. It came up empty. Can anyone please help me? I am trying to compile this program into a binary executable format.
user avatar
0 votes
0 answers
92 views

Mapnik installation error in ubuntu 16.04

I am trying to install mapnik in ubuntu 16.04 64-bit machine, following this tutorial https://github.com/mapnik/mapnik/wiki/UbuntuInstallation but when I enter ./configure I am getting error like this ...
user avatar
  • 131
6 votes
1 answer
340 views

Replacing an APT-version of a package with source code version?

How can I replace a package installed via APT(or any other package managers) with the version from source without violating system? My problem is the same as this link, but I think the answer is not ...
user avatar
7 votes
2 answers
4k views

Unable to install libclang on 20.04 LTS

After trying to install libclang-dev with sudo apt-get install -y libclang-dev i receive this error: The following packages have unmet dependencies: libclang-dev : Depends: libclang-10-dev (>= 10~)...
user avatar
0 votes
0 answers
710 views

Install Clang 11 Error

I’m trying to install clang-11 using command Step 1 apt install clang-11 fails with error The following packages have unmet dependencies: clang-11 : Depends: libclang-cpp11 (>= 1:11.1.0~++...
user avatar
  • 1
1 vote
1 answer
776 views

Where do I find llvm for compiling Qt documentation

Note: To build qdoc and Qt documentation in future you should set LLVM_INSTALL_DIR environment >variable pointing to directory where LLVM is installed (it should be top level directory, the >...
user avatar
2 votes
0 answers
297 views

How to compile Clang LibTooling programs under Bionic?

I'm trying to port a project that uses Clang's LibTooling library from Arch to Ubuntu/Debian. I have installed the clang-10, llvm-10 and libclang-10-dev packages. The latter installs the necessary ...
user avatar
  • 121
4 votes
0 answers
827 views

How does x86_64 Ubuntu 20.04 run aarch64 ELF executables?

I build a Docker container from the following Dockerfile: FROM ubuntu:20.04 RUN apt-get update && apt-get -y install clang gcc-aarch64-linux-gnu I'm on an x86_64 macOS v10.15.7 host system ...
user avatar
0 votes
1 answer
2k views

How to solve alike "linking CXX executable" issues

My attempts to compile to get Gerbera, a popular DLNA server running proved futile. The dependencies seem to be alright. The documentation doesn't mention any make flags needed. So when I try to make, ...
user avatar
6 votes
1 answer
6k 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 ...
user avatar
12 votes
2 answers
28k 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 :)
user avatar
2 votes
1 answer
385 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 ...
user avatar
2 votes
0 answers
1k 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 ...
user avatar
  • 391
0 votes
1 answer
1k 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" ../...
user avatar
  • 99
5 votes
1 answer
10k 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 ...
user avatar
  • 99
3 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
781 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 <...
user avatar
2 votes
1 answer
265 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 ...
user avatar
1 vote
1 answer
2k 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/...
user avatar
3 votes
1 answer
5k views

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

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 ...
user avatar
  • 2,315
4 votes
1 answer
20k 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 ...
user avatar
0 votes
0 answers
809 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 ...
user avatar
0 votes
0 answers
586 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):...
user avatar
24 votes
6 answers
69k views

Installing clang 6.0 on Ubuntu 18.04 LTS Bionic

How can I install clang on Ubuntu 18.04 LTS Bionic?
user avatar
  • 269
2 votes
0 answers
2k 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-...
user avatar
  • 2,315
0 votes
0 answers
437 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 ...
user avatar
  • 367
1 vote
0 answers
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 ...
user avatar
2 votes
1 answer
6k 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 ...
user avatar
  • 127
1 vote
1 answer
1k 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 ...
user avatar
11 votes
1 answer
13k 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-...
user avatar
  • 219
0 votes
1 answer
1k 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: ...
user avatar
5 votes
1 answer
5k 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 ...
user avatar
  • 53
0 votes
1 answer
811 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 ...
user avatar
7 votes
1 answer
9k 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
3 votes
0 answers
2k 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 : ...
user avatar
  • 141
0 votes
1 answer
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 ...
user avatar
1 vote
0 answers
71 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 ...
user avatar
1 vote
4 answers
3k 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 ...
user avatar
  • 27
1 vote
0 answers
2k 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++ (...
user avatar
  • 111
6 votes
2 answers
6k 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 "/...
user avatar
  • 241
1 vote
4 answers
11k 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 ...
user avatar
  • 194
-5 votes
1 answer
4k 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.
user avatar
-1 votes
2 answers
310 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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
  • 13
6 votes
2 answers
9k 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 (...
user avatar
  • 31.4k
0 votes
0 answers
2k 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/...
user avatar
17 votes
1 answer
22k 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 (...
user avatar
  • 257