Package Base Details: llvm50

Git Clone URL: (read-only, click to copy)
Submitter: SolarAquarion
Maintainer: petronny
Last Packager: petronny
Votes: 5
Popularity: 0.000000
First Submitted: 2017-11-19 18:17
Last Updated: 2021-02-24 06:12

Packages (3)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

SolarAquarion commented on 2018-10-05 14:22

It's actually needs a old version of glibc but the question is which version

kgizdov commented on 2018-09-20 15:49

Also, I found a bug in the PKGBUILD. llvm-libs does not correctly link to the libs in llvm-5.0 in the packaging step and the link command fails because of too many recursive links. I've patched it a bit simple now like so:

-  cd ${pkgdir}${_prefix}/lib/
-  ln -s lib{LLVM,LTO}*.so* $pkgdir/usr/lib
+  cd ${pkgdir}/usr/lib
+  ln -s llvm-5.0/lib/lib{LLVM,LTO}*.so* ./

but a better change would be to link all variants individually with the full path and only to the actual libs not he other symlinks of the libs.

kgizdov commented on 2018-09-20 14:16

I'm getting an error on latest GCC because ustat.h has been depricated and removed from ArchLinux:

llvm-5.0.2.src/projects/compiler-rt/lib/sanitizer_common/ fatal error: sys/ustat.h: No such file or directory
 #include <sys/ustat.h>

I'm guessing this has a patch available somewhere upstream?

EDIT: Took the patch from gcc6 and adapted it. Works for me:

diff -aur llvm-5.0.2.src.old/projects/compiler-rt/lib/sanitizer_common/
--- llvm-5.0.2.src.old/projects/compiler-rt/lib/sanitizer_common/ 2018-09-20 16:22:48.828377892 +0200
+++ 2018-09-20 16:23:32.361128588 +0200
@@ -159,7 +159,6 @@
 # include <sys/procfs.h>
 #include <sys/user.h>
-#include <sys/ustat.h>
 #include <linux/cyclades.h>
 #include <linux/if_eql.h>
 #include <linux/if_plip.h>
@@ -251,7 +251,19 @@

-  unsigned struct_ustat_sz = sizeof(struct ustat);
+// Use pre-computed size of struct ustat to avoid <sys/ustat.h> which
+// has been removed from glibc 2.28.
+#if defined(__aarch64__) || defined(__s390x__) || defined (__mips64) \
+  || defined(__powerpc64__) || defined(__arch64__) || defined(__sparcv9) \
+  || defined(__x86_64__)
+#elif defined(__arm__) || defined(__i386__) || defined(__mips__) \
+  || defined(__powerpc__) || defined(__s390__)
+#error Unknown size of struct ustat
+  unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);

comcj commented on 2018-05-27 18:19

@akb825 where can i find "Seddigirl's PKGBUILD" ?

akb825 commented on 2018-05-19 00:57

I needed to apply the following patch to get this to compile. (I think it might be related to the recent upgrade to GCC 8)

--- a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h  2018-05-18 17:01:09.619271000 -0700
+++ b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h  2018-05-18 17:01:29.865530530 -0700
@@ -713,7 +713,7 @@

   uint32_t getTrampolineSize() const { return RemoteTrampolineSize; }

-  Expected<std::vector<char>> readMem(char *Dst, JITTargetAddress Src,
+  Expected<std::vector<uint8_t>> readMem(char *Dst, JITTargetAddress Src,
                                       uint64_t Size) {
     // Check for an 'out-of-band' error, e.g. from an MM destructor.
     if (ExistingError)

I also had to apply Seddigirl's PKGBUILD. The one here is pretty broken, both failing on ocaml as well as producing symlinks with * in the filename.

brauliobo commented on 2018-04-21 18:29

how to make the default instead of llvm 6.0?

12eason commented on 2018-04-06 20:34

As with clang40, this package essentially conflicts with ocaml as it tries to find docs that aren't generated. Uninstal ocaml to compile.

rubenvb commented on 2018-04-05 19:05

Right, I forgot to include compiler-rt in the sources list. I also updated my gist. If the maintainer is willing to orphan this package, I'm willing to take over.

Seddigirl commented on 2018-04-04 19:25

@rubenvb 's PKGBUILD wasnt working, this one should work properly:

rubenvb commented on 2018-04-03 19:07

A better PKGBUILD, which does not conflict with anything, actually builds and contains compiler-rt (like the llvm40 package):