xfs
[Top] [All Lists]

Cross-compiling xfsprogs 3.2.x

To: xfs@xxxxxxxxxxx
Subject: Cross-compiling xfsprogs 3.2.x
From: Detlef Vollmann <dv@xxxxxxxxxxx>
Date: Fri, 07 Aug 2015 14:25:08 +0200
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
Cross-compiling xfsprogs 3.2.4 gives an error:
./gen_crc32table: cannot execute binary file: Exec format error
This makes sense as a binary built for the target can't run on
the build host.
Working around that isn't hard, however there's no way to run
crc32selftest sensibly and I have no idea whether tables built
on a little-endian 64-bit host will run on a big-endian 32-bit...

Also, I get nervous if I see all the warnings like:
readdir.c:77:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type '__off64_t' [-Wformat=]
  printf(" d_off: 0x%08lx", dirent->d_off);


Any ideas?
  Detlef

<Prev in Thread] Current Thread [Next in Thread>