[OpenAFS] Cross compile for ARM using Debian

Armin Burchardt armin@its-hb.de
Sun, 27 Jul 2008 10:18:10 +0200


I have a Buffalo Linkstation Pro Duo (armv5tej) and struggle to
cross compile the cvs version for it to use it as a fileserver.
(1.5.50a's configure could not get the size for time_t).

How should i run ./configure? Something else missing?
"./configure --prefix=/usr/local/openafs --host=arm-linux-gnu
--with-afs-sysname=arm_linux26; make" resulted in
undefined references to `savecontext' and `returnto'.

Armin (running Debian lenny on build-host)

| armin@garuru:~$ arm-linux-gnu-gcc -v
| Using built-in specs.
| Target: arm-linux-gnu
| Configured with: ../src/configure -v --enable-languages=c,c++
| --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib
| --without-included-gettext --enable-threads=posix --enable-nls
| --with-gxx-include-dir=/usr/arm-linux-gnu/include/c++/4.0.4
| --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
| --enable-libstdcxx-debug --enable-checking=release
| --program-prefix=arm-linux-gnu- --includedir=/usr/arm-linux-gnu/include
| --build=i486-linux-gnu --host=i486-linux-gnu --target=arm-linux-gnu
| Thread model: posix
| gcc version 4.0.4 20060904 (prerelease) (Debian 4.0.3-7)