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

Andrew Deason adeason@sinenomine.net
Tue, 2 Sep 2014 18:32:55 -0500


This is a multi-part message in MIME format.

--Multipart=_Tue__2_Sep_2014_18_32_55_-0500_wCHGALm1L2rhazV0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

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

> 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,

Yes, that was dumb; obviously the ARM build system already has a
different file to build without using ucontext. Try the attached patch
in addition to the diff you just posted. This may (likely) fail horribly
trying to compile process.c, but just in case this might work without me
having to build an aarch64 image locally...

-- 
Andrew Deason
adeason@sinenomine.net

--Multipart=_Tue__2_Sep_2014_18_32_55_-0500_wCHGALm1L2rhazV0
Content-Type: text/x-diff;
 name="armucontext.diff"
Content-Disposition: attachment;
 filename="armucontext.diff"
Content-Transfer-Encoding: 7bit

diff --git a/src/lwp/Makefile.in b/src/lwp/Makefile.in
index 15c1375..e50d64c 100644
--- a/src/lwp/Makefile.in
+++ b/src/lwp/Makefile.in
@@ -53,7 +53,7 @@ process.s:
 # Making process.o for $(SYS_NAME)
 process.o	: process.s process.i386.s process.amd64.s process.c lwp.o
 	@set -x; case "$(SYS_NAME)" in \
-	sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53  | sun4_53 | sun4_52 | sun4_54 | sun4c_54 | sun4m_54 | sun4x_5* | arm_linux* ) \
+	sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53  | sun4_53 | sun4_52 | sun4_54 | sun4c_54 | sun4m_54 | sun4x_5* ) \
 		$(PATH_CPP) -P -I${TOP_INCDIR} ${srcdir}/process.s > process.ss; \
 		${AS} process.ss -o process.o; \
 			$(RM) process.ss ;; \

--Multipart=_Tue__2_Sep_2014_18_32_55_-0500_wCHGALm1L2rhazV0--