[llvmlinux] Linux Kernel LLVM IR

Behan Webster behanw at converseincode.com
Mon Mar 4 16:07:38 UTC 2013


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/142707.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

-- 
Behan Webster
behanw at converseincode.com



More information about the LLVMLinux mailing list