[dm-crypt] Cryptsetup cross compiling for ARM fails

Moshe Kravchik mkravchik at hotmail.com
Mon Nov 6 10:54:09 CET 2017


Hi,

I’m trying to build cryptsetup for an ARM Linux machine. I’ve built all dependencies in a dedicated directory and am trying to build cryptsetup there.

Configure succeeds:

./configure --host=arm-linux-gnueabihf CC="/usr/bin/ccache `pwd`/../toolchains/aarch32/bin/arm-linux-gnueabihf-gcc" --prefix=`pwd`/build --with-sysroot=`pwd`/../toolchains/aarch32/arm-linux-gnueabihf/libc --enable-static --with-libgcrypt-prefix=`pwd`/build CFLAGS="-I`pwd`/build/include" LDFLAGS="-L`pwd`/build/lib "

I’m getting these strange errors, the path is definitely wrong and I haven’t passed it like that, looks like it concatenated two unrelated parts.

/bin/sed: can't read /home/moshe/devel/XXX/cryptsetup/../toolchains/aarch32/arm-linux-gnueabihf/libc/home/moshe/devel/XXX/cryptsetup/build/lib/libgpg-error.la: No such file or directory

libtool:   error: '=/home/moshe/devel/XXX/cryptsetup/build/lib/libgpg-error.la' is not a valid libtool archive

Makefile:569: recipe for target 'libcryptsetup.la' failed

BTW, I can see that the binary is built in .libs


Running make for the second time succeeds, but then make install fails (see the next error).

libtool: install: /usr/bin/install -c .libs/libcryptsetup.lai /home/moshe/devel/optee/cryptsetup/build/lib/libcryptsetup.la

/usr/bin/install: cannot stat '.libs/libcryptsetup.lai': No such file or directory
Please help,
Moshe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20171106/8e419756/attachment.html>


More information about the dm-crypt mailing list