Skip to content

Commit

Permalink
initial work on cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Oct 30, 2018
1 parent 799c41c commit 6b05455
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 98 deletions.
89 changes: 40 additions & 49 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ else
PAC_C_MAX_REAL_PRECISION=$LDBL_DIG
fi
AC_DEFINE_UNQUOTED([PAC_C_MAX_REAL_PRECISION], $PAC_C_MAX_REAL_PRECISION, [Determine the maximum decimal precision in C])
AC_MSG_RESULT([$PAC_C_MAX_REAL_PRECISION])

## ----------------------------------------------------------------------
## Check if they would like the Fortran interface compiled
Expand Down Expand Up @@ -2823,29 +2822,23 @@ esac
## The machine's conversion gets the correct value. We define the macro and disable
## this kind of test until we figure out what algorithm they use.
##
AC_MSG_CHECKING([if using special algorithm to convert long double to (unsigned) long values])

## NOTE: Place all configure test programs into cmake's source file, then use a preprocessor directive
## to select the proper test program. This is done by echoing the #define and cat'ing the cmake
## source file. (HDFFV-9467)

TEST_SRC="`(echo \"#define H5_LDOUBLE_TO_LONG_SPECIAL_TEST 1\"; cat $srcdir/config/cmake/ConversionTests.c)`"

if test ${ac_cv_sizeof_long_double} = 0; then
hdf5_cv_ldouble_to_long_special=${hdf5_cv_ldouble_to_long_special=no}
else
AC_CACHE_VAL([hdf5_cv_ldouble_to_long_special],
[AC_RUN_IFELSE(
[AC_LANG_SOURCE([$TEST_SRC])]
, [hdf5_cv_ldouble_to_long_special=yes], [hdf5_cv_ldouble_to_long_special=no],)])
fi
AC_CACHE_CHECK([if using special algorithm to convert long double to (unsigned) long values],
[hdf5_cv_ldouble_to_long_special], [
if test ${ac_cv_sizeof_long_double} != 16 -o ${ac_cv_sizeof_long} != 8 -o ${ac_cv_c_bigendian} != yes; then
hdf5_cv_ldouble_to_long_special=${hdf5_cv_ldouble_to_long_special=no}
else
# based on H5_LDOUBLE_TO_LONG_SPECIAL_TEST in config/cmake/ConversionTests.c
AC_COMPUTE_INT([hdf5_ldouble_to_long_special], [((long) *((long double *) "\x43\x51\xcc\xf3\x85\xeb\xc8\xa0\xbf\xcc\x2a\x3c\x3d\x85\x56\x20")) & 0xff == 0x7f])
if test "x$hdf5_ldouble_to_long_special" = x1; then
hdf5_cv_ldouble_to_long_special=yes
else
hdf5_cv_ldouble_to_long_special=no
fi
fi])

if test ${hdf5_cv_ldouble_to_long_special} = "yes"; then
AC_DEFINE([LDOUBLE_TO_LONG_SPECIAL], [1],
[Define if your system converts long double to (unsigned) long values with special algorithm.])
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi

## ----------------------------------------------------------------------
Expand All @@ -2856,25 +2849,23 @@ fi
## ..., 7fffff..., the compiler uses a unknown algorithm. We define a
## macro and skip the test for now until we know about the algorithm.
##
AC_MSG_CHECKING([if using special algorithm to convert (unsigned) long to long double values])

TEST_SRC="`(echo \"#define H5_LONG_TO_LDOUBLE_SPECIAL_TEST 1\"; cat $srcdir/config/cmake/ConversionTests.c)`"

if test ${ac_cv_sizeof_long_double} = 0; then
hdf5_cv_long_to_ldouble_special=${hdf5_cv_long_to_ldouble_special=no}
else
AC_CACHE_VAL([hdf5_cv_long_to_ldouble_special],
[AC_RUN_IFELSE(
[AC_LANG_SOURCE([$TEST_SRC])]
, [hdf5_cv_long_to_ldouble_special=yes], [hdf5_cv_long_to_ldouble_special=no],)])
fi
AC_CACHE_CHECK([if using special algorithm to convert (unsigned) long to long double values],
[hdf5_cv_long_to_ldouble_special], [
if test ${ac_cv_sizeof_long_double} != 16 -o ${ac_cv_sizeof_long} != 8 -o ${ac_cv_c_bigendian} != yes; then
hdf5_cv_long_to_ldouble_special=${hdf5_cv_ldouble_to_long_special=no}
else
# based on H5_LONG_TO_LDOUBLE_SPECIAL_TEST in config/cmake/ConversionTests.c
AC_COMPUTE_INT([hdf5_long_to_ldouble_special], [((long double) 0x003fffffffffffffL) == 18014398509481983.0L])
if test "x$hdf5_long_to_ldouble_special" = x1; then
hdf5_cv_long_to_ldouble_special=yes
else
hdf5_cv_long_to_ldouble_special=no
fi
fi])

if test ${hdf5_cv_long_to_ldouble_special} = "yes"; then
AC_DEFINE([LONG_TO_LDOUBLE_SPECIAL], [1],
[Define if your system can convert (unsigned) long to long double values with special algorithm.])
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi

## ----------------------------------------------------------------------
Expand All @@ -2888,24 +2879,24 @@ fi
## 0x4351ccf385ebc8a0ffcc... will make the converted values wildly wrong.
## This test detects this wrong behavior and disable the test.
##
AC_MSG_CHECKING([if correctly converting long double to (unsigned) long long values])

TEST_SRC="`(echo \"#define H5_LDOUBLE_TO_LLONG_ACCURATE_TEST 1\"; cat $srcdir/config/cmake/ConversionTests.c)`"

if test ${ac_cv_sizeof_long_double} = 0; then
hdf5_cv_ldouble_to_llong_accurate=${hdf5_cv_ldouble_to_llong_accurate=no}
else
AC_CACHE_VAL([hdf5_cv_ldouble_to_llong_accurate],
[AC_RUN_IFELSE([AC_LANG_SOURCE([$TEST_SRC])],
[hdf5_cv_ldouble_to_llong_accurate=yes], [hdf5_cv_ldouble_to_llong_accurate=no],[])])
fi
AC_CACHE_CHECK([if correctly converting long double to (unsigned) long long values],
[hdf5_cv_ldouble_to_llong_accurate], [
if test ${ac_cv_sizeof_long_double} != 16 -o ${ac_cv_sizeof_long_long} == 0; then
hdf5_cv_ldouble_to_llong_accurate=${hdf5_cv_ldouble_to_long_special=no}
else
# FIXME: assumes certain endian-ness????
# based on H5_LDOUBLE_TO_LLONG_ACCURATE_TEST in config/cmake/ConversionTests.c
AC_COMPUTE_INT([hdf5_ldouble_to_llong_accurate], [((long long) *((long double *) "\x43\x51\xcc\xf3\x85\xeb\xc8\xa0\xdf\xcc\x2a\x3c\x3d\x85\x56\x20")) == 20041683600089728])
if test "x$hdf5_ldouble_to_llong_accurate" = x1; then
hdf5_cv_ldouble_to_llong_accurate=yes
else
hdf5_cv_ldouble_to_llong_accurate=no
fi
fi])

if test ${hdf5_cv_ldouble_to_llong_accurate} = "yes"; then
AC_DEFINE([LDOUBLE_TO_LLONG_ACCURATE], [1],
[Define if your system can convert long double to (unsigned) long long values correctly.])
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi


Expand Down
75 changes: 26 additions & 49 deletions m4/aclocal_fc.m4
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dnl fortran compilers for use with AC_PROG_FC that is more suitable for HPC
dnl software packages
AC_DEFUN([PAC_FC_SEARCH_LIST],
[gfortran ifort pgf90 pathf90 pathf95 xlf90 xlf95 xlf2003 f90 epcf90 f95 fort lf95 g95 ifc efc gfc])
dnl
dnl
dnl PAC_PROG_FC([COMPILERS])
dnl
dnl COMPILERS is a space separated list of Fortran compilers to search for.
Expand All @@ -54,10 +54,10 @@ dnl ifc - An older Intel compiler
dnl fc - A compiler on some unknown system. This has been removed because
dnl it may also be the name of a command for something other than
dnl the Fortran compiler (e.g., fc=file system check!)
dnl gfortran - The GNU Fortran compiler (not the same as g95)
dnl gfortran - The GNU Fortran compiler (not the same as g95)
dnl gfc - An alias for gfortran recommended in cygwin installations
dnl NOTE: this macro suffers from a basically intractable "expanded before it
dnl was required" problem when libtool is also used
dnl was required" problem when libtool is also used
dnl [1] MPICH.org
dnl

Expand All @@ -66,7 +66,7 @@ dnl See if the fortran compiler supports the intrinsic module "ISO_FORTRAN_ENV"
AC_DEFUN([PAC_PROG_FC_ISO_FORTRAN_ENV],[
HAVE_ISO_FORTRAN_ENV="no"
AC_MSG_CHECKING([if Fortran compiler supports intrinsic module ISO_FORTRAN_ENV])
TEST_SRC="`sed -n '/PROGRAM PROG_FC_ISO_FORTRAN_ENV/,/END PROGRAM PROG_FC_ISO_FORTRAN_ENV/p' $srcdir/m4/aclocal_fc.f90`"
TEST_SRC="`sed -n '/PROGRAM PROG_FC_ISO_FORTRAN_ENV/,/END PROGRAM PROG_FC_ISO_FORTRAN_ENV/p' $srcdir/m4/aclocal_fc.f90`"
AC_LINK_IFELSE([$TEST_SRC],[AC_MSG_RESULT([yes])
HAVE_ISO_FORTRAN_ENV="yes"],
[AC_MSG_RESULT([no])])
Expand Down Expand Up @@ -122,11 +122,11 @@ dnl Check if C_LONG_DOUBLE is different from C_DOUBLE

if test "X$FORTRAN_HAVE_C_LONG_DOUBLE" = "Xyes"; then
AC_DEFUN([PAC_PROG_FC_C_LONG_DOUBLE_EQ_C_DOUBLE],[
C_LONG_DOUBLE_IS_UNIQUE_FORTRAN="no"
C_LONG_DOUBLE_IS_UNIQUE_FORTRAN="no"
AC_MSG_CHECKING([if Fortran C_LONG_DOUBLE is different from C_DOUBLE])
TEST_SRC="`sed -n '/MODULE type_mod/,/END PROGRAM PROG_FC_C_LONG_DOUBLE_EQ_C_DOUBLE/p' $srcdir/m4/aclocal_fc.f90`"
AC_COMPILE_IFELSE([$TEST_SRC], [AC_MSG_RESULT([yes])
C_LONG_DOUBLE_IS_UNIQUE_FORTRAN="yes"],
AC_COMPILE_IFELSE([$TEST_SRC], [AC_MSG_RESULT([yes])
C_LONG_DOUBLE_IS_UNIQUE_FORTRAN="yes"],
[AC_MSG_RESULT([no])])
])
fi
Expand All @@ -138,8 +138,8 @@ AC_DEFUN([PAC_PROG_FC_HAVE_F2003_REQUIREMENTS],[
HAVE_F2003_REQUIREMENTS="no"
AC_MSG_CHECKING([if Fortran compiler version compatible with Fortran 2003 HDF])
TEST_SRC="`sed -n '/PROG_FC_HAVE_F2003_REQUIREMENTS/,/END PROGRAM PROG_FC_HAVE_F2003_REQUIREMENTS/p' $srcdir/m4/aclocal_fc.f90`"
AC_COMPILE_IFELSE([$TEST_SRC], [AC_MSG_RESULT([yes])
HAVE_F2003_REQUIREMENTS="yes"],
AC_COMPILE_IFELSE([$TEST_SRC], [AC_MSG_RESULT([yes])
HAVE_F2003_REQUIREMENTS="yes"],
[AC_MSG_RESULT([no])])
])

Expand Down Expand Up @@ -262,7 +262,7 @@ TEST_SRC="`sed -n '/PROGRAM FC_AVAIL_KINDS/,/END PROGRAM FC_AVAIL_KINDS/p' $srcd
AC_RUN_IFELSE([$TEST_SRC],
[
if test -s pac_fconftest.out ; then
dnl The output from the above program will be:
dnl -- LINE 1 -- valid integer kinds (comma seperated list)
dnl -- LINE 2 -- valid real kinds (comma seperated list)
Expand Down Expand Up @@ -434,45 +434,22 @@ AC_LANG_POP([Fortran])

AC_DEFUN([PAC_FC_LDBL_DIG],[
AC_MSG_CHECKING([maximum decimal precision for C])
rm -f pac_Cconftest.out
AC_LANG_CONFTEST([
AC_LANG_PROGRAM([
#include <float.h>
#include <stdio.h>
#define CHECK_FLOAT128 $ac_cv_sizeof___float128
#if CHECK_FLOAT128!=0
# if $HAVE_QUADMATH!=0
#include <quadmath.h>
# endif
# ifdef FLT128_DIG
#define C_FLT128_DIG FLT128_DIG
# else
AC_COMPUTE_INT(LDBL_DIG, [__STDC_VERSION__ >= 199901L ? DECIMAL_DIG : LDBL_DIG],
[#include <float.h>
#if $ac_cv_sizeof___float128 && $HAVE_QUADMATH
# include <quadmath.h>
#endif], [AC_MSG_ERROR([C program fails to build or run!])])
AC_COMPUTE_INT(FLT128_DIG, [C_FLT128_DIG],
[#include <float.h>
#define C_FLT128_DIG 0
# endif
#else
#define C_FLT128_DIG 0
#endif
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define C_LDBL_DIG DECIMAL_DIG
#else
#define C_LDBL_DIG LDBL_DIG
#endif
],[[
FILE * pFile;
pFile = fopen("pac_Cconftest.out","w");
fprintf(pFile, "%d\n%d\n", C_LDBL_DIG, C_FLT128_DIG);
]])
])
AC_RUN_IFELSE([],[
if test -s pac_Cconftest.out ; then
LDBL_DIG="`sed -n '1p' pac_Cconftest.out`"
FLT128_DIG="`sed -n '2p' pac_Cconftest.out`"
else
AC_MSG_ERROR([No output from C decimal precision program!])
fi
rm -f pac_Cconftest.out
],[
AC_MSG_ERROR([C program fails to build or run!])
],[])
#if $ac_cv_sizeof___float128 && $HAVE_QUADMATH
# include <quadmath.h>
# ifdef FLT128_DIG
# undef C_FLT128_DIG
# define C_FLT128_DIG FLT128_DIG
# else
# endif
#endif], [AC_MSG_ERROR([C program fails to build or run!])])
AC_MSG_RESULT([$LDBL_DIG and $FLT128_DIG])
])

1 comment on commit 6b05455

@openedev
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work.

But I could still see one more TRY_RUN error, any fix?

Full build Log:

-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /home/open/br/output/host/bin/aarch64-buildroot-linux-gnu-gcc
-- Check for working C compiler: /home/open/br/output/host/bin/aarch64-buildroot-linux-gnu-gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- SOVERSION: 1000.0.0
-- SOVERSION_TOOLS: 1000.0.0
-- SOVERSION_CXX: 1000.0.0
-- SOVERSION_F: 1000.0.0
-- SOVERSION_HL: 1000.0.0
-- SOVERSION_HL_CXX: 1000.0.0
-- SOVERSION_HL_F: 1000.0.0
-- SOVERSION_JAVA: 1000.0.0
-- Looking for ceil in m;
-- Looking for ceil in m; - found
-- Looking for dlopen in dl;m
-- Looking for dlopen in dl;m - found
-- Looking for WSAStartup in ws2_32;m;dl
-- Looking for WSAStartup in ws2_32;m;dl - not found
-- Looking for gethostbyname in wsock32;m;dl
-- Looking for gethostbyname in wsock32;m;dl - not found
-- Looking for gethostname in ucb;m;dl
-- Looking for gethostname in ucb;m;dl - not found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
CMake Warning (dev) at /usr/local/share/cmake-3.17/Modules/CheckIncludeFile.cmake:80 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

CMAKE_REQUIRED_LIBRARIES is set to:

m;dl

For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
/usr/local/share/cmake-3.17/Modules/CheckTypeSize.cmake:230 (check_include_file)
/usr/local/share/cmake-3.17/Modules/TestBigEndian.cmake:33 (CHECK_TYPE_SIZE)
config/cmake_ext_mod/ConfigureChecks.cmake:138 (TEST_BIG_ENDIAN)
config/cmake/ConfigureChecks.cmake:16 (include)
CMakeLists.txt:408 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Other Test STDC_HEADERS - Success
-- Looking for include file sys/file.h
-- Looking for include file sys/file.h - found
-- Looking for include files sys/file.h, sys/ioctl.h
-- Looking for include files sys/file.h, sys/ioctl.h - found
-- Looking for 3 include files sys/file.h, ..., sys/resource.h
-- Looking for 3 include files sys/file.h, ..., sys/resource.h - found
-- Looking for 4 include files sys/file.h, ..., sys/socket.h
-- Looking for 4 include files sys/file.h, ..., sys/socket.h - found
-- Looking for 5 include files sys/file.h, ..., sys/stat.h
-- Looking for 5 include files sys/file.h, ..., sys/stat.h - found
-- Looking for 6 include files sys/file.h, ..., sys/time.h
-- Looking for 6 include files sys/file.h, ..., sys/time.h - found
-- Looking for 7 include files sys/file.h, ..., sys/types.h
-- Looking for 7 include files sys/file.h, ..., sys/types.h - found
-- Looking for 8 include files sys/file.h, ..., features.h
-- Looking for 8 include files sys/file.h, ..., features.h - found
-- Looking for 9 include files sys/file.h, ..., dirent.h
-- Looking for 9 include files sys/file.h, ..., dirent.h - found
-- Looking for 10 include files sys/file.h, ..., setjmp.h
-- Looking for 10 include files sys/file.h, ..., setjmp.h - found
-- Looking for 11 include files sys/file.h, ..., stddef.h
-- Looking for 11 include files sys/file.h, ..., stddef.h - found
-- Looking for 12 include files sys/file.h, ..., stdint.h
-- Looking for 12 include files sys/file.h, ..., stdint.h - found
-- Looking for 13 include files sys/file.h, ..., unistd.h
-- Looking for 13 include files sys/file.h, ..., unistd.h - found
-- Looking for 14 include files sys/file.h, ..., mach/mach_time.h
-- Looking for 14 include files sys/file.h, ..., mach/mach_time.h - not found
-- Looking for 14 include files sys/file.h, ..., io.h
-- Looking for 14 include files sys/file.h, ..., io.h - not found
-- Looking for 14 include files sys/file.h, ..., winsock2.h
-- Looking for 14 include files sys/file.h, ..., winsock2.h - not found
-- Looking for 14 include files sys/file.h, ..., sys/timeb.h
-- Looking for 14 include files sys/file.h, ..., sys/timeb.h - found
-- Looking for 15 include files sys/file.h, ..., globus/common.h
-- Looking for 15 include files sys/file.h, ..., globus/common.h - not found
-- Looking for 15 include files sys/file.h, ..., pdb.h
-- Looking for 15 include files sys/file.h, ..., pdb.h - not found
-- Looking for 15 include files sys/file.h, ..., pthread.h
-- Looking for 15 include files sys/file.h, ..., pthread.h - found
-- Looking for 16 include files sys/file.h, ..., srbclient.h
-- Looking for 16 include files sys/file.h, ..., srbclient.h - not found
-- Looking for 16 include files sys/file.h, ..., string.h
-- Looking for 16 include files sys/file.h, ..., string.h - found
-- Looking for 17 include files sys/file.h, ..., strings.h
-- Looking for 17 include files sys/file.h, ..., strings.h - found
-- Looking for 18 include files sys/file.h, ..., stdlib.h
-- Looking for 18 include files sys/file.h, ..., stdlib.h - found
-- Looking for 19 include files sys/file.h, ..., memory.h
-- Looking for 19 include files sys/file.h, ..., memory.h - found
-- Looking for 20 include files sys/file.h, ..., dlfcn.h
-- Looking for 20 include files sys/file.h, ..., dlfcn.h - found
-- Looking for 21 include files sys/file.h, ..., inttypes.h
-- Looking for 21 include files sys/file.h, ..., inttypes.h - found
-- Looking for 22 include files sys/file.h, ..., netinet/in.h
-- Looking for 22 include files sys/file.h, ..., netinet/in.h - found
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
TEST_LFS_WORKS_RUN (advanced)
TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT (advanced)
For details see /home/open/br/output/build/libhdf5-6b0545585282647bb8d7be8744d73745b000bdd3/buildroot-build/TryRunResults.cmake
-- Performing TEST_LFS_WORKS... no
-- Performing Other Test HAVE_OFF64_T - Success
-- Looking for lseek64
-- Looking for lseek64 - found
-- Looking for fseeko64
-- Looking for fseeko64 - found
-- Looking for ftello64
-- Looking for ftello64 - found
-- Looking for ftruncate64
-- Looking for ftruncate64 - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Performing Other Test HAVE_STAT64_STRUCT - Success
-- Looking for fstat64
-- Looking for fstat64 - found
-- Looking for stat64
-- Looking for stat64 - found
-- Check size of char
-- Check size of char - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of unsigned
-- Check size of unsigned - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of float
-- Check size of float - done
-- Check size of double
-- Check size of double - done
-- Check size of long double
-- Check size of long double - done
-- Check size of int8_t
-- Check size of int8_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of int_least8_t
-- Check size of int_least8_t - done
-- Check size of uint_least8_t
-- Check size of uint_least8_t - done
-- Check size of int_fast8_t
-- Check size of int_fast8_t - done
-- Check size of uint_fast8_t
-- Check size of uint_fast8_t - done
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of int_least16_t
-- Check size of int_least16_t - done
-- Check size of uint_least16_t
-- Check size of uint_least16_t - done
-- Check size of int_fast16_t
-- Check size of int_fast16_t - done
-- Check size of uint_fast16_t
-- Check size of uint_fast16_t - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of int_least32_t
-- Check size of int_least32_t - done
-- Check size of uint_least32_t
-- Check size of uint_least32_t - done
-- Check size of int_fast32_t
-- Check size of int_fast32_t - done
-- Check size of uint_fast32_t
-- Check size of uint_fast32_t - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of int_least64_t
-- Check size of int_least64_t - done
-- Check size of uint_least64_t
-- Check size of uint_least64_t - done
-- Check size of int_fast64_t
-- Check size of int_fast64_t - done
-- Check size of uint_fast64_t
-- Check size of uint_fast64_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of off64_t
-- Check size of off64_t - done
-- Looking for 23 include files sys/file.h, ..., stdbool.h
-- Looking for 23 include files sys/file.h, ..., stdbool.h - found
-- Check size of _Bool
-- Check size of _Bool - done
-- Performing Other Test DEV_T_IS_SCALAR - Success
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Performing Other Test HAVE_TM_GMTOFF - Success
-- Performing Other Test HAVE___TM_GMTOFF - Failed
-- Performing Other Test HAVE_STRUCT_TIMEZONE - Success
-- Performing Other Test GETTIMEOFDAY_GIVES_TZ - Success
-- Performing Other Test TIME_WITH_SYS_TIME - Success
-- Performing Other Test HAVE_TM_ZONE - Failed
-- Performing Other Test HAVE_STRUCT_TM_TM_ZONE - Failed
-- Performing Other Test HAVE_TIMEZONE - Success
-- Performing Other Test HAVE_STAT_ST_BLOCKS - Success
-- Looking for ioctl
-- Looking for ioctl - found
-- Performing Other Test HAVE_STRUCT_VIDEOCONFIG - Failed
-- Performing Other Test HAVE_STRUCT_TEXT_INFO - Failed
-- Looking for _getvideoconfig
-- Looking for _getvideoconfig - not found
-- Looking for gettextinfo
-- Looking for gettextinfo - not found
-- Looking for scrsize
-- Looking for scrsize - not found
-- Looking for GetConsoleScreenBufferInfo
-- Looking for GetConsoleScreenBufferInfo - not found
-- Looking for TIOCGWINSZ
-- Looking for TIOCGWINSZ - found
-- Looking for TIOCGETD
-- Looking for TIOCGETD - found
-- Looking for getpwuid
-- Looking for getpwuid - found
-- Looking for alarm
-- Looking for alarm - found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for flock
-- Looking for flock - found
-- Looking for fork
-- Looking for fork - found
-- Looking for frexpf
-- Looking for frexpf - found
-- Looking for frexpl
-- Looking for frexpl - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for llround
-- Looking for llround - found
-- Looking for llroundf
-- Looking for llroundf - found
-- Looking for lround
-- Looking for lround - found
-- Looking for lroundf
-- Looking for lroundf - found
-- Looking for lstat
-- Looking for lstat - found
-- Looking for rand_r
-- Looking for rand_r - found
-- Looking for random
-- Looking for random - found
-- Looking for round
-- Looking for round - found
-- Looking for roundf
-- Looking for roundf - found
-- Looking for setsysinfo
-- Looking for setsysinfo - not found
-- Looking for signal
-- Looking for signal - found
-- Looking for longjmp
-- Looking for longjmp - found
-- Looking for setjmp
-- Looking for setjmp - found
-- Looking for siglongjmp
-- Looking for siglongjmp - found
-- Looking for sigsetjmp
-- Looking for sigsetjmp - not found
-- Looking for sigprocmask
-- Looking for sigprocmask - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for srandom
-- Looking for srandom - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for symlink
-- Looking for symlink - found
-- Looking for system
-- Looking for system - found
-- Looking for tmpfile
-- Looking for tmpfile - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for waitpid
-- Looking for waitpid - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Performing Other Test VSNPRINTF_WORKS - Success
-- Looking for sigsetjmp
-- Looking for sigsetjmp - found
-- Performing Other Test HAVE_ATTRIBUTE - Success
-- Performing Other Test HAVE_C99_FUNC - Success
-- Performing Other Test HAVE_FUNCTION - Success
-- Performing Other Test HAVE_C99_DESIGNATED_INITIALIZER - Success
-- Performing Other Test SYSTEM_SCOPE_THREADS - Success
-- Performing Other Test HAVE_SOCKLEN_T - Success
-- Performing Other Test HAVE_INLINE - Success
-- Performing Other Test HAVE___INLINE
- Success
-- Performing Other Test HAVE___INLINE - Success
-- Checking for appropriate format for 64 bit long:
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_PRINTF_LL_TEST_RUN (advanced)
H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT (advanced)
For details see /home/open/br/output/build/libhdf5-6b0545585282647bb8d7be8744d73745b000bdd3/buildroot-build/TryRunResults.cmake
Width test failed with result: PLEASE_FILL_OUT-FAILED_TO_RUN
-- Checking for appropriate format for 64 bit long: not found
-- Looking for difftime
-- Looking for difftime - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for clock_gettime in posix4
-- Looking for clock_gettime in posix4 - not found
-- Check size of __float128
-- Check size of __float128 - failed
-- Checking IF your system converts long double to (unsigned) long values with special algorithm... no
-- Checking IF your system can convert (unsigned) long to long double values with special algorithm... no
-- Checking IF correctly converting long double to (unsigned) long long values... no
-- Checking IF correctly converting (unsigned) long long to long double values... no
-- Checking IF alignment restrictions are strictly enforced... no
-- Found Perl: /usr/bin/perl (found version "5.26.1")
-- Generating 'H5Epubgen.h'
Generating 'H5Einit.h'
Generating 'H5Eterm.h'
Generating 'H5Edefin.h'

-- Generating '/home/open/br/output/build/libhdf5-6b0545585282647bb8d7be8744d73745b000bdd3/src/H5version.h'

-- Generating 'H5overflow.h'

-- The CXX compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /home/open/br/output/host/bin/aarch64-buildroot-linux-gnu-g++
-- Check for working CXX compiler: /home/open/br/output/host/bin/aarch64-buildroot-linux-gnu-g++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for STD namespace
-- Check for STD namespace - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Performing CXX Test OLD_HEADER_FILENAME - Failed
-- Performing CXX Test H5_NO_NAMESPACE - Failed
-- Performing CXX Test H5_NO_STD - Failed
-- Performing CXX Test BOOL_NOTDEFINED - Failed
-- Performing CXX Test NO_STATIC_CAST - Failed
-- Performing CXX Test H5_CXX_HAVE_OFFSETOF - Failed
-- Configuring incomplete, errors occurred!

Please sign in to comment.