LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 28580 - `make install` does not create versioned clang++ symlink (e.g. clang++-6.0)
Summary: `make install` does not create versioned clang++ symlink (e.g. clang++-6.0)
Status: NEW
Alias: None
Product: Build scripts
Classification: Unclassified
Component: Makefiles (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-15 19:56 PDT by Luke
Modified: 2020-04-27 22:10 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2016-07-15 19:56:38 PDT
With Ubuntu 16.04 when I try to build llvm/clang from source with:

$ cmake -G "Unix Makefiles" ../llvm -DCMAKE_BUILD_TYPE=Release
$ make -j4
$ sudo make install

The install script does generate a clang++ -> clang
but NOT a clang++-3.9 -> clang
so we have clang, clang++, clang-3.9, but no clang++-3.9


The nightly packages at http://apt.llvm.org/ creates a symlink, so for consistency and naming symmetry, I think the makefile install scripts should too.
Comment 1 Pavel Roskin 2018-03-26 14:26:54 PDT
The issue is not specific to clang 3.9, and it's still not resolved. The clang 6.0.0 binary distribution has clang-6.0 but not clang++-6.0

If I want to compile my C++ code with clang 6.0, which is not the default clang installation (e.g. /usr/bin/clang is clang 5.0), I have several options:

1) Compile and link with clang-6.0 (it recognizes C++ code by the extension), provide the C++ library manually.

2) Compile with clang-6.0, link with clang++.

3) Make clang++-6.0 a link to clang-6.0, compile and link with clang++-6.0.

The last approach looks most sane to me, but shouldn't the clang build system do it for me?

I was able to get Fedora make the symlink, but perhaps I should have start with the upstream first.

https://bugzilla.redhat.com/show_bug.cgi?id=1534098