[Bug 1364544] Re: Openafs Not Building on arm64

Emmet Hikory persia at ubuntu.com
Thu Mar 15 02:22:28 UTC 2018


** Changed in: openafs (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1364544

Title:
  Openafs Not Building on arm64

Status in openafs package in Ubuntu:
  Confirmed

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openafs/+bug/1364544/+subscriptions



More information about the Ubuntu-sponsors mailing list