Questions tagged [clang]

The tag has no usage guidance.

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

cmath compilation errors with clang-10 on Mac OS Catalina

I recently installed llvm via brew with brew install llvm, in order to use clang with OpenMP, on Mac OS 10.15.4 Catalina $ which clang /usr/local/opt/llvm/bin/clang $ clang -v clang version 10.0.0 ...
0
votes
0answers
74 views

Brew LLVM: library not found for -lomp

On my Mac OS 10.15.4 Catalina, I installed LLVM via brew using brew install llvm. My clang is located here: /usr/local/opt/llvm/bin/clang and the version is: $ /usr/local/opt/llvm/bin/clang -v ...
0
votes
0answers
10 views

Which shell do VS Code extensions use?

here,I got the problem that the same command run in the Windows CMD as run by the clang-tidy extension works for CMD but not in VS Code. Therefore I ask myself if (and if yes, which) another type of ...
0
votes
0answers
29 views

Error installing glog CocoaPod “configure: error: C preprocessor ”/lib/cpp“ fails sanity check”

When running pod install I am getting an error "configure: error: C preprocessor "/lib/cpp" fails sanity check" It seems like my bash shell itself has an issue with location of clang/gcc. If I run ./...
1
vote
1answer
74 views

clang (even with no args) takes 0.7 seconds to execute

$ time nonexistent-command zsh: command not found: nonexistent-command nonexistent-command 0.00s user 0.00s system 0% cpu 0.425 total $ time clang clang: error: no input files clang 0.01s user 0.68s ...
0
votes
0answers
48 views

How many versions of clang, gcc, g++ compilers are installed on my linux system?

(Using Pop!_OS distro) I entered the following command in the terminal: dpkg --list | grep compiler And, I got this (only providing a part of the list for the sake of brevity): ii clang ...
0
votes
2answers
504 views

How to install clang-format on MinGW (Windows)?

I tried searching with pacman -Ss for clang-format, git-clang-format, etc, but I'm not having any luck. However, I have seen some references to it on some other websites, implying it may exist (or ...
0
votes
0answers
547 views

install LLVM 9 wiht WSL Ubuntu

I am trying to install the last stable version with the script in the page: https://apt.llvm.org/ However I have the following error: Reading package lists... Done + apt-get install -y clang-9 lldb-...
0
votes
1answer
857 views

The C compiler “/usr/bin/clang” is not able to compile a simple test program

Why does my C compiler (Clang) fail to compile a simple test program when opening a CMake project in CLion? I'm trying to setup CLion to run with CMake, Ninja, Clang and Clang++. To test it I tried ...
1
vote
0answers
68 views

OpenMP with Clang in Visual Studio

I am trying to get access to version 4.0 of OpenMP. In order to do that I used the Visual Studio installer to get Clang, which is supposed to have support for OpenMP. However, when I try to build my ...
1
vote
1answer
401 views

QT android make returns cannot find -lc++

I'm on Pop!_OS (ubuntu based distro) running Qt creator 4.9.2 with Qt 5.13.0 and am currently trying to build an app for android. When I try to build my app for desktop I have no error, but when I try ...
8
votes
1answer
2k views

How to install clangd (not clang) on mac os

I installed xcode, llvm, brew, and I have clang on my system but not clangd ..., I googled around and only find how install clang not clangd. I tried brew install clangd but not found clangd. I even ...
0
votes
0answers
56 views

How do I install Clang 4.0 or above on Ubuntu 16.04 LTS?

I need to install Clang 3.4 and above on Ubuntu 16.04 LTS, as a prerequisite to this Package that I need to use. Not sure should if I go for the latest Clang version, and if yes, how can I do it for ...
1
vote
0answers
291 views

clang on cygwin fails to produce executable from C++ source

I'm trying to use clang on cygwin to compile C++ files but the executable it produces fails to run. I get runtime failures from cygwin: Cygwin runtime failure: a.exe: Invalid relocation. Offset ...
0
votes
1answer
29 views

If you have to use the `-llibary` option in clang

Wondering if you have to use the -llib option in clang. For instance: clang -lasdf foo.c -o foo.o will link library /usr/local/lib/libasdf.dylib to foo.c, but wondering if there is any way to not ...
0
votes
1answer
291 views

clang: error: no such file or directory: '_REENTRANT'

I am trying to install UDUNITS-2 package for the graphical visual browser: ncview. Can anyone help me understand the following error message: clang: error: no such file or directory: '_REENTRANT' A ...
1
vote
0answers
223 views

cmake error encountered when build clang-query

I encountered the following error when I was trying to build clang-query. parallels@ubuntu18:~/myllvm/llvm/tools/clang/tools/extra/clang-query$ cmake . -- The C compiler identification is GNU 7.3.0 --...
1
vote
1answer
418 views

How can I install python3-clang on Linux Mint 18.04?

I have a vim plugin called CLighter8 that requires the package python3-clang, but unfortnuately I can't find it in the default repository nor any other repository. So I can't really find a way to ...
0
votes
1answer
1k views

Doxygen cannot find the shared library(s) 'libclang.so.6: version `LLVM_6.0'' which it requires to run

I installed doxygen from the binary distribution for Linux x86-64. I'm running Ubuntu 17.10. The installation went smoothly. When I try to run doxygen, it shows the following error: doxygen: error ...
6
votes
1answer
6k views

How do I install Clang 4.0 on Ubuntu 14.04?

I need to install Clang 4.0 and Clang++ 4.0 on my Ubuntu 14.04 box. The most recent version I can find in the apt-get package list is 3.5. How do I install 4.0?
7
votes
0answers
654 views

Change compile flags for Homebrew

We're building a large C++ application on OS X Yosemite 10.10. This application relies on a number of third-party libraries which we install using Homebrew prior to building our application. Our ...
1
vote
1answer
392 views

Cannot Build Swift on FreeBSD - REPL error

I am attempting to install Swift 3 on FreeBSD 10.2 using the official build script but am unable to do so. I am receiving the following error: fatal error: too many errors emitted, stopping now [-...
2
votes
0answers
248 views

Custom-defined type highlighting in Sublime Text

I am looking for a configuration/combination of plugins + clang (or any other parser) that can allow sublime text to highlight all custom defined types just like it highlights native types such as int,...
1
vote
0answers
161 views

What does “selecting 'python-clang-3.8' for regex 'clang-3.8'” mean?

I'm working on a Raspberry Pi 3. The device uses Raspbian, which is Debian derivative. I'm trying to install Clang 3.8 because Clang 3.7 appears to lack proper sanitizer support. When I run the ...
4
votes
1answer
4k views

Install a deleted homebrew formulae

Recently, homebrew decided to remove clang-omp from the list of formulae available to install from. Is there any way to retrieve it? Or would I have to download and build clang-omp bit manually?
22
votes
3answers
4k views

Why does clang generate unintelligible text when redirected?

I am trying to save the output of a command to a file. The command is: clang -Xclang -ast-dump -fsyntax-only main.cpp > output.txt However the resulting output.txt file when opened (by gedit and ...
0
votes
1answer
311 views

Unknown option -pthread in LD

This is a follow up from this issue on Github. Basically, on OS X El Capitan, I get this message: ld: unknown option: -pthread clang: error: linker command failed with exit code 1 (use -v to see ...
3
votes
1answer
142 views

Does a better/newer C or C++ compiler produce more performant compiled code? Or do they just perform faster/better while compiling?

I am not a C or C++ programmer myself, but I often use software that needs to be compiled or otherwise depends on a compiler, like some R packages. Will that software actually perform better if I use ...
3
votes
2answers
2k views

Clang can't locate Homebrew-installed libportaudio

I installed libportaudio using Homebrew on OS X. The install succeeded and I verified there were symlinks to the actual headers and libraries in /usr/local/include and /usr/local/lib. However, I am ...
1
vote
1answer
2k views

How to update the Clang compiler from version 3.1 to version 3.4 in Debian Linux?

It is as what the question is saying, I am new on Linux. I need the Clang++ compiler update to version 3.4 for the assignment that I need to do. I simply just typed in Terminal sudo apt-get install ...
0
votes
0answers
698 views

Installing Homebrew on OSX 10.9

I am trying to install Homebrew with this commands: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" # Add Homebrews binary path to the front of the $PATH echo 'export ...
1
vote
1answer
2k views

Are clang and llvm no longer maintained in cygwin?

I cannot find binaries for clang or llvm using cygwin's setup.exe. Are they no longer maintained?
1
vote
0answers
150 views

Sublime TextEditor 2 in Vintage mode completion

I have several problem with my autocompletion which I want to fix: I have completion by Space. I want that when I press Space means I don't want completion I want a space symbol now. I want to choose ...
9
votes
2answers
9k views

Which binary clang version I should use for CentOS

Based on http://llvm.org/releases/download.html Clang Binaries for FreeBSD9/x86_64 (69M)(.sig) Clang Binaries for Ubuntu-12.04/x86 (67M)(.sig) Clang Binaries for Ubuntu-12.04/x86_64 (71M)(.sig) ...