Bug#882781: clang is missing a dependency on libomp-dev

Sylvestre Ledru sylvestre at debian.org
Sun Nov 26 22:53:15 UTC 2017

On 26/11/2017 23:47, Alexander Kurtz wrote:
> Hi!
> On Sun, 2017-11-26 at 22:27 +0100, Sylvestre Ledru wrote:
>> For now, I am not planning to add this a mandatory dep. openmp is a
>> niche and I don't think
>> we should have a hard dependency for every clang user.
>> By the way libomp-dev is suggested by clang packages.
> In theory, you are right, clang should not depend on library packages
> just for convenience. However libomp-dev is special here, because its
> usage is usually hidden: Typical OpenMP tutorials look like this:
> 	cc -fopenmp foo.c
> or maybe
> 	cc -fopenmp -o foo.o foo.c
> 	cc -fopenmp -o foo   foo.o
> and this works on GCC. The fact that this doesn't work with clang isn't
> even the problem here, the fact that step 1 from above works, while
> step 2 doesn't is. If users expected to need to link a library in for
> this to work, things would be fine, but they don't (which arguably is
> the real problem here, but thanks to GCC that's just the way it is).
> TL;DR: If you want to write cross-compiler Makefiles, you use
> -fopenmp for both compiling and linking, because the actual OpenMP
> libraries differ between GCC and clang. And this breaks for clang.
> And last but not least, libomp-dev pulls in 238 KB, which is about 0.4%
> of the 59.1 MB clang pulls in:
Well, this won't be true in a future upload. I split clang & clang-tools;
clang should be about 9mb now.
> If you don't want a hard dependency (which I still think would be the
> correct thing to do since "a command line argument of clang doesn't
> actually work without it"), would you perhaps consider a Recommends: ?
Sure, I fixed that in the vcs!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20171126/6cadec46/attachment.sig>

More information about the Pkg-llvm-team mailing list