Package Base Details: llvm50

Git Clone URL: https://aur.archlinux.org/llvm50.git (read-only)
Submitter: SolarAquarion
Maintainer: SolarAquarion (kgizdov)
Last Packager: kgizdov
Votes: 5
Popularity: 0.003656
First Submitted: 2017-11-19 18:17
Last Updated: 2018-10-14 23:26

Packages (3)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

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/sanitizer_platform_limits_posix.cc:162:10: 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/sanitizer_platform_limits_posix.cc llvm-5.0.2.src.new/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
--- llvm-5.0.2.src.old/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc 2018-09-20 16:22:48.828377892 +0200
+++ llvm-5.0.2.src.new/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc 2018-09-20 16:23:32.361128588 +0200
@@ -159,7 +159,6 @@
 # include <sys/procfs.h>
 #endif
 #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 @@
 #endif // SANITIZER_LINUX || SANITIZER_FREEBSD

 #if SANITIZER_LINUX && !SANITIZER_ANDROID
-  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__)
+#define SIZEOF_STRUCT_USTAT 32
+#elif defined(__arm__) || defined(__i386__) || defined(__mips__) \
+  || defined(__powerpc__) || defined(__s390__)
+#define SIZEOF_STRUCT_USTAT 20
+#else
+#error Unknown size of struct ustat
+#endif
+  unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
 #endif // SANITIZER_LINUX && !SANITIZER_ANDROID

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: https://gist.github.com/Seddigirl/2787ab28e3e9df2d76ca450d6f0cd99b

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):

https://gist.github.com/rubenvb/83a2fc8b6f83079ecf4266b559e57d31

Ceqblaey commented on 2018-04-02 21:03

... and it fails after 6 hours of compilation. :-(

hrehfeld commented on 2018-03-30 15:20

if we disable make ocamld_doc in PKGBUILD, go tests fail:

https://gist.github.com/hrehfeld/586c0d457ddc9ee8577ea70367783cc7