cannot cross compile dbus-1.8.16 for Android on ARM: sizeof(various types) == 0
Submitted by mid..@..il.com
Assigned to D-Bus Maintainers
Description
Hi All, we are trying to cross compile dbus-18.16 for arm platform
I have used the command : CROSS_COMPILE=arm-linux-androideabi- CXX=gcc LDFLAGS=-L/home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib ./configure --target=arm-linux-androideabi --host=arm-linux-androideabi
The error comes like: "checking 64-bit integer type... not found configure: error: Could not find a 64-bit integer type." If any suggestions/workaround is there, it will be very helpful.
Thanks a lot, Best Regards, Sudip
The error log shows: sudip@embitel-dea600-dev:~/imx6x_android_4.3_1.1.0/external/dbus-1.8.16$ CROSS_COMPILE=arm-linux-androideabi- CXX=gcc LDFLAGS=-L/home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib ./configure --target=arm-linux-androideabi --host=arm-linux-androideabi checking build system type... x86_64-unknown-linux-gnu checking host system type... arm-unknown-linux-androideabi checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '1001' is supported by ustar format... yes checking whether GID '1001' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports nested variables... (cached) yes checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-linux-androideabi-gcc accepts -g... yes checking for arm-linux-androideabi-gcc option to accept ISO C89... unsupported checking whether arm-linux-androideabi-gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of arm-linux-androideabi-gcc... gcc3 checking whether we are using the GNU C++ compiler... yes checking whether gcc accepts -g... yes checking dependency style of gcc... gcc3 checking how to run the C preprocessor... /lib/cpp checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... no checking for sys/types.h... no checking for sys/stat.h... no checking for stdlib.h... no checking for string.h... no checking for memory.h... no checking for strings.h... no checking for inttypes.h... no checking for stdint.h... no checking for unistd.h... no checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... no checking for library containing strerror... no checking for ANSI C header files... (cached) no checking for inline... inline checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by arm-linux-androideabi-gcc... /home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ld checking if the linker (/home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-nm -B checking the name lister (/home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to arm-unknown-linux-androideabi format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ld option to reload object files... -r checking for arm-linux-androideabi-objdump... arm-linux-androideabi-objdump checking how to recognize dependent libraries... pass_all checking for arm-linux-androideabi-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for arm-linux-androideabi-ar... arm-linux-androideabi-ar checking for archiver @FILE support... @ checking for arm-linux-androideabi-strip... (cached) arm-linux-androideabi-strip checking for arm-linux-androideabi-ranlib... arm-linux-androideabi-ranlib checking command to parse /home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-nm -B output from arm-linux-androideabi-gcc object... ok checking for sysroot... no checking for arm-linux-androideabi-mt... no checking for mt... mt configure: WARNING: using cross tools not prefixed with host triplet checking if mt is a manifest tool... no checking for dlfcn.h... no checking for objdir... .libs checking if arm-linux-androideabi-gcc supports -fno-rtti -fno-exceptions... no checking for arm-linux-androideabi-gcc option to produce PIC... -fPIC -DPIC checking if arm-linux-androideabi-gcc PIC flag -fPIC -DPIC works... yes checking if arm-linux-androideabi-gcc static flag -static works... yes checking if arm-linux-androideabi-gcc supports -c -o file.o... yes checking if arm-linux-androideabi-gcc supports -c -o file.o... (cached) yes checking whether the arm-linux-androideabi-gcc linker (/home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... gcc -E checking for ld used by gcc... /home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ld checking if the linker (/home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ld) is GNU ld... yes checking whether the gcc linker (/home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ld) supports shared libraries... yes checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/home/sudip/imx6x_android_4.3_1.1.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for arm-linux-androideabi-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for arm-linux-androideabi-windres... no checking for windres... no checking for GLIB... yes checking for DBUS_GLIB... no checking for a Python interpreter with version >= 2.6... python checking for python... /usr/bin/python checking for python version... 2.6 checking for python platform... linux2 checking for python script directory... ${prefix}/lib/python2.6/dist-packages checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages checking whether we are using the GNU C Library 2.1 or newer... yes checking size of char... 0 checking size of short... 0 checking size of long... 0 checking size of int... 0 checking size of void *... 0 checking size of long long... 0 checking size of __int64... 0 checking 64-bit integer type... not found configure: error: Could not find a 64-bit integer type.
Please report a bug here with details of your platform and compiler:
http://bugs.freedesktop.org/enter_bug.cgi?product=DBus&component=core
Version: 1.8