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

Sylvestre Ledru sylvestre at debian.org
Sun Nov 26 21:27:48 UTC 2017



On 26/11/2017 20:07, Alexander Kurtz wrote:
> Package: clang
> Version: 1:3.8-37
>
> In contrast, the clang package does not pull in libomp-dev, which means
> the following fails:
>
>     alexander at shepard:~$ cat test.c 
>     int main(){
>         #pragma omp parallel for schedule(dynamic,50)
>         for(int i = 0; i < 10; i++);
>     }
>     alexander at shepard:~$ clang -fopenmp test.c 
>     /usr/bin/ld: cannot find -lomp
>     clang: error: linker command failed with exit code 1 (use -v to see invocation)
>     alexander at shepard:~$ 
>
> I think that if the clang binary supports the -fopenmp switch, it is
> reasonable to assume that it actually works. Therefore please make the
> clang package depend on the libomp-dev package.
>
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.

Cheers,
Sylvestre

-------------- 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/9455716a/attachment.sig>


More information about the Pkg-llvm-team mailing list