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 [clang]

clang is a C, C++, Objective-C/C++ compiler compatible with GNU gcc extensions.

0
votes
0answers
11 views

How to globally install dylib created by clang on MacOS

I have this in my Makefile: test: @clang -shared -fpic -O2 -install_name libasdf.dylib -o libasdf.dylib asdf.c @cp -f asdf.h /usr/local/include @cp -f asdf.dylib /usr/local/lib ...
0
votes
0answers
21 views

How to make C library installable with angle brackets as <mylib.h> on Mac [migrated]

If I go into /usr/local/lib, I see a bunch of folders and .dylib files, the dynamically linked library files I'm pretty sure. If I go to /usr/local/include it has a bunch of .h files each of which has ...
0
votes
1answer
40 views

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

I am trying to install UDUNITS-2 package for the graphical visual browser: ncview. I need to understand the following error message: clang: error: no such file or directory: '_REENTRANT' A similar ...
-5
votes
2answers
154 views

BUG in clang linker - name resolving issue

I found bug in clang, and i post it here because it's very difficult to find how to do it in clang system. I think this information in useful - i saw similar questions in web. So, clang makes wrong ...
2
votes
2answers
276 views

Are there any successful forks or refactors of the Linux Kernel?

A google search reveals this slashdot story yielding this github repository that hasn't had a commit since 2016. There are 22,602 forks listed on github.com but these are going to be mostly (if not ...
0
votes
0answers
876 views

binary can't find specific library, but can find others in the same directory

I have a binary that I can compile with either clang or gcc, and the directory for the application is something like this: /app root dir /bin /<application> /lib /<application ...
2
votes
1answer
2k views

gdb doesn't step into function although source is available

I have a shared library compiled with -g -O0 including: void MyClass::whatever() { ... doSomething(myImage, myPoints); ... } bool MyClass::doSomething(const Image& image, std::vector<cv:...
3
votes
2answers
71 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
312 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 (...
2
votes
0answers
994 views

GCC/G++ compiles code to shared library instead of executable [closed]

I am having a rather puzzling problem. Recently, whenever I compile a program using GCC or G++, the compiler creates a shared library rather than an executable file. The library still runs if I ...
4
votes
1answer
6k views

How to install clang 3.9 or higher using apt-get on Linux Mint?

I know that there are similar questions for installation of clang-lower versions. But, I am trying to follow them to install clang-3.9 or 4.0 , but I am unable to do so on my Linux Mint 18. First, I ...
3
votes
1answer
2k views

clang is refusing to install through apt

So, I wanted to get Unreal Engine 4, but for some odd reason, clang does not want to install. I have never used clang at all before, and it isn't even installed, so I have no real clue what is ...
2
votes
0answers
664 views

Emscripten fundamentally incompatable with clang on linux

A long time ago I wrote a really crude and primitive shell in C++, and I only just recently discovered asm.js, so I thought it'd be neat to try to compile and run it in a browser, but I can't because ...
1
vote
1answer
390 views

Is it ok to use gcc to compile userspace binaries on FreeBSD 10?

I know that recently FreeBSD 10 dumped gcc in favour of clang due to licensing reasons (Ref). I wanted to understand if this restriction to use clang is limited only to kernel compilation. Can I use ...
5
votes
2answers
4k views

clang-tidy install

I have clang installed from packages on both Ubuntu 14.07, Centos 7 and Fedoara 22. I would like to use clang-tidy but can neither find a package nor how to install it without installing clang from ...
0
votes
1answer
902 views

Fail to install Clang-3.5 due to Clang-3.3

I am trying to install clang-3.5 on Linux Mint 17.2 (Cinnamon) and I dependency errors. Edit: here is the output of apt-cache policy clang clang-3.5 clang-3.3: clang: Installed: (none) Candidate:...
2
votes
1answer
483 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. ...
0
votes
2answers
64 views

does anybody know of a GNU/Linux project which has support for both gcc as well as clang?

Does anybody know of a project (apart from the Linux monolithic kernel) where a/the program can be compiled by both the compilers and can be used to observe their performances, any recommendations ? ...
1
vote
1answer
273 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 ...
8
votes
1answer
12k views

how to install newest clang 3.8 by apt

here I have found instruction how to install clang3.8: http://llvm.org/apt/ so I executed: wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - result: --2015-09-19 12:53:09-...
1
vote
1answer
2k views

How to build openssl with clang(rather than gcc) on a FreeBSD machine?

I have a 64 bit FreeBSD build machine. I need to add https support in my python3 application code. For that it is advised to build/compile python with openssl support. I do not need any gcc dependency ...
3
votes
1answer
274 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 ...
0
votes
1answer
294 views

What else is needed to use clang besides “apt-get install clang; clang hw.cpp”?

Installed clang: $~/Projects/clang$ sudo apt-get install clang Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be ...