Hi
I am trying to cross-compile hdf5 for a different architecture:
I get the following error in the configuration stage:
···
=======================================
configure:23533: error: cannot run test program while cross compiling
Details below in config.log snippet:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by HDF5 configure 1.8.14, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --target=x86_64-buildroot-linux-uclibc --host=x86_64-buildroot-linux-uclibc --build=x8
6_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --progr
am-prefix= --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --wi
th-fop=no --disable-dependency-tracking --disable-nls --disable-ipv6 --enable-debug --enable-static --
enable-shared --enable-threadsafe --with-szlib
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = x86_64
uname -r = 3.17.4-301.fc21.x86_64
uname -s = Linux
uname -v = #1 SMP Thu Nov 27 19:09:10 UTC 2014
/usr/bin/uname -p = x86_64
/bin/uname -X = unknown
/bin/arch = x86_64
/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/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux-x86_64/bin
PATH: /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux-x86_64/sbin
PATH: /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux-x86_64/usr/bin
PATH: /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux-x86_64/usr/sbin
PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/lib/qtchooser
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /bin
PATH: /sbin
PATH: /home/ernesto/.local/bin
PATH: /home/ernesto/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3254: checking for a BSD-compatible install
configure:3322: result: /usr/bin/install -c
configure:3333: checking whether build environment is sane
configure:3388: result: yes
configure:3447: checking for x86_64-buildroot-linux-uclibc-strip
configure:3474: result: /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux
-x86_64/usr/bin/x86_64-buildroot-linux-uclibc-strip
configure:3539: checking for a thread-safe mkdir -p
configure:3578: result: /usr/bin/mkdir -p
configure:3585: checking for gawk
configure:3601: found /usr/bin/gawk
configure:3612: result: gawk
configure:3623: checking whether make sets $(MAKE)
configure:3645: result: yes
configure:3674: checking whether make supports nested variables
configure:3691: result: yes
configure:3827: checking whether make supports nested variables
configure:3844: result: yes
configure:3867: checking whether to enable maintainer-specific portions of Makefiles
configure:3876: result: no
configure:3920: checking build system type
configure:3934: result: x86_64-unknown-linux-gnu
configure:3954: checking host system type
configure:3967: result: x86_64-buildroot-linux-uclibc
configure:4046: checking shell variables initial values
ACLOCAL='${SHELL} /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/output/build/hdf5-1
.8.14/bin/missing aclocal-1.14'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_CFLAGS=
AM_CPPFLAGS=
AM_CXXFLAGS=
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY=0
AM_FCFLAGS=
AM_LDFLAGS=' -L/usr/lib'
AM_V='$(V)'
AR=/home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux-x86_64/usr/bin/x86_6
4-buildroot-linux-uclibc-ar
AR_FOR_BUILD=/usr/bin/ar
AS=/home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux-x86_64/usr/bin/x86_6
4-buildroot-linux-uclibc-as
AS_FOR_BUILD=/usr/bin/as
AUTOCONF='${SHELL} /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/output/build/hdf5-
1.8.14/bin/missing autoconf'
AUTOHEADER='${SHELL} /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/output/build/hdf
5-1.8.14/bin/missing autoheader'
*
configure:23155: result: yes
configure:23226: checking if libtool needs -no-undefined flag to build shared libraries
configure:23237: result: no
configure:23246: checking if configure should try to set up large file support
configure:23276: result: yes
configure:23281: checking for special C compiler options needed for large files
configure:23334: result: no
configure:23348: checking for _FILE_OFFSET_BITS value needed for large files
configure:23381: /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux-x86_64
/usr/bin/ccache /home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/../host/linux-x86_64/
usr/bin/x86_64-buildroot-linux-uclibc-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -pipe -O2 -g2
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
configure:23381: $? = 0
configure:23421: result: no
configure:23525: checking if large (64-bit) files are supported on this system.
configure:23531: error: in `/home/ernesto/packages/buildroot-2014.11/buildroot-uclibc-x86_64/output/bu
ild/hdf5-1.8.14':
configure:23533: error: cannot run test program while cross compiling
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
=====================================
Cheers,
Ernesto