Package Base Details: lib32-llvm-git

Git Clone URL: https://aur.archlinux.org/lib32-llvm-git.git (read-only)
Keywords: clang git llvm
Submitter: yurikoles
Maintainer: Lone_Wolf
Last Packager: Lone_Wolf
Votes: 11
Popularity: 0.067639
First Submitted: 2019-01-11 15:50
Last Updated: 2019-11-02 00:44

Latest Comments

« First ‹ Previous ... 3 4 5 6 7 8

bouhappy commented on 2014-07-07 23:28

I was able to build after making my own patch file:

% cat cl_parser_passinfo_extern.patch
index e2e4912..a07e3fd 100644
--- a/include/llvm/IR/LegacyPassNameParser.h
+++ b/include/llvm/IR/LegacyPassNameParser.h
@@ -95,6 +95,8 @@ private:
}
};

+EXTERN_TEMPLATE_INSTANTIATION(class cl::parser<const PassInfo *>);
+
///===----------------------------------------------------------------------===//
/// FilteredPassNameParser class - Make use of the pass registration
/// mechanism to automatically add a command line argument to opt for
diff --git a/lib/IR/Pass.cpp b/lib/IR/Pass.cpp
index 91d86ae..00ce223 100644
--- a/lib/IR/Pass.cpp
+++ b/lib/IR/Pass.cpp
@@ -234,6 +234,8 @@ PassNameParser::~PassNameParser() {
// attempting to remove the registration listener is an error.
}

+TEMPLATE_INSTANTIATION(class cl::parser<const PassInfo *>);
+
//===----------------------------------------------------------------------===//
// AnalysisUsage Class Implementation
//


And adding it to the PKGBUILD:
prepare() {
cd ""${srcdir}/${_pkgname}""

# Fix installation directories, ./configure doesn't seem to set them right
sed -i -e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib32:' \
-e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \
Makefile.config.in
sed -i '/ActiveLibDir = ActivePrefix/s:lib:lib32:' \
tools/llvm-config/llvm-config.cpp
sed -i 's:LLVM_LIBDIR="${prefix}/lib":LLVM_LIBDIR="${prefix}/lib32":' \
autoconf/configure.ac \
configure

# Fix insecure rpath (http://bugs.archlinux.org/task/14017)
sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' Makefile.rules

# apply the patch to it
patch -p1 -d ${srcdir}/${_pkgname} < ${srcdir}/../cl_parser_passinfo_extern.patch
}

computor commented on 2014-07-06 23:18

Getting a build error in opt. Does this need to be compiled with clang?

I was able to build after adding "CC=clang CXX=clang++" (like llvm-svn's PKGBUILD) to the PKGBUILD.

zman0900 commented on 2014-02-26 04:09

Updated my gist to remove the ocaml stuff since it conflicts with files from the 64-bit llvm-svn.

zman0900 commented on 2014-02-26 03:56

I updated the PKGBUILD based off the repo version:

https://gist.github.com/zman0900/9223231

Do whatever you want with it.