[llvmlinux] Linux Kernel LLVM IR

Tinti viniciustinti at gmail.com
Tue Mar 5 12:21:55 UTC 2013


Hi,

I think add EXTRAFLAGS = -c -emit-llvm in the target Makefile is what you
looking for.

Regards,
Tinti




On Tue, Mar 5, 2013 at 9:11 AM, Marcelo Sousa <marceloabsousa at gmail.com>wrote:

> I was able to successfully build vexpress. The only step that I need
> right now is to be able to call clang with -c -emit-llvm again. Can
> you point me to which Makefile I need to modify?
>
> Regards,
> Marcelo
>
> On Mon, Mar 4, 2013 at 5:55 PM, Jan-Simon Möller
> <jsmoeller at linuxfoundation.org> wrote:
> > A checkpoint is provided inside targets/x86_64/CHECKPOINTS ...
> > Based on kernel 3.3.
> >
> > I'm back next week.
> >
> > Best,
> > JS
> >
> > Am Montag, 4. März 2013, 11:07:38 schrieb Behan Webster:
> >> On 03/04/13 10:57, Marcelo Sousa wrote:
> >> > Hello,
> >> >
> >> > I'm getting the following error when trying to build x86:
> >> >
> >> > ---------------------------------------------------------------------
> >> > Patching LLVM...
> >> > ---------------------------------------------------------------------
> >> > (cd /home/scratch/llvm-setup/toolchain/clang/src/llvm && quilt push
> -a)
> >> > Applying patch
> patches/0002-pax-linux-llvm-x86_handle-empty-archive.patch
> >> > can't find file to patch at input line 15
> >> > Perhaps you used the wrong -p or --strip option?
> >> > The text leading up to this was:
> >> > --------------------------
> >> >
> >> > |From 7cb2d39b461c58df2583a6881f42b18c30f1eafb Mon Sep 17 00:00:00
> 2001
> >> > |From: =?UTF-8?q?Jan-Simon=20M=C3=B6ller?= <dl9pf at gmx.de>
> >> > |Date: Tue, 10 Jul 2012 12:37:24 +0200
> >> > |Subject: [PATCH 2/6] pax-linux-llvm x86_handle-empty-archive.patch
> >> > |
> >> > |Patch from series at
> >> >
> >> >
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/14270
> >> > 7.html by PaX Team.
> >> >
> >> > |---
> >> > |
> >> > | lib/Linker/LinkItems.cpp |    5 ++++-
> >> > | 1 files changed, 4 insertions(+), 1 deletions(-)
> >> > |
> >> > |diff --git a/lib/Linker/LinkItems.cpp b/lib/Linker/LinkItems.cpp
> >> > |index 52a0d17..2782196 100644
> >> > |--- a/lib/Linker/LinkItems.cpp
> >> > |+++ b/lib/Linker/LinkItems.cpp
> >> >
> >> > --------------------------
> >> > No file to patch.  Skipping patch.
> >> > 1 out of 1 hunk ignored
> >> > Patch patches/0002-pax-linux-llvm-x86_handle-empty-archive.patch does
> >> > not apply (enforce with -f)
> >> > make: *** [/home/scratch/llvm-setup/toolchain/clang/state/llvm-patch]
> >> > Error 1
> >> >
> >> >
> >> > Any ideas of what's going wrong?
> >>
> >> The x86_64 build is broken (known issue). The maintainer of that target
> >> is working on it. However he's away on business right now, so he has
> >> less time to spend on it than normal.
> >>
> >> Due to the nature of our project, we need to work from the HEAD of the
> >> Linux Kernel and LLVM project, which means things can break easily.
> >>
> >> We should probably provide a config file which allows you to compile an
> >> eariler version of our project which does work.
> >>
> >> Behan
> > --
> >
> > Sincerely yours,
> >
> > Jan-Simon Möller
> >
> > jsmoeller at linuxfoundation.org
> > _______________________________________________
> > LLVMLinux mailing list
> > LLVMLinux at lists.linuxfoundation.org
> > https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux
> _______________________________________________
> LLVMLinux mailing list
> LLVMLinux at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux
>



-- 
Simplicity is the ultimate sophistication
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130305/5a054cf8/attachment.html>


More information about the LLVMLinux mailing list