Does not build on AArch64 architecture [SOLVED]

Post here if you found a bug or something really not expected in the program
Post Reply
hrw
Posts: 1
Joined: Fri Sep 05, 2014 11:08 am

Does not build on AArch64 architecture [SOLVED]

Post by hrw » Fri Sep 05, 2014 11:12 am

I am building fsarchiver for Fedora 21 on AArch64 architecture. And it fails:

Code: Select all

DEBUG: Making all in src
DEBUG: make[2]: Entering directory '/builddir/build/BUILD/fsarchiver-0.6.19/src'
DEBUG:   CC     fsarchiver-fsarchiver.o
DEBUG:   CC     fsarchiver-oper_save.o
DEBUG:   CC     fsarchiver-oper_restore.o
DEBUG:   CC     fsarchiver-oper_probe.o
DEBUG:   CC     fsarchiver-thread_archio.o
DEBUG:   CC     fsarchiver-archreader.o
DEBUG:   CC     fsarchiver-archwriter.o
DEBUG:   CC     fsarchiver-writebuf.o
DEBUG: In file included from fsarchiver.h:21:0,
DEBUG:                  from fsarchiver.c:28:
DEBUG: types.h:37:18: error: conflicting types for '__le64'
DEBUG:  typedef uint64_t __le64;
DEBUG:                   ^
DEBUG: In file included from /usr/include/asm/sigcontext.h:19:0,
DEBUG:                  from /usr/include/bits/sigcontext.h:27,
DEBUG:                  from /usr/include/signal.h:332,
DEBUG:                  from fsarchiver.c:24:
DEBUG: /usr/include/linux/types.h:31:25: note: previous declaration of '__le64' was here
DEBUG:  typedef __u64 __bitwise __le64;
DEBUG:                          ^
DEBUG: archreader.c: In function 'archreader_close':
DEBUG: archreader.c:129:5: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result]
DEBUG:      lockf(ai->archfd, F_ULOCK, 0);
DEBUG:      ^
DEBUG: Makefile:421: recipe for target 'fsarchiver-fsarchiver.o' failed
DEBUG: make[2]: *** [fsarchiver-fsarchiver.o] Error 1
DEBUG: make[2]: *** Waiting for unfinished jobs....
DEBUG: make[2]: Leaving directory '/builddir/build/BUILD/fsarchiver-0.6.19/src'
/usr/include/linux/types.h has:

Code: Select all

/*
 * Below are truly Linux-specific types that should never collide with
 * any application/library that wants linux/types.h.
 */

#ifdef __CHECKER__
#define __bitwise__ __attribute__((bitwise))
#else
#define __bitwise__
#endif
#ifdef __CHECK_ENDIAN__
#define __bitwise __bitwise__
#else
#define __bitwise
#endif

typedef __u16 __bitwise __le16;
typedef __u16 __bitwise __be16;
typedef __u32 __bitwise __le32;
typedef __u32 __bitwise __be32;
typedef __u64 __bitwise __le64;
typedef __u64 __bitwise __be64;

typedef __u16 __bitwise __sum16;
typedef __u32 __bitwise __wsum;

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: Does not build on AArch64 architecture

Post by admin » Thu Jan 07, 2016 9:24 pm

This bug has been fixed in fsarchiver-0.6.21

Post Reply