[OpenAFS-devel] Re: Compiling openafs on arm64/aarch64 architecture

Micheal Waltz mwaltz@qualcomm.com
Tue, 2 Sep 2014 16:08:10 -0700


On 09/02/14 14:15, Andrew Deason wrote:
> Something you can try pretty
> quickly is to just get rid of that #undef, and the build should try to
> use ucontext (unless there's something else disabling it elsewhere, but
> I wouldn't think so).

Removing the #undef gives a diff for param.arm_linux26.h of,

--- openafs-1.6.9/src/config/param.arm_linux26.h
+++ openafs-1.6.9/src/config/param.arm_linux26.h
@@ -34,7 +34,4 @@
  #define __NR_afs_syscall 137
  #endif

-/* glibc doesn't implement getcontext/savecontext for arm. */
-#undef USE_UCONTEXT
-
  #endif /* AFS_PARAM_H */

which when trying to build the package unfortunately still ends up with 
the same error,

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'
make[4]: *** [sys] Error 2
make[4]: Leaving directory `/home/mwaltz/debian/openafs-1.6.9'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/home/mwaltz/debian/openafs-1.6.9'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mwaltz/debian/openafs-1.6.9'
dh_auto_build: make -j1 returned exit code 2
make[1]: *** [override_dh_auto_build-indep] Error 2
make[1]: Leaving directory `/home/mwaltz/debian/openafs-1.6.9'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

-- 
Micheal Waltz
Unix Configuration Management (go/ucm)
Qualcomm Inc.