[Pkg-julia-devel] Bug#807701: julia: FTBFS on arm64

Edmund Grimley Evans edmund.grimley.evans at gmail.com
Fri Dec 11 18:36:09 UTC 2015


Source: julia
Version: 0.4.2-2
Tags: patch
User: debian-arm at lists.debian.org
Usertags: arm64

It failed to build on arm64:

https://buildd.debian.org/status/package.php?p=julia&suite=sid

The error was:

signal (6): Aborted
gsignal at /lib/aarch64-linux-gnu/libc.so.6 (unknown line)
Aborted

The problem seems to be that there is no system call epoll_wait on
arm64, only epoll_pwait, so you need a patch like this:

--- julia-0.4.2.orig/deps/libuv/src/unix/linux-syscalls.c
+++ julia-0.4.2/deps/libuv/src/unix/linux-syscalls.c
@@ -310,6 +310,8 @@
                    int timeout) {
 #if defined(__NR_epoll_wait)
   return syscall(__NR_epoll_wait, epfd, events, nevents, timeout);
+#elif defined(__NR_epoll_pwait)
+  return syscall(__NR_epoll_pwait, epfd, events, nevents, timeout, 0);
 #else
   return errno = ENOSYS, -1;
 #endif

By the way, if the code had had assert(0) instead of abort() it would
probably have been easier to find the problem!



More information about the Pkg-julia-devel mailing list