All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Help with cross compilation needed
@ 2017-11-01 11:19 Moshe Kravchik
  2017-11-02  8:52 ` Marco Cavallini
  0 siblings, 1 reply; 2+ messages in thread
From: Moshe Kravchik @ 2017-11-01 11:19 UTC (permalink / raw)
  To: dm-crypt


[-- Attachment #1.1: Type: text/plain, Size: 745 bytes --]

Hi,
I’m a newbie to cross compiling so excuse me if it is a dump question. I need to cross compile cryptsetup on my x86-64_linux_gnu for arm Linux machine. I’ve run configure with the –host set to arm-linux-gnueabihf. But the built binaries are for my machine, not for the target one.

I guess I need to point it to the right toolchain, sysroot for the includes and such. I tried to use –with-sysroot, but it did not have any effect.

Configure.log attached.

I’d appreciate a detailed guidance on how this should work. Also, I have toolchains, but what about dependent libraries: devmapper, popt, gcrypt. What do I do with them?

Thanks a lot,
Moshe

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


[-- Attachment #1.2: Type: text/html, Size: 2429 bytes --]

[-- Attachment #2: config.log --]
[-- Type: application/octet-stream, Size: 55922 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by cryptsetup configure 1.7.5, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --host=arm-linux-gnueabihf --prefix=/home/moshe/devel/optee/cryptsetup/cryptsetup/build

## --------- ##
## Platform. ##
## --------- ##

hostname = moshe-VirtualBox
uname -m = x86_64
uname -r = 4.10.0-37-generic
uname -s = Linux
uname -v = #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/moshe/bin
PATH: /home/moshe/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2547: checking whether make supports nested variables
configure:2564: result: yes
configure:2631: checking for a BSD-compatible install
configure:2699: result: /usr/bin/install -c
configure:2710: checking whether build environment is sane
configure:2765: result: yes
configure:2824: checking for arm-linux-gnueabihf-strip
configure:2854: result: no
configure:2864: checking for strip
configure:2880: found /usr/bin/strip
configure:2891: result: strip
configure:2916: checking for a thread-safe mkdir -p
configure:2955: result: /bin/mkdir -p
configure:2962: checking for gawk
configure:2992: result: no
configure:2962: checking for mawk
configure:2978: found /usr/bin/mawk
configure:2989: result: mawk
configure:3000: checking whether make sets $(MAKE)
configure:3022: result: yes
configure:3165: checking build system type
configure:3179: result: x86_64-unknown-linux-gnu
configure:3199: checking host system type
configure:3212: result: arm-unknown-linux-gnueabihf
configure:3244: checking for style of include used by make
configure:3272: result: GNU
configure:3303: checking for arm-linux-gnueabihf-gcc
configure:3333: result: no
configure:3343: checking for gcc
configure:3359: found /usr/bin/gcc
configure:3370: result: gcc
configure:3599: checking for C compiler version
configure:3608: gcc --version >&5
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3619: $? = 0
configure:3608: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.5' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 
configure:3619: $? = 0
configure:3608: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3619: $? = 1
configure:3608: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3619: $? = 1
configure:3639: checking whether the C compiler works
configure:3661: gcc    conftest.c  >&5
configure:3665: $? = 0
configure:3713: result: yes
configure:3716: checking for C compiler default output file name
configure:3718: result: a.out
configure:3724: checking for suffix of executables
configure:3731: gcc -o conftest    conftest.c  >&5
configure:3735: $? = 0
configure:3757: result: 
configure:3779: checking whether we are cross compiling
configure:3787: gcc -o conftest    conftest.c  >&5
configure:3791: $? = 0
configure:3798: ./conftest
configure:3802: $? = 0
configure:3817: result: no
configure:3822: checking for suffix of object files
configure:3844: gcc -c   conftest.c >&5
configure:3848: $? = 0
configure:3869: result: o
configure:3873: checking whether we are using the GNU C compiler
configure:3892: gcc -c   conftest.c >&5
configure:3892: $? = 0
configure:3901: result: yes
configure:3910: checking whether gcc accepts -g
configure:3930: gcc -c -g  conftest.c >&5
configure:3930: $? = 0
configure:3971: result: yes
configure:3988: checking for gcc option to accept ISO C89
configure:4051: gcc  -c -g -O2  conftest.c >&5
configure:4051: $? = 0
configure:4064: result: none needed
configure:4089: checking whether gcc understands -c and -o together
configure:4111: gcc -c conftest.c -o conftest2.o
configure:4114: $? = 0
configure:4111: gcc -c conftest.c -o conftest2.o
configure:4114: $? = 0
configure:4126: result: yes
configure:4145: checking dependency style of gcc
configure:4256: result: gcc3
configure:4277: checking how to run the C preprocessor
configure:4308: gcc -E  conftest.c
configure:4308: $? = 0
configure:4322: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4322: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4347: result: gcc -E
configure:4367: gcc -E  conftest.c
configure:4367: $? = 0
configure:4381: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4381: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4410: checking for grep that handles long lines and -e
configure:4468: result: /bin/grep
configure:4473: checking for egrep
configure:4535: result: /bin/grep -E
configure:4540: checking for ANSI C header files
configure:4560: gcc -c -g -O2  conftest.c >&5
configure:4560: $? = 0
configure:4633: gcc -o conftest -g -O2   conftest.c  >&5
configure:4633: $? = 0
configure:4633: ./conftest
configure:4633: $? = 0
configure:4644: result: yes
configure:4657: checking for sys/types.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4657: checking for sys/stat.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4657: checking for stdlib.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4657: checking for string.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4657: checking for memory.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4657: checking for strings.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4657: checking for inttypes.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4657: checking for stdint.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4657: checking for unistd.h
configure:4657: gcc -c -g -O2  conftest.c >&5
configure:4657: $? = 0
configure:4657: result: yes
configure:4670: checking minix/config.h usability
configure:4670: gcc -c -g -O2  conftest.c >&5
conftest.c:54:26: fatal error: minix/config.h: No such file or directory
compilation terminated.
configure:4670: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:4670: result: no
configure:4670: checking minix/config.h presence
configure:4670: gcc -E  conftest.c
conftest.c:21:26: fatal error: minix/config.h: No such file or directory
compilation terminated.
configure:4670: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <minix/config.h>
configure:4670: result: no
configure:4670: checking for minix/config.h
configure:4670: result: no
configure:4691: checking whether it is safe to define __EXTENSIONS__
configure:4709: gcc -c -g -O2  conftest.c >&5
configure:4709: $? = 0
configure:4716: result: yes
configure:4738: checking for arm-linux-gnueabihf-gcc
configure:4765: result: gcc
configure:5034: checking for C compiler version
configure:5043: gcc --version >&5
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5054: $? = 0
configure:5043: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.5' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 
configure:5054: $? = 0
configure:5043: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5054: $? = 1
configure:5043: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:5054: $? = 1
configure:5058: checking whether we are using the GNU C compiler
configure:5086: result: yes
configure:5095: checking whether gcc accepts -g
configure:5156: result: yes
configure:5173: checking for gcc option to accept ISO C89
configure:5249: result: none needed
configure:5274: checking whether gcc understands -c and -o together
configure:5311: result: yes
configure:5330: checking dependency style of gcc
configure:5441: result: gcc3
configure:5462: checking how to run the C preprocessor
configure:5532: result: gcc -E
configure:5552: gcc -E  conftest.c
configure:5552: $? = 0
configure:5566: gcc -E  conftest.c
conftest.c:26:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5566: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5595: checking whether make sets $(MAKE)
configure:5617: result: yes
configure:5703: checking how to print strings
configure:5730: result: printf
configure:5751: checking for a sed that does not truncate output
configure:5815: result: /bin/sed
configure:5833: checking for fgrep
configure:5895: result: /bin/grep -F
configure:5930: checking for ld used by gcc
configure:5997: result: /usr/bin/ld
configure:6004: checking if the linker (/usr/bin/ld) is GNU ld
configure:6019: result: yes
configure:6031: checking for BSD- or MS-compatible name lister (nm)
configure:6085: result: no
configure:6099: checking for arm-linux-gnueabihf-dumpbin
configure:6129: result: no
configure:6099: checking for arm-linux-gnueabihf-link
configure:6129: result: no
configure:6143: checking for dumpbin
configure:6173: result: no
configure:6143: checking for link
configure:6159: found /usr/bin/link
configure:6170: result: link -dump
configure:6215: checking the name lister (nm) interface
configure:6222: gcc -c -g -O2  conftest.c >&5
configure:6225: nm "conftest.o"
configure:6228: output
0000000000000000 B some_variable
configure:6235: result: BSD nm
configure:6238: checking whether ln -s works
configure:6242: result: yes
configure:6250: checking the maximum length of command line arguments
configure:6381: result: 1572864
configure:6429: checking how to convert x86_64-unknown-linux-gnu file names to arm-unknown-linux-gnueabihf format
configure:6469: result: func_convert_file_noop
configure:6476: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
configure:6496: result: func_convert_file_noop
configure:6503: checking for /usr/bin/ld option to reload object files
configure:6510: result: -r
configure:6544: checking for arm-linux-gnueabihf-objdump
configure:6574: result: no
configure:6584: checking for objdump
configure:6600: found /usr/bin/objdump
configure:6611: result: objdump
configure:6643: checking how to recognize dependent libraries
configure:6843: result: pass_all
configure:6888: checking for arm-linux-gnueabihf-dlltool
configure:6918: result: no
configure:6928: checking for dlltool
configure:6958: result: no
configure:6988: checking how to associate runtime and link libraries
configure:7015: result: printf %s\n
configure:7031: checking for arm-linux-gnueabihf-ar
configure:7061: result: no
configure:7075: checking for ar
configure:7091: found /usr/bin/ar
configure:7102: result: ar
configure:7139: checking for archiver @FILE support
configure:7156: gcc -c -g -O2  conftest.c >&5
configure:7156: $? = 0
configure:7159: ar cru libconftest.a @conftest.lst >&5
ar: `u' modifier ignored since `D' is the default (see `U')
configure:7162: $? = 0
configure:7167: ar cru libconftest.a @conftest.lst >&5
ar: `u' modifier ignored since `D' is the default (see `U')
ar: conftest.o: No such file or directory
configure:7170: $? = 1
configure:7182: result: @
configure:7200: checking for arm-linux-gnueabihf-strip
configure:7227: result: strip
configure:7299: checking for arm-linux-gnueabihf-ranlib
configure:7329: result: no
configure:7339: checking for ranlib
configure:7355: found /usr/bin/ranlib
configure:7366: result: ranlib
configure:7468: checking command to parse nm output from gcc object
configure:7621: gcc -c -g -O2  conftest.c >&5
configure:7624: $? = 0
configure:7628: nm conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:7631: $? = 0
configure:7697: gcc -o conftest -g -O2   conftest.c conftstm.o >&5
configure:7700: $? = 0
configure:7738: result: ok
configure:7785: checking for sysroot
configure:7815: result: no
configure:7822: checking for a working dd
configure:7860: result: /bin/dd
configure:7864: checking how to truncate binary pipes
configure:7879: result: /bin/dd bs=4096 count=1
configure:8168: checking for arm-linux-gnueabihf-mt
configure:8198: result: no
configure:8208: checking for mt
configure:8224: found /bin/mt
configure:8235: result: mt
configure:8258: checking if mt is a manifest tool
configure:8264: mt '-?'
configure:8272: result: no
configure:8946: checking for dlfcn.h
configure:8946: gcc -c -g -O2  conftest.c >&5
configure:8946: $? = 0
configure:8946: result: yes
configure:9172: checking for objdir
configure:9187: result: .libs
configure:9451: checking if gcc supports -fno-rtti -fno-exceptions
configure:9469: gcc -c -g -O2  -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C
configure:9473: $? = 0
configure:9486: result: no
configure:9844: checking for gcc option to produce PIC
configure:9851: result: -fPIC -DPIC
configure:9859: checking if gcc PIC flag -fPIC -DPIC works
configure:9877: gcc -c -g -O2  -fPIC -DPIC -DPIC conftest.c >&5
configure:9881: $? = 0
configure:9894: result: yes
configure:9923: checking if gcc static flag -static works
configure:9951: result: yes
configure:9966: checking if gcc supports -c -o file.o
configure:9987: gcc -c -g -O2  -o out/conftest2.o conftest.c >&5
configure:9991: $? = 0
configure:10013: result: yes
configure:10021: checking if gcc supports -c -o file.o
configure:10068: result: yes
configure:10101: checking whether the gcc linker (/usr/bin/ld) supports shared libraries
configure:11364: result: yes
configure:11401: checking whether -lc should be explicitly linked in
configure:11409: gcc -c -g -O2  conftest.c >&5
configure:11412: $? = 0
configure:11427: gcc -shared  -fPIC -DPIC conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep  -lc  \>/dev/null 2\>\&1
configure:11430: $? = 0
configure:11444: result: no
configure:11604: checking dynamic linker characteristics
configure:12185: gcc -o conftest -g -O2   -Wl,-rpath -Wl,/foo conftest.c  >&5
configure:12185: $? = 0
configure:12434: result: GNU/Linux ld.so
configure:12556: checking how to hardcode library paths into programs
configure:12581: result: immediate
configure:13129: checking whether stripping libraries is possible
configure:13134: result: yes
configure:13169: checking if libtool supports shared libraries
configure:13171: result: yes
configure:13174: checking whether to build shared libraries
configure:13199: result: yes
configure:13202: checking whether to build static libraries
configure:13206: result: no
configure:13254: checking for arm-linux-gnueabihf-pkg-config
configure:13287: result: no
configure:13297: checking for pkg-config
configure:13315: found /usr/bin/pkg-config
configure:13327: result: /usr/bin/pkg-config
configure:13352: checking pkg-config is at least version 0.9.0
configure:13355: result: yes
configure:13367: checking for dirent.h that defines DIR
configure:13386: gcc -c -g -O2  conftest.c >&5
configure:13386: $? = 0
configure:13394: result: yes
configure:13407: checking for library containing opendir
configure:13438: gcc -o conftest -g -O2   conftest.c  >&5
configure:13438: $? = 0
configure:13455: result: none required
configure:13522: checking for ANSI C header files
configure:13626: result: yes
configure:13638: checking fcntl.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking fcntl.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for fcntl.h
configure:13638: result: yes
configure:13638: checking malloc.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking malloc.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for malloc.h
configure:13638: result: yes
configure:13638: checking for inttypes.h
configure:13638: result: yes
configure:13638: checking sys/ioctl.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking sys/ioctl.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for sys/ioctl.h
configure:13638: result: yes
configure:13638: checking sys/mman.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking sys/mman.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for sys/mman.h
configure:13638: result: yes
configure:13638: checking sys/sysmacros.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking sys/sysmacros.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for sys/sysmacros.h
configure:13638: result: yes
configure:13638: checking ctype.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking ctype.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for ctype.h
configure:13638: result: yes
configure:13638: checking for unistd.h
configure:13638: result: yes
configure:13638: checking locale.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking locale.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for locale.h
configure:13638: result: yes
configure:13638: checking byteswap.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking byteswap.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for byteswap.h
configure:13638: result: yes
configure:13638: checking endian.h usability
configure:13638: gcc -c -g -O2  conftest.c >&5
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking endian.h presence
configure:13638: gcc -E  conftest.c
configure:13638: $? = 0
configure:13638: result: yes
configure:13638: checking for endian.h
configure:13638: result: yes
configure:13651: checking uuid/uuid.h usability
configure:13651: gcc -c -g -O2  conftest.c >&5
configure:13651: $? = 0
configure:13651: result: yes
configure:13651: checking uuid/uuid.h presence
configure:13651: gcc -E  conftest.c
configure:13651: $? = 0
configure:13651: result: yes
configure:13651: checking for uuid/uuid.h
configure:13651: result: yes
configure:13663: checking libdevmapper.h usability
configure:13663: gcc -c -g -O2  conftest.c >&5
configure:13663: $? = 0
configure:13663: result: yes
configure:13663: checking libdevmapper.h presence
configure:13663: gcc -E  conftest.c
configure:13663: $? = 0
configure:13663: result: yes
configure:13663: checking for libdevmapper.h
configure:13663: result: yes
configure:13673: checking for uuid_clear in -luuid
configure:13698: gcc -o conftest -g -O2   conftest.c -luuid   >&5
configure:13698: $? = 0
configure:13707: result: yes
configure:13724: checking for library containing clock_gettime
configure:13755: gcc -o conftest -g -O2   conftest.c  >&5
configure:13755: $? = 0
configure:13772: result: none required
configure:13783: checking for posix_memalign
configure:13783: gcc -o conftest -g -O2   conftest.c  >&5
conftest.c:66:6: warning: conflicting types for built-in function 'posix_memalign'
 char posix_memalign ();
      ^
configure:13783: $? = 0
configure:13783: result: yes
configure:13783: checking for clock_gettime
configure:13783: gcc -o conftest -g -O2   conftest.c  >&5
configure:13783: $? = 0
configure:13783: result: yes
configure:13797: checking for an ANSI C-conforming const
configure:13863: gcc -c -g -O2  conftest.c >&5
configure:13863: $? = 0
configure:13870: result: yes
configure:13878: checking whether byte ordering is bigendian
configure:13893: gcc -c -g -O2  conftest.c >&5
conftest.c:46:9: error: unknown type name 'not'
         not a universal capable compiler
         ^
conftest.c:46:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'universal'
         not a universal capable compiler
               ^
conftest.c:46:15: error: unknown type name 'universal'
configure:13893: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define HAVE_UUID_UUID_H 1
| #define HAVE_LIBUUID 1
| #define HAVE_POSIX_MEMALIGN 1
| #define HAVE_CLOCK_GETTIME 1
| /* end confdefs.h.  */
| #ifndef __APPLE_CC__
| 	       not a universal capable compiler
| 	     #endif
| 	     typedef int dummy;
| 
configure:13938: gcc -c -g -O2  conftest.c >&5
configure:13938: $? = 0
configure:13956: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:52:4: error: unknown type name 'not'
    not big endian
    ^
conftest.c:52:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'endian'
    not big endian
            ^
configure:13956: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define HAVE_UUID_UUID_H 1
| #define HAVE_LIBUUID 1
| #define HAVE_POSIX_MEMALIGN 1
| #define HAVE_CLOCK_GETTIME 1
| /* end confdefs.h.  */
| #include <sys/types.h>
| 		#include <sys/param.h>
| 
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
| 		 not big endian
| 		#endif
| 
|   ;
|   return 0;
| }
configure:14084: result: no
configure:14102: checking for off_t
configure:14102: gcc -c -g -O2  conftest.c >&5
configure:14102: $? = 0
configure:14102: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:81:20: error: expected expression before ')' token
 if (sizeof ((off_t)))
                    ^
configure:14102: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define HAVE_UUID_UUID_H 1
| #define HAVE_LIBUUID 1
| #define HAVE_POSIX_MEMALIGN 1
| #define HAVE_CLOCK_GETTIME 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| if (sizeof ((off_t)))
| 	    return 0;
|   ;
|   return 0;
| }
configure:14102: result: yes
configure:14120: checking for special C compiler options needed for large files
configure:14165: result: no
configure:14171: checking for _FILE_OFFSET_BITS value needed for large files
configure:14196: gcc -c -g -O2  conftest.c >&5
configure:14196: $? = 0
configure:14228: result: no
configure:14313: checking for _LARGEFILE_SOURCE value needed for large files
configure:14332: gcc -o conftest -g -O2   conftest.c  >&5
configure:14332: $? = 0
configure:14360: result: no
configure:14382: checking whether gcc needs -traditional
configure:14416: result: no
configure:14423: checking whether strerror_r is declared
configure:14423: gcc -c -g -O2  conftest.c >&5
configure:14423: $? = 0
configure:14423: result: yes
configure:14436: checking for strerror_r
configure:14436: gcc -o conftest -g -O2   conftest.c  >&5
configure:14436: $? = 0
configure:14436: result: yes
configure:14445: checking whether strerror_r returns char *
configure:14469: gcc -c -g -O2  conftest.c >&5
configure:14469: $? = 0
configure:14507: result: yes
configure:14525: checking whether NLS is requested
configure:14534: result: yes
configure:14572: checking for msgfmt
configure: trying /usr/bin/msgfmt...
0 translated messages.
configure:14604: result: /usr/bin/msgfmt
configure:14613: checking for gmsgfmt
configure:14644: result: /usr/bin/msgfmt
configure:14695: checking for xgettext
configure: trying /usr/bin/xgettext...
/usr/bin/xgettext: warning: file '/dev/null' extension '' is unknown; will try C
configure:14727: result: /usr/bin/xgettext
configure:14773: checking for msgmerge
configure: trying /usr/bin/msgmerge...
configure:14804: result: /usr/bin/msgmerge
configure:14858: checking for ld used by GCC
configure:14922: result: /usr/bin/ld
configure:14929: checking if the linker (/usr/bin/ld) is GNU ld
configure:14942: result: yes
configure:14949: checking for shared library run path origin
configure:14962: result: done
configure:15398: checking for CFPreferencesCopyAppValue
configure:15416: gcc -o conftest -g -O2   conftest.c  -Wl,-framework -Wl,CoreFoundation >&5
conftest.c:49:42: fatal error: CoreFoundation/CFPreferences.h: No such file or directory
compilation terminated.
configure:15416: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define HAVE_UUID_UUID_H 1
| #define HAVE_LIBUUID 1
| #define HAVE_POSIX_MEMALIGN 1
| #define HAVE_CLOCK_GETTIME 1
| #define HAVE_FSEEKO 1
| #define HAVE_DECL_STRERROR_R 1
| #define HAVE_STRERROR_R 1
| #define STRERROR_R_CHAR_P 1
| /* end confdefs.h.  */
| #include <CoreFoundation/CFPreferences.h>
| int
| main ()
| {
| CFPreferencesCopyAppValue(NULL, NULL)
|   ;
|   return 0;
| }
configure:15425: result: no
configure:15432: checking for CFLocaleCopyCurrent
configure:15450: gcc -o conftest -g -O2   conftest.c  -Wl,-framework -Wl,CoreFoundation >&5
conftest.c:49:37: fatal error: CoreFoundation/CFLocale.h: No such file or directory
compilation terminated.
configure:15450: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "1.7.5"
| #define PACKAGE_STRING "cryptsetup 1.7.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cryptsetup"
| #define VERSION "1.7.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_ENDIAN_H 1
| #define HAVE_UUID_UUID_H 1
| #define HAVE_LIBUUID 1
| #define HAVE_POSIX_MEMALIGN 1
| #define HAVE_CLOCK_GETTIME 1
| #define HAVE_FSEEKO 1
| #define HAVE_DECL_STRERROR_R 1
| #define HAVE_STRERROR_R 1
| #define STRERROR_R_CHAR_P 1
| /* end confdefs.h.  */
| #include <CoreFoundation/CFLocale.h>
| int
| main ()
| {
| CFLocaleCopyCurrent();
|   ;
|   return 0;
| }
configure:15459: result: no
configure:15488: checking for GNU gettext in libc
configure:15507: gcc -o conftest -g -O2   conftest.c  >&5
configure:15507: $? = 0
configure:15515: result: yes
configure:16104: checking whether to use NLS
configure:16106: result: yes
configure:16109: checking where the gettext function comes from
configure:16120: result: libc
configure:16181: checking for poptConfigFileToString in -lpopt
configure:16206: gcc -o conftest -g -O2   conftest.c -lpopt   >&5
configure:16206: $? = 0
configure:16215: result: yes
configure:16450: checking for DEVMAPPER
configure:16457: $PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03"
configure:16460: $? = 0
configure:16474: $PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03"
configure:16477: $? = 0
configure:16707: result: yes
configure:16714: checking whether dm_task_secure_data is declared
configure:16714: gcc -c -g -O2  conftest.c >&5
configure:16714: $? = 0
configure:16714: result: yes
configure:16726: checking whether dm_task_retry_remove is declared
configure:16726: gcc -c -g -O2  conftest.c >&5
configure:16726: $? = 0
configure:16726: result: yes
configure:16738: checking whether DM_UDEV_DISABLE_DISK_RULES_FLAG is declared
configure:16738: gcc -c -g -O2  conftest.c >&5
configure:16738: $? = 0
configure:16738: result: yes
configure:16788: checking linux/if_alg.h usability
configure:16788: gcc -c -g -O2  conftest.c >&5
configure:16788: $? = 0
configure:16788: result: yes
configure:16788: checking linux/if_alg.h presence
configure:16788: gcc -E  conftest.c
configure:16788: $? = 0
configure:16788: result: yes
configure:16788: checking for linux/if_alg.h
configure:16788: result: yes
configure:16851: checking for libgcrypt-config
configure:16869: found /usr/bin/libgcrypt-config
configure:16882: result: /usr/bin/libgcrypt-config
configure:16899: checking for LIBGCRYPT - version >= 1.6.1
configure:16933: result: yes (1.6.5)
configure:16972: WARNING:
***
*** The config script /usr/bin/libgcrypt-config was
*** built for x86_64-pc-linux-gnu and thus may not match the
*** used host arm-unknown-linux-gnueabihf.
*** You may want to use the configure option --with-libgcrypt-prefix
*** to specify a matching config script or use $SYSROOT.
***
configure:17025: checking for libgcrypt-config
configure:17056: result: /usr/bin/libgcrypt-config
configure:17073: checking for LIBGCRYPT - version >= 1.1.42
configure:17107: result: yes (1.6.5)
configure:17146: WARNING:
***
*** The config script /usr/bin/libgcrypt-config was
*** built for x86_64-pc-linux-gnu and thus may not match the
*** used host arm-unknown-linux-gnueabihf.
*** You may want to use the configure option --with-libgcrypt-prefix
*** to specify a matching config script or use $SYSROOT.
***
configure:17167: checking if internal cryptsetup PBKDF2 is compiled-in
configure:17170: result: no
configure:18931: checking that generated files are newer than configure
configure:18937: result: done
configure:19005: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by cryptsetup config.status 1.7.5, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on moshe-VirtualBox

config.status:1235: creating Makefile
config.status:1235: creating lib/Makefile
config.status:1235: creating lib/libcryptsetup.pc
config.status:1235: creating lib/crypto_backend/Makefile
config.status:1235: creating lib/luks1/Makefile
config.status:1235: creating lib/loopaes/Makefile
config.status:1235: creating lib/verity/Makefile
config.status:1235: creating lib/tcrypt/Makefile
config.status:1235: creating src/Makefile
config.status:1235: creating po/Makefile.in
config.status:1235: creating man/Makefile
config.status:1235: creating tests/Makefile
config.status:1235: creating python/Makefile
config.status:1235: creating config.h
config.status:1416: config.h is unchanged
config.status:1464: executing depfiles commands
config.status:1464: executing libtool commands
config.status:1464: executing po-directories commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DEVMAPPER_CFLAGS_set=
ac_cv_env_DEVMAPPER_CFLAGS_value=
ac_cv_env_DEVMAPPER_LIBS_set=
ac_cv_env_DEVMAPPER_LIBS_value=
ac_cv_env_DEVMAPPER_STATIC_CFLAGS_set=
ac_cv_env_DEVMAPPER_STATIC_CFLAGS_value=
ac_cv_env_DEVMAPPER_STATIC_LIBS_set=
ac_cv_env_DEVMAPPER_STATIC_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_NSS_CFLAGS_set=
ac_cv_env_NSS_CFLAGS_value=
ac_cv_env_NSS_LIBS_set=
ac_cv_env_NSS_LIBS_value=
ac_cv_env_OPENSSL_CFLAGS_set=
ac_cv_env_OPENSSL_CFLAGS_value=
ac_cv_env_OPENSSL_LIBS_set=
ac_cv_env_OPENSSL_LIBS_value=
ac_cv_env_OPENSSL_STATIC_CFLAGS_set=
ac_cv_env_OPENSSL_STATIC_CFLAGS_value=
ac_cv_env_OPENSSL_STATIC_LIBS_set=
ac_cv_env_OPENSSL_STATIC_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PWQUALITY_CFLAGS_set=
ac_cv_env_PWQUALITY_CFLAGS_value=
ac_cv_env_PWQUALITY_LIBS_set=
ac_cv_env_PWQUALITY_LIBS_value=
ac_cv_env_PYTHON_set=
ac_cv_env_PYTHON_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux-gnueabihf
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_clock_gettime=yes
ac_cv_func_posix_memalign=yes
ac_cv_func_strerror_r=yes
ac_cv_func_strerror_r_char_p=yes
ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG=yes
ac_cv_have_decl_dm_task_retry_remove=yes
ac_cv_have_decl_dm_task_secure_data=yes
ac_cv_have_decl_strerror_r=yes
ac_cv_header_byteswap_h=yes
ac_cv_header_ctype_h=yes
ac_cv_header_dirent_dirent_h=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_endian_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_libdevmapper_h=yes
ac_cv_header_linux_if_alg_h=yes
ac_cv_header_locale_h=yes
ac_cv_header_malloc_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_minix_config_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_ioctl_h=yes
ac_cv_header_sys_mman_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_sysmacros_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_uuid_uuid_h=yes
ac_cv_host=arm-unknown-linux-gnueabihf
ac_cv_lib_popt_poptConfigFileToString=yes
ac_cv_lib_uuid_uuid_clear=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_FGREP='/bin/grep -F'
ac_cv_path_GMSGFMT=/usr/bin/msgfmt
ac_cv_path_GREP=/bin/grep
ac_cv_path_LIBGCRYPT_CONFIG=/usr/bin/libgcrypt-config
ac_cv_path_MSGFMT=/usr/bin/msgfmt
ac_cv_path_MSGMERGE=/usr/bin/msgmerge
ac_cv_path_SED=/bin/sed
ac_cv_path_XGETTEXT=/usr/bin/xgettext
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_lt_DD=/bin/dd
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_CC=gcc
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_STRIP=strip
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_DUMPBIN='link -dump'
ac_cv_prog_ac_ct_MANIFEST_TOOL=mt
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_gcc_traditional=no
ac_cv_prog_make_make_set=yes
ac_cv_safe_to_define___extensions__=yes
ac_cv_search_clock_gettime='none required'
ac_cv_search_opendir='none required'
ac_cv_sys_file_offset_bits=no
ac_cv_sys_largefile_CC=no
ac_cv_sys_largefile_source=no
ac_cv_type_off_t=yes
acl_cv_hardcode_direct=no
acl_cv_hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
acl_cv_hardcode_libdir_separator=
acl_cv_hardcode_minus_L=no
acl_cv_libext=a
acl_cv_path_LD=/usr/bin/ld
acl_cv_prog_gnu_ld=yes
acl_cv_rpath=done
acl_cv_shlibext=so
acl_cv_wl=-Wl,
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes
gt_cv_func_CFLocaleCopyCurrent=no
gt_cv_func_CFPreferencesCopyAppValue=no
gt_cv_func_gnugettext2_libc=yes
lt_cv_ar_at_file=@
lt_cv_archive_cmds_need_lc=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_NM=no
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_pic='-fPIC -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_gnu_ld=yes
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_shlibpath_overrides_runpath=no
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[	 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[	 ][	 ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/  {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/  {"\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/  {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(lib.*\)$/  {"\1", (void *) \&\1},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/  {"lib\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_global_symbol_to_import=
lt_cv_sys_max_cmd_len=1572864
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
lt_cv_truncate_bin='/bin/dd bs=4096 count=1'
pkg_cv_DEVMAPPER_CFLAGS=
pkg_cv_DEVMAPPER_LIBS=-ldevmapper

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/moshe/devel/optee/cryptsetup/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AR='ar'
AUTOCONF='${SHELL} /home/moshe/devel/optee/cryptsetup/missing autoconf'
AUTOHEADER='${SHELL} /home/moshe/devel/optee/cryptsetup/missing autoheader'
AUTOMAKE='${SHELL} /home/moshe/devel/optee/cryptsetup/missing automake-1.15'
AWK='mawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CRYPTO_BACKEND_GCRYPT_FALSE='#'
CRYPTO_BACKEND_GCRYPT_TRUE=''
CRYPTO_BACKEND_KERNEL_FALSE=''
CRYPTO_BACKEND_KERNEL_TRUE='#'
CRYPTO_BACKEND_NETTLE_FALSE=''
CRYPTO_BACKEND_NETTLE_TRUE='#'
CRYPTO_BACKEND_NSS_FALSE=''
CRYPTO_BACKEND_NSS_TRUE='#'
CRYPTO_BACKEND_OPENSSL_FALSE=''
CRYPTO_BACKEND_OPENSSL_TRUE='#'
CRYPTO_CFLAGS=''
CRYPTO_INTERNAL_PBKDF2_FALSE=''
CRYPTO_INTERNAL_PBKDF2_TRUE='#'
CRYPTO_LIBS='-lgcrypt'
CRYPTO_STATIC_LIBS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DEVMAPPER_CFLAGS=''
DEVMAPPER_LIBS='-ldevmapper'
DEVMAPPER_STATIC_CFLAGS=''
DEVMAPPER_STATIC_LIBS=''
DLLTOOL='false'
DSYMUTIL=''
DUMPBIN=':'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
FGREP='/bin/grep -F'
GMSGFMT='/usr/bin/msgfmt'
GMSGFMT_015='/usr/bin/msgfmt'
GREP='/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LD='/usr/bin/ld'
LDFLAGS=''
LIBCRYPTSETUP_VERSION='1.7.5'
LIBCRYPTSETUP_VERSION_INFO='11:0:7'
LIBGCRYPT_CFLAGS=''
LIBGCRYPT_CONFIG='/usr/bin/libgcrypt-config'
LIBGCRYPT_LIBS='-lgcrypt'
LIBICONV='-liconv'
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBICONV='-liconv'
LTLIBINTL=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /home/moshe/devel/optee/cryptsetup/missing makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='/bin/mkdir -p'
MSGFMT='/usr/bin/msgfmt'
MSGFMT_015='/usr/bin/msgfmt'
MSGMERGE='/usr/bin/msgmerge'
NM='nm'
NMEDIT=''
NSS_CFLAGS=''
NSS_LIBS=''
OBJDUMP='objdump'
OBJEXT='o'
OPENSSL_CFLAGS=''
OPENSSL_LIBS=''
OPENSSL_STATIC_CFLAGS=''
OPENSSL_STATIC_LIBS=''
OTOOL64=''
OTOOL=''
PACKAGE='cryptsetup'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='cryptsetup'
PACKAGE_STRING='cryptsetup 1.7.5'
PACKAGE_TARNAME='cryptsetup'
PACKAGE_URL=''
PACKAGE_VERSION='1.7.5'
PASSWDQC_LIBS=''
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
POPT_LIBS='-lpopt '
POSUB='po'
PWQUALITY_CFLAGS=''
PWQUALITY_LIBS=''
PWQUALITY_STATIC_LIBS=''
PYTHON=''
PYTHON_CONFIG=''
PYTHON_CRYPTSETUP_FALSE=''
PYTHON_CRYPTSETUP_TRUE='#'
PYTHON_EXEC_PREFIX=''
PYTHON_INCLUDES=''
PYTHON_LIBS=''
PYTHON_PLATFORM=''
PYTHON_PREFIX=''
PYTHON_VERSION='2.6'
RANLIB='ranlib'
REENCRYPT_FALSE=''
REENCRYPT_TRUE='#'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
STATIC_TOOLS_FALSE=''
STATIC_TOOLS_TRUE='#'
STRIP='strip'
USE_NLS='yes'
UUID_LIBS='-luuid '
VERITYSETUP_FALSE='#'
VERITYSETUP_TRUE=''
VERSION='1.7.5'
XGETTEXT='/usr/bin/xgettext'
XGETTEXT_015='/usr/bin/xgettext'
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_DUMPBIN='link -dump'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='arm-unknown-linux-gnueabihf'
host_alias='arm-linux-gnueabihf'
host_cpu='arm'
host_os='linux-gnueabihf'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/moshe/devel/optee/cryptsetup/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgpyexecdir=''
pkgpythondir=''
prefix='/home/moshe/devel/optee/cryptsetup/cryptsetup/build'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir=''
pythondir=''
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "cryptsetup"
#define PACKAGE_TARNAME "cryptsetup"
#define PACKAGE_VERSION "1.7.5"
#define PACKAGE_STRING "cryptsetup 1.7.5"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "cryptsetup"
#define VERSION "1.7.5"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE_DIRENT_H 1
#define STDC_HEADERS 1
#define HAVE_FCNTL_H 1
#define HAVE_MALLOC_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_MMAN_H 1
#define HAVE_SYS_SYSMACROS_H 1
#define HAVE_CTYPE_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LOCALE_H 1
#define HAVE_BYTESWAP_H 1
#define HAVE_ENDIAN_H 1
#define HAVE_UUID_UUID_H 1
#define HAVE_LIBUUID 1
#define HAVE_POSIX_MEMALIGN 1
#define HAVE_CLOCK_GETTIME 1
#define HAVE_FSEEKO 1
#define HAVE_DECL_STRERROR_R 1
#define HAVE_STRERROR_R 1
#define STRERROR_R_CHAR_P 1
#define ENABLE_NLS 1
#define HAVE_GETTEXT 1
#define HAVE_DCGETTEXT 1
#define HAVE_LIBPOPT 1
#define PASSWDQC_CONFIG_FILE ""
#define HAVE_DECL_DM_TASK_SECURE_DATA 1
#define HAVE_DECL_DM_TASK_RETRY_REMOVE 1
#define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG 1
#define USE_UDEV 1
#define HAVE_LINUX_IF_ALG_H 1
#define ENABLE_AF_ALG 1
#define GCRYPT_REQ_VERSION "1.1.42"
#define USE_INTERNAL_PBKDF2 0
#define DEFAULT_RNG "/dev/urandom"
#define DEFAULT_PLAIN_HASH "ripemd160"
#define DEFAULT_PLAIN_CIPHER "aes"
#define DEFAULT_PLAIN_MODE "cbc-essiv:sha256"
#define DEFAULT_PLAIN_KEYBITS 256
#define DEFAULT_LUKS1_HASH "sha256"
#define DEFAULT_LUKS1_CIPHER "aes"
#define DEFAULT_LUKS1_MODE "xts-plain64"
#define DEFAULT_LUKS1_KEYBITS 256
#define DEFAULT_LUKS1_ITER_TIME 2000
#define DEFAULT_LOOPAES_CIPHER "aes"
#define DEFAULT_LOOPAES_KEYBITS 256
#define DEFAULT_KEYFILE_SIZE_MAXKB 8192
#define DEFAULT_PASSPHRASE_SIZE_MAX 512
#define DEFAULT_VERITY_HASH "sha256"
#define DEFAULT_VERITY_DATA_BLOCK 4096
#define DEFAULT_VERITY_HASH_BLOCK 4096
#define DEFAULT_VERITY_SALT_SIZE 32

configure: exit 0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dm-crypt] Help with cross compilation needed
  2017-11-01 11:19 [dm-crypt] Help with cross compilation needed Moshe Kravchik
@ 2017-11-02  8:52 ` Marco Cavallini
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Cavallini @ 2017-11-02  8:52 UTC (permalink / raw)
  To: dm-crypt

Il 01/11/2017 12:19, Moshe Kravchik ha scritto:
> Hi,
> 
> I’m a newbie to cross compiling so excuse me if it is a dump question. I 
> need to cross compile cryptsetup on my x86-64_linux_gnu for arm Linux 
> machine. I’ve run configure with the –host set to arm-linux-gnueabihf. 
> But the built binaries are for my machine, not for the target one.
> 
> I guess I need to point it to the right toolchain, sysroot for the 
> includes and such. I tried to use –with-sysroot, but it did not have any 
> effect.
> 
> Configure.log attached.
> 
> I’d appreciate a detailed guidance on how this should work. Also, I have 
> toolchains, but what about dependent libraries: devmapper, popt, gcrypt. 
> What do I do with them?
> 
> Thanks a lot,
> 
> Moshe
> 


Hi,
try adding the following environment variables before calling 
./configure and make

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-


--
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
       http://www.KoanSoftware.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-02  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-01 11:19 [dm-crypt] Help with cross compilation needed Moshe Kravchik
2017-11-02  8:52 ` Marco Cavallini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.