[Bug 1364544] [NEW] Openafs Not Building on arm64
Launchpad Bug Tracker
1364544 at bugs.launchpad.net
Thu Mar 15 02:14:24 UTC 2018
You have been subscribed to a public bug by Emmet Hikory (persia):
I'm attempting to build the openafs packages from source for the arm64
architecture using an emulated arm64 VM running Ubuntu 14.04.
I've downloaded the 1.6.7 source and the 1.6.9 source, and made
modifications for it to build with the aarch64 compiler (attaching
patch), however the build stops due to lwp.c erroring out with:
gcc -I/home/mwaltz/debian/openafs-1.6.9/src/config -I/home/mwaltz/debian/openafs-1.6.9/include -I. -I. -D_LARGEFILE64_SOURCE -o rmtsysd rmtsysd.o libsys.a /home/mwaltz/debian/openafs-1.6.9/lib/librx.a libsys.a /home/mwaltz/debian/openafs-1.6.9/lib/liblwp.a /home/mwaltz/debian/openafs-1.6.9/lib/util.a -lresolv
/home/mwaltz/debian/openafs-1.6.9/lib/liblwp.a(lwp.o): In function `Abort_LWP':
/home/mwaltz/debian/openafs-1.6.9/src/lwp/./lwp.c:796: undefined reference to `savecontext'
/home/mwaltz/debian/openafs-1.6.9/lib/liblwp.a(lwp.o): In function `Dispatcher':
/home/mwaltz/debian/openafs-1.6.9/src/lwp/./lwp.c:982: undefined reference to `returnto'
/home/mwaltz/debian/openafs-1.6.9/lib/liblwp.a(lwp.o): In function `LWP_QWait':
/home/mwaltz/debian/openafs-1.6.9/src/lwp/./lwp.c:246: undefined reference to `savecontext'
/home/mwaltz/debian/openafs-1.6.9/lib/liblwp.a(lwp.o): In function `LWP_CreateProcess':
/home/mwaltz/debian/openafs-1.6.9/src/lwp/./lwp.c:302: undefined reference to `savecontext'
/home/mwaltz/debian/openafs-1.6.9/src/lwp/./lwp.c:361: undefined reference to `savecontext'
/home/mwaltz/debian/openafs-1.6.9/src/lwp/./lwp.c:372: undefined reference to `savecontext'
/home/mwaltz/debian/openafs-1.6.9/src/lwp/./lwp.c:411: undefined reference to `savecontext'
/home/mwaltz/debian/openafs-1.6.9/lib/liblwp.a(lwp.o):/home/mwaltz/debian/openafs-1.6.9/src/lwp/./lwp.c:420: more undefined references to `savecontext' follow
collect2: error: ld returned 1 exit status
make[5]: *** [rmtsysd] Error 1
make[5]: Leaving directory `/home/mwaltz/debian/openafs-1.6.9/src/sys
Looking into the issue it appears that " glibc doesn't implement
getcontext/savecontext for arm." according to src/param.arm_linux26.h
source file.
I found a similar thread on the openafs-devel mailing list from 2009 regarding ppc builds [1] which makes reference to this, and it appears the openafs , "Debian packages are built with USE_UCONTEXT on every platform that
supports it and have been for quite a while.".
Since arm does not support ucontext, it appears building the package for
arm64 should use pthread libraries instead of lwp.
[1] https://lists.openafs.org/pipermail/openafs-
devel/2009-June/016791.html
System information:
lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04
uname -a
Linux zant 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:47:24 UTC 2014 aarch64 aarch64 aarch64 GNU/Linux
Package Versions
openafs-1.6.7 and openafs-1.6.9 from Debian/jessie
** Affects: openafs (Ubuntu)
Importance: Undecided
Status: New
** Tags: aarch64 arm64 openafs patch
--
Openafs Not Building on arm64
https://bugs.launchpad.net/bugs/1364544
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list