From: "Johnson, Ethan" <ejohns48@cs.rochester.edu>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: [Xen-devel] How to compile Xen 4.12 with Clang on Linux?
Date: Thu, 20 Jun 2019 22:37:14 +0000 [thread overview]
Message-ID: <9b1a4ece-91fa-c3ad-c0f1-f749cf61f5f9@cs.rochester.edu> (raw)
Hi all,
I'm trying to compile Xen 4.12 with Clang (v7.0.0) for a research
project. I see in the README distributed with the Xen 4.12 source code
that Clang/LLVM 3.5 and newer are supported as the compiler for building
Xen. However, when I actually try it, it doesn't work - the configure
script seems to recognize that I've indicated clang as the preferred
compiler, but the actual "make" step seems to ignore it and issue gcc
commands anyway.
I tried a few different command line invocations, all with the same
result (note: my clang is installed from the Ubuntu 18.04 repositories
as "clang-7" and "clang++-7" respectively):
[Attempt #1:]
CC=clang-7 CXX=clang++-7 ./configure --enable-systemd
make -j24 world
[Attempt #2:]
./configure --enable-systemd CC=clang-7 CXX=clang++-7
make -j24 world
[Attempt #3:]
export CC=clang-7
export CXX=clang++-7
make -j24 world
I'm guessing I'm missing a key step here, but I'm not seeing anything in
the documentation (README, wiki, etc.) to indicate what that might be.
Anyone have any suggestions?
Note (in case it matters) that I'm doing this on x86-64 Linux (Linux
Mint 19.1 to be exact, which is based on Ubuntu 18.04). When I searched
online and on the Xen mailing lists for references to building with
clang they mostly seemed to be in the context of BSD or ARM platforms.
Much thanks,
Ethan Johnson
--
Ethan J. Johnson
Computer Science PhD student, Systems group, University of Rochester
ejohns48@cs.rochester.edu
ethanjohnson@acm.org
PGP public key available from public directory or on request
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next reply other threads:[~2019-06-20 22:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-20 22:37 Johnson, Ethan [this message]
2019-06-20 23:01 ` [Xen-devel] How to compile Xen 4.12 with Clang on Linux? Andrew Cooper
2019-06-25 1:09 ` Johnson, Ethan
2019-06-25 7:50 ` Roger Pau Monné
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=9b1a4ece-91fa-c3ad-c0f1-f749cf61f5f9@cs.rochester.edu \
--to=ejohns48@cs.rochester.edu \
--cc=xen-devel@lists.xenproject.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;
as well as URLs for NNTP newsgroup(s).