From: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Is there a reason why LLVM/Clang ebuilds don't support "mutislot"?
Date: Mon, 29 Aug 2016 09:26:25 +0200 [thread overview]
Message-ID: <20160829072625.GA31106@gentoo-tp.home> (raw)
In-Reply-To: <CADX8ZBJp6dr4qHug5HcM493ov67eVZvJhvz8S3=iWwUfwiqSrw@mail.gmail.com>
On Sun, Aug 28, 2016 at 11:58:03PM -0400, P Levine wrote:
> Other distros like Ubuntu support the installation of multiple versions of
> LLVM/Clang side by side. One of the things Clang is really good at is
> support for the most recently approved upcoming features of the C++17
> standard. The best support for testing such features is with the latest
> sys-devel/llvm-9999. However if I want to compile Mesa against a stable
> version LLVM/Clang as well, I don't get that option.
I'm not sure such a configuration is fully supported upstream, but the way
ubuntu (and debian) does this is (was?) painfully broken. If I recall correctly
they first build it in one location and then move it around and try to
partially solve things through symlinks.
This totally destroys llvm-config and LLVM's cmake find_package module
meaning those things have hard-coded paths that have nothing to do with
where the things are installed on the system. Simple example, the
following CMakeLists.txt
cmake_minimum_required(VERSION 3.4)
project(llvm-test)
find_package(LLVM)
errors out on ubuntu with:
CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:178 (include):
include could not find load file:
/usr/share/llvm/cmake/LLVMExports.cmake
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:181 (include):
include could not find load file:
/usr/share/llvm/cmake/LLVM-Config.cmake
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
Fixing this one path leads to more suffering further down the road.
The way gentoo maintainers package LLVM is much saner and developer friendly.
prev parent reply other threads:[~2016-08-29 7:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-29 3:58 [gentoo-user] Is there a reason why LLVM/Clang ebuilds don't support "mutislot"? P Levine
2016-08-29 4:39 ` Deven Lahoti
2016-08-29 7:26 ` Jeremi Piotrowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160829072625.GA31106@gentoo-tp.home \
--to=jeremi.piotrowski@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox