libcapn build failure
Hi
I am trying to get libcapn into buildroot.(cmake based) Build error :
Quoted 1 line
Quoted 1 line
Quoted 1 line
libcapn
7a6dc662e9daa864f687Configuring
(mkdir -p/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/ && cd/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/ && rm -f
CMakeCache.txt && PATH="/home/buildroot12git/output/host/bin:/home/buildroot12git/output/host/sbin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/host/usr/sbin:/root/google-cloud-sdk/bin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/build/host-cmake-3.1.3/bin:/root/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" /home/buildroot12git/output/host/usr/bin/cmake/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/
-DCMAKE_TOOLCHAIN_FILE="/home/buildroot12git/output/host/usr/share/buildroot/toolchainfile.cmake"
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr"
-DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF
-DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF
-DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON
-DUSE_CCACHE=OFF )
-- Looking for include file ctype.h
-- Looking for include file ctype.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file netinet/in.h
-- Looking for include file netinet/in.h - found
-- Looking for include file arpa/inet.h
-- Looking for include file arpa/inet.h - found
-- Looking for include file netdb.h
-- Looking for include file netdb.h - found
-- Looking for include file sys/fcntl.h
-- Looking for include file sys/fcntl.h - found
-- Looking for include file sys/socket.h
-- Looking for include file sys/socket.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Performing test APN_HAVE_GLIBC_STRERROR_R
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the
following cache variables appropriately:
APN_HAVE_GLIBC_STRERROR_R (advanced)
APN_HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT (advanced)
For details see/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/TryRunResults.cmake
-- Performing test APN_HAVE_GLIBC_STRERROR_R - Failed
-- Performing test APN_HAVE_POSIX_STRERROR_R
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the
following cache variables appropriately:
APN_HAVE_POSIX_STRERROR_R (advanced)
APN_HAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT (advanced)
For details see/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/TryRunResults.cmake
-- Performing test APN_HAVE_POSIX_STRERROR_R - Failed
-- Found OpenSSL:
/home/buildroot12git/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libssl.so;/home/buildroot12git/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libcrypto.so
(found version "1.0.2c")
-- Configuring incomplete, errors occurred!
See also
"/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeOutput.log".
make: ***
[/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/.stamp_configured]
Error 1
I have no clue how to set cache variables appropriately...
(Due to the git submodule usage, i had to clone it first some where else and then
executed git submodule update --init , and then i copied the 3rd party source into my build tree
in order to get the jansson source)
See attached logfiles
almost giving up
Regards , Johan
========
Config.in
========
config BR2_PACKAGE_LIBCAPN
bool "libcapn"
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_JANSSON
help
libcapn is a C Library to interact with the Apple Push Notification Service (APNs for short) using simple and intuitive API.
With the library you can easily send push notifications to iOS and OS X (>= 10.8) devices.
==========
libcapn.mk :
==========
################################################################################
#
# libcapn # ################################################################################
LIBCAPN_VERSION = 7a6dc662e9daa864f687LIBCAPN_SITE = $(call github,adobkin,libcapn,$(LIBCAPN_VERSION)) LIBCAPNLICENSE = MIT
LIBCAPN_DEPENDENCIES += jansson openssl
$(eval $(cmake-package))
-------------- next part --------------
# This file was generated by CMake because it detected TRY_RUN() commands
# in crosscompiling mode. It will be overwritten by the next CMake run. # Copy it to a safe location, set the variables to appropriate values # and use it then to preset the CMake cache (using -C).
# APN_HAVE_GLIBC_STRERROR_R
# indicates whether the executable would have been able to run on its # target platform. If so, set APN_HAVE_GLIBC_STRERROR_R to # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". # APN_HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT # contains the text the executable would have printed on stdout and stderr. # If the executable would not have been able to run, set APN_HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT empty. # Otherwise check if the output is evaluated by the calling CMake code. If so, # check what the source file would have printed when called with the given arguments.
# The APN_HAVE_GLIBC_STRERROR_R_res variable holds the build result for this TRY_RUN(). #
# Source file : /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/cmake/tests/strerror_r.c
# Executable : /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/cmTryCompileExec4045902334-APN_HAVE_GLIBC_STRERROR_R
# Run arguments :
# Called from: [1] /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeLists.txt
set( APN_HAVE_GLIBC_STRERROR_R
"PLEASE_FILL_OUT-FAILED_TO_RUN"
CACHE STRING "Result from TRY_RUN" FORCE)
set( APN_HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT
"PLEASE_FILL_OUT-NOTFOUND"
CACHE STRING "Output from TRY_RUN" FORCE)
# APN_HAVE_POSIX_STRERROR_R
# indicates whether the executable would have been able to run on its # target platform. If so, set APN_HAVE_POSIX_STRERROR_R to # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". # APN_HAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT # contains the text the executable would have printed on stdout and stderr. # If the executable would not have been able to run, set APN_HAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT empty. # Otherwise check if the output is evaluated by the calling CMake code. If so, # check what the source file would have printed when called with the given arguments.
# The APN_HAVE_POSIX_STRERROR_R_res variable holds the build result for this TRY_RUN(). #
# Source file : /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/cmake/tests/strerror_r.c
# Executable : /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/cmTryCompileExec57386457-APN_HAVE_POSIX_STRERROR_R
# Run arguments :
# Called from: [1] /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeLists.txt
set( APN_HAVE_POSIX_STRERROR_R
"PLEASE_FILL_OUT-FAILED_TO_RUN"
CACHE STRING "Result from TRY_RUN" FORCE)
set( APN_HAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT
"PLEASE_FILL_OUT-NOTFOUND"
CACHE STRING "Output from TRY_RUN" FORCE)
-------------- next part --------------
Determining if files ctype.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3012005515/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3012005515.dir/build.make CMakeFiles/cmTryCompileExec3012005515.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3012005515.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec3012005515.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec3012005515/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3012005515.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec3012005515.dir/CheckIncludeFiles.c.o -o cmTryCompileExec3012005515 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files inttypes.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3176211897/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3176211897.dir/build.make CMakeFiles/cmTryCompileExec3176211897.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3176211897.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec3176211897.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec3176211897/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3176211897.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec3176211897.dir/CheckIncludeFiles.c.o -o cmTryCompileExec3176211897 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files stdint.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec178702197/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec178702197.dir/build.make CMakeFiles/cmTryCompileExec178702197.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec178702197.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec178702197.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec178702197/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec178702197.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec178702197.dir/CheckIncludeFiles.c.o -o cmTryCompileExec178702197 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files unistd.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec163422342/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec163422342.dir/build.make CMakeFiles/cmTryCompileExec163422342.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec163422342.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec163422342.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec163422342/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec163422342.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec163422342.dir/CheckIncludeFiles.c.o -o cmTryCompileExec163422342 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files netinet/in.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec662429393/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec662429393.dir/build.make CMakeFiles/cmTryCompileExec662429393.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec662429393.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec662429393.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec662429393/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec662429393.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec662429393.dir/CheckIncludeFiles.c.o -o cmTryCompileExec662429393 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files arpa/inet.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3644705899/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3644705899.dir/build.make CMakeFiles/cmTryCompileExec3644705899.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3644705899.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec3644705899.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec3644705899/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3644705899.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec3644705899.dir/CheckIncludeFiles.c.o -o cmTryCompileExec3644705899 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files netdb.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3803773661/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3803773661.dir/build.make CMakeFiles/cmTryCompileExec3803773661.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3803773661.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec3803773661.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec3803773661/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3803773661.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec3803773661.dir/CheckIncludeFiles.c.o -o cmTryCompileExec3803773661 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files sys/fcntl.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3653573711/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3653573711.dir/build.make CMakeFiles/cmTryCompileExec3653573711.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3653573711.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec3653573711.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec3653573711/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3653573711.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec3653573711.dir/CheckIncludeFiles.c.o -o cmTryCompileExec3653573711 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files sys/socket.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec353482855/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec353482855.dir/build.make CMakeFiles/cmTryCompileExec353482855.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec353482855.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec353482855.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec353482855/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec353482855.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec353482855.dir/CheckIncludeFiles.c.o -o cmTryCompileExec353482855 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files strings.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3816471643/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3816471643.dir/build.make CMakeFiles/cmTryCompileExec3816471643.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3816471643.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec3816471643.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec3816471643/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3816471643.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec3816471643.dir/CheckIncludeFiles.c.o -o cmTryCompileExec3816471643 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if the function strerror_r exists passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3094756682/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3094756682.dir/build.make CMakeFiles/cmTryCompileExec3094756682.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3094756682.dir/CheckFunctionExists.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -DCHECK_FUNCTION_EXISTS=strerror_r -o CMakeFiles/cmTryCompileExec3094756682.dir/CheckFunctionExists.c.o -c /home/buildroot12git/output/host/usr/share/cmake-3.1/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3094756682/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3094756682.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -DCHECK_FUNCTION_EXISTS=strerror_r CMakeFiles/cmTryCompileExec3094756682.dir/CheckFunctionExists.c.o -o cmTryCompileExec3094756682 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files ctype.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3965004427/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3965004427.dir/build.make CMakeFiles/cmTryCompileExec3965004427.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3965004427.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec3965004427.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec3965004427/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3965004427.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec3965004427.dir/CheckIncludeFiles.c.o -o cmTryCompileExec3965004427 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files inttypes.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec2995014684/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec2995014684.dir/build.make CMakeFiles/cmTryCompileExec2995014684.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2995014684.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec2995014684.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec2995014684/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2995014684.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec2995014684.dir/CheckIncludeFiles.c.o -o cmTryCompileExec2995014684 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files stdint.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec1167004389/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec1167004389.dir/build.make CMakeFiles/cmTryCompileExec1167004389.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1167004389.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec1167004389.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec1167004389/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1167004389.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec1167004389.dir/CheckIncludeFiles.c.o -o cmTryCompileExec1167004389 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files unistd.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec2441558430/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec2441558430.dir/build.make CMakeFiles/cmTryCompileExec2441558430.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2441558430.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec2441558430.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec2441558430/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2441558430.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec2441558430.dir/CheckIncludeFiles.c.o -o cmTryCompileExec2441558430 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files netinet/in.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec1173346298/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec1173346298.dir/build.make CMakeFiles/cmTryCompileExec1173346298.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1173346298.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec1173346298.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec1173346298/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1173346298.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec1173346298.dir/CheckIncludeFiles.c.o -o cmTryCompileExec1173346298 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files arpa/inet.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec2341594534/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec2341594534.dir/build.make CMakeFiles/cmTryCompileExec2341594534.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2341594534.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec2341594534.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec2341594534/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2341594534.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec2341594534.dir/CheckIncludeFiles.c.o -o cmTryCompileExec2341594534 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files netdb.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec2698646572/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec2698646572.dir/build.make CMakeFiles/cmTryCompileExec2698646572.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2698646572.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec2698646572.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec2698646572/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2698646572.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec2698646572.dir/CheckIncludeFiles.c.o -o cmTryCompileExec2698646572 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files sys/fcntl.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec2625764696/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec2625764696.dir/build.make CMakeFiles/cmTryCompileExec2625764696.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2625764696.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec2625764696.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec2625764696/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2625764696.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec2625764696.dir/CheckIncludeFiles.c.o -o cmTryCompileExec2625764696 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files sys/socket.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec393298358/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec393298358.dir/build.make CMakeFiles/cmTryCompileExec393298358.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec393298358.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec393298358.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec393298358/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec393298358.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec393298358.dir/CheckIncludeFiles.c.o -o cmTryCompileExec393298358 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if files strings.h exist passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec1690370338/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec1690370338.dir/build.make CMakeFiles/cmTryCompileExec1690370338.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1690370338.dir/CheckIncludeFiles.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -o CMakeFiles/cmTryCompileExec1690370338.dir/CheckIncludeFiles.c.o -c /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
Linking C executable cmTryCompileExec1690370338/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1690370338.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic CMakeFiles/cmTryCompileExec1690370338.dir/CheckIncludeFiles.c.o -o cmTryCompileExec1690370338 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Determining if the function strerror_r exists passed with the following output:
Change Dir: /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3589961591/fast"
make[1]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'/usr/bin/make -f CMakeFiles/cmTryCompileExec3589961591.dir/build.make CMakeFiles/cmTryCompileExec3589961591.dir/build
make[2]: Entering directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp' /home/buildroot12git/output/host/usr/bin/cmake -E cmake_progress_report /home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec3589961591.dir/CheckFunctionExists.c.o/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -DCHECK_FUNCTION_EXISTS=strerror_r -o CMakeFiles/cmTryCompileExec3589961591.dir/CheckFunctionExists.c.o -c /home/buildroot12git/output/host/usr/share/cmake-3.1/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3589961591/home/buildroot12git/output/host/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3589961591.dir/link.txt --verbose=1/home/buildroot12git/output/host/usr/bin/ccache /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -std=c99 -D_POSIX_C_SOURCE=200112L -Wno-deprecated -Wall -Wextra -Wimplicit -fPIC -W -Wformat-security -pedantic -DCHECK_FUNCTION_EXISTS=strerror_r CMakeFiles/cmTryCompileExec3589961591.dir/CheckFunctionExists.c.o -o cmTryCompileExec3589961591 -rdynamic
make[2]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeTmp'
Hi Johan,
Quoted 51 lines · Johan Sagaert
Hi
I am trying to get libcapn into buildroot.(cmake based) Build error :
Quoted 1 line
Quoted 1 line
Quoted 1 line
libcapn
7a6dc662e9daa864f687Configuring(mkdir -p
/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/&& cd/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/&& rm -f CMakeCache.txt && PATH="/home/buildroot12git/output/host/bin:/home/buildroot12git/output/host/sbin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/host/usr/sbin:/root/google-cloud-sdk/bin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/build/host-cmake-3.1.3/bin:/root/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"/home/buildroot12git/output/host/usr/bin/cmake/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/-DCMAKE_TOOLCHAIN_FILE="/home/buildroot12git/output/host/usr/share/buildroot/toolchainfile.cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DUSE_CCACHE=OFF ) -- Looking for include filectype.h
-- Looking for include filectype.h- found
-- Looking for include fileinttypes.h
-- Looking for include fileinttypes.h- found
-- Looking for include filestdint.h
-- Looking for include filestdint.h- found
-- Looking for include fileunistd.h
-- Looking for include fileunistd.h- found
-- Looking for include filenetinet/in.h
-- Looking for include filenetinet/in.h- found
-- Looking for include filearpa/inet.h
-- Looking for include filearpa/inet.h- found
-- Looking for include filenetdb.h
-- Looking for include filenetdb.h- found
-- Looking for include filesys/fcntl.h
-- Looking for include filesys/fcntl.h- found
-- Looking for include filesys/socket.h
-- Looking for include filesys/socket.h- found
-- Looking for include filestrings.h
-- Looking for include filestrings.h- found
-- Looking forstrerror_r
-- Looking forstrerror_r- found
-- Performing testAPN_HAVE_GLIBC_STRERROR_R
CMake Error:TRY_RUN()invoked in cross-compiling mode, please set the following cache variables appropriately:
APN_HAVE_GLIBC_STRERROR_R(advanced)
APN_HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT(advanced)
For details see/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/TryRunResults.cmake
-- Performing testAPN_HAVE_GLIBC_STRERROR_R- Failed
-- Performing testAPN_HAVE_POSIX_STRERROR_R
CMake Error:TRY_RUN()invoked in cross-compiling mode, please set the following cache variables appropriately:
APN_HAVE_POSIX_STRERROR_R(advanced)
APN_HAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT(advanced)
For details see/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/TryRunResults.cmake
-- Performing testAPN_HAVE_POSIX_STRERROR_R- Failed
-- Found OpenSSL: /home/buildroot12git/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libssl.so;/home/buildroot12git/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libcrypto.so (found version "1.0.2c")
-- Configuring incomplete, errors occurred!
See also "/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeOutput.log".
make: *** [/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/.stamp_configured] Error 1I have no clue how to set cache variables appropriately...
Quoted 8 lines
(Due to the git submodule usage, i had to clone it first some where else and then executed git submodule update --init , and then i copied the 3rd party source into my build tree in order to get the jansson source)
See attached logfiles
almost giving up
Don't! This part of the learning process ;-)
Few tips for investigating cmake package failures:
1) the log files generated by cmake (i.e. the *.error and *.output files) are good starting points;
2) after configuring, you can check the CMakeCache.txt file (located in the build directory) to see what is the value of this or that variable;
3) you can set/force some variables for the configure step by adding some *_CONF_OPTS (see [1]), e.g.:
MYPKG_CONF_OPTS += -Dvarfoo=value
4) some variables may not be stored in the CMakeCache.txt file, or if you want to trace some cmake code path, you can patch the CMakeLists.txt files calling the message function [2] (similar to adding printf in the code);
5) a last thing when having trouble with some dependency modules, you may need to add --trace to the cmake options [3]. This is not what you need here.
Of course, trying to do run test in the buildroot case is a complete non-sense.
For your issue, you should start with tips 2), 3) and maybe 4).
For this specific HAVE_*_STRERROR test, you may need to set those corresponding cmake variables differently, depending on the C-library used in the toolchain.
[...]
Quoted 9 lines
==========
libcapn.mk :
==========
################################################################################
## libcapn # ################################################################################
Quoted 7 lines
LIBCAPN_VERSION=7a6dc662e9daa864f687LIBCAPN_SITE= $(call github,adobkin,libcapn,$(LIBCAPN_VERSION)) LIBCAPNLICENSE = MIT
LIBCAPN_DEPENDENCIES+= jansson openssl$(eval $(cmake-package))
This looks right; try playing with (values are set randomly here ;-]):LIBCAPN_CONF_OPTS = -DAPN_HAVE_GLIBC_STRERROR_R=ON \
-DAPN_HAVE_POSIX_STRERROR_R=OFF
This should bypass the tryrun test.
Good luck ;-)
[1] http://nightly.buildroot.org/manual.html#cmake-package-reference
[2] https://cmake.org/cmake/help/v3.4/command/message.html
[3] https://cmake.org/cmake/help/v3.4/manual/cmake.1.html
Regards,
--
Samuel
Dear Samuel
Op 16/02/2016 om 14:27 schreef Samuel Martin:
Quoted 121 lines
Hi Johan,
Quoted 51 lines · Johan Sagaert
Hi
I am trying to get libcapn into buildroot.(cmake based) Build error :
Quoted 1 line
Quoted 1 line
Quoted 1 line
libcapn
7a6dc662e9daa864f687Configuring(mkdir -p
/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/&& cd/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/&& rm -f CMakeCache.txt && PATH="/home/buildroot12git/output/host/bin:/home/buildroot12git/output/host/sbin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/host/usr/sbin:/root/google-cloud-sdk/bin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/build/host-cmake-3.1.3/bin:/root/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"/home/buildroot12git/output/host/usr/bin/cmake/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/-DCMAKE_TOOLCHAIN_FILE="/home/buildroot12git/output/host/usr/share/buildroot/toolchainfile.cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DB UILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DUSE_CCACHE=OFF )
-- Looking for include filectype.h
-- Looking for include filectype.h- found
-- Looking for include fileinttypes.h
-- Looking for include fileinttypes.h- found
-- Looking for include filestdint.h
-- Looking for include filestdint.h- found
-- Looking for include fileunistd.h
-- Looking for include fileunistd.h- found
-- Looking for include filenetinet/in.h
-- Looking for include filenetinet/in.h- found
-- Looking for include filearpa/inet.h
-- Looking for include filearpa/inet.h- found
-- Looking for include filenetdb.h
-- Looking for include filenetdb.h- found
-- Looking for include filesys/fcntl.h
-- Looking for include filesys/fcntl.h- found
-- Looking for include filesys/socket.h
-- Looking for include filesys/socket.h- found
-- Looking for include filestrings.h
-- Looking for include filestrings.h- found
-- Looking forstrerror_r
-- Looking forstrerror_r- found
-- Performing testAPN_HAVE_GLIBC_STRERROR_R
CMake Error:TRY_RUN()invoked in cross-compiling mode, please set the following cache variables appropriately:
APN_HAVE_GLIBC_STRERROR_R(advanced)
APN_HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT(advanced)
For details see/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/TryRunResults.cmake
-- Performing testAPN_HAVE_GLIBC_STRERROR_R- Failed
-- Performing testAPN_HAVE_POSIX_STRERROR_R
CMake Error:TRY_RUN()invoked in cross-compiling mode, please set the following cache variables appropriately:
APN_HAVE_POSIX_STRERROR_R(advanced)
APN_HAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT(advanced)
For details see/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/TryRunResults.cmake
-- Performing testAPN_HAVE_POSIX_STRERROR_R- Failed
-- Found OpenSSL: /home/buildroot12git/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libssl.so;/home/buildroot12git/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libcrypto.so (found version "1.0.2c")
-- Configuring incomplete, errors occurred!
See also "/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/CMakeFiles/CMakeOutput.log".
make: *** [/home/buildroot12git/output/build/libcapn-7a6dc662e9daa864f687/.stamp_configured] Error 1I have no clue how to set cache variables appropriately...
Quoted 8 lines
(Due to the git submodule usage, i had to clone it first some where else and then executed git submodule update --init , and then i copied the 3rd party source into my build tree in order to get the jansson source)
See attached logfiles
almost giving up
Don't! This part of the learning process ;-)
Few tips for investigating cmake package failures:
1) the log files generated by cmake (i.e. the *.error and *.output files) are good starting points;
2) after configuring, you can check the CMakeCache.txt file (located in the build directory) to see what is the value of this or that variable;
3) you can set/force some variables for the configure step by adding some*_CONF_OPTS(see [1]), e.g.:MYPKG_CONF_OPTS += -Dvarfoo=value4) some variables may not be stored in the CMakeCache.txt file, or if you want to trace some cmake code path, you can patch the CMakeLists.txt files calling the message function [2] (similar to adding printf in the code);
5) a last thing when having trouble with some dependency modules, you may need to add --trace to the cmake options [3]. This is not what you need here.Of course, trying to do run test in the buildroot case is a complete non-sense.
For your issue, you should start with tips 2), 3) and maybe 4).
For this specific HAVE_*_STRERROR test, you may need to set those corresponding cmake variables differently, depending on the C-library used in the toolchain.
[...]
Quoted 9 lines
==========
libcapn.mk :
==========
################################################################################
## libcapn # ################################################################################Quoted 7 lines
LIBCAPN_VERSION=7a6dc662e9daa864f687LIBCAPN_SITE= $(call github,adobkin,libcapn,$(LIBCAPN_VERSION)) LIBCAPNLICENSE = MIT
LIBCAPN_DEPENDENCIES+= jansson openssl$(eval $(cmake-package))
This looks right; try playing with (values are set randomly here ;-]):
LIBCAPN_CONF_OPTS= -DAPN_HAVE_GLIBC_STRERROR_R=ON \
-DAPN_HAVE_POSIX_STRERROR_R=OFFThis should bypass the tryrun test.
Good luck ;-)
[1]http://nightly.buildroot.org/manual.html#cmake-package-reference [2]https://cmake.org/cmake/help/v3.4/command/message.html [3]https://cmake.org/cmake/help/v3.4/manual/cmake.1.html
Quoted 5 lines
Regards,
--
Samuel
Thanks for keeping me motivated
There are several problems with this package.
From the README.md :
git clonehttps://github.com/adobkin/libcapn.git
git submodule update --init <<<---------- This downloads the jansson source.
For this to work in buildroot with git, the .git directory needs to be available in order to execute the submodule update.
So i think i will have to do this step outside of buildroot, and then tar.bz2 the whole thing, in order to use it from the libcapn.mk
So i did this outside of the buildroot build directory.
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE= \
"/home/buildroot12git/output/host/usr/share/buildroot/toolchainfile.cmake" \
-DCMAKE_INSTALL_PREFIX=/home/buildroot12git/output/staging/usr -DUSE_CCACHE=OFF \
-DAPN_HAVE_GLIBC_STRERROR_R=OFF -DAPN_HAVE_POSIX_STRERROR_R=OFF \
-DAPN_HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT=OFF -DAPN_HAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT=OFF
This brings me somewhat closer , but there seems to be a problem with the jansson not
being built for the (ARM) target:
Scanning dependencies of target test_unpack
[100%] Building C objectCMakeFiles/test_unpack.dir/test/suites/api/test_unpack.c.o
Linking C executable bin/test_unpack
[100%] Built target test_unpack
[ 35%] No install step for 'jansson'
[ 40%] Completed 'jansson'
[ 40%] Built target jansson
Scanning dependencies of target capn
[ 45%] Building C object CMakeFiles/capn.dir/src/library/apn_memory.c.o
[ 50%] Building C object CMakeFiles/capn.dir/src/library/apn.c.o
[ 55%] Building C object CMakeFiles/capn.dir/src/library/apn_strings.c.o
[ 60%] Building C object CMakeFiles/capn.dir/src/library/apn_payload.c.o
[ 65%] Building C object CMakeFiles/capn.dir/src/library/apn_tokens.c.o
[ 70%] Building C objectCMakeFiles/capn.dir/src/library/apn_binary_message.c.o
[ 75%] Building C object CMakeFiles/capn.dir/src/library/apn_array.c.o
[ 80%] Building C object CMakeFiles/capn.dir/src/library/apn_strerror.c.o
[ 85%] Building C object CMakeFiles/capn.dir/src/library/apn_ssl.c.o
[ 90%] Building C object CMakeFiles/capn.dir/src/library/apn_log.c.o
Linking C shared library lib/Release/libcapn.so /home/buildroot12git/output/host/usr/lib/gcc/arm-buildroot-linux-gnueabi/4.9.3/../../../../arm-buildroot-linux-gnueabi/bin/ld:
src/third_party/jansson/lib/libjansson.a(value.c.o): Relocations in
generic ELF (EM: 3) /home/buildroot12git/output/host/usr/lib/gcc/arm-buildroot-linux-gnueabi/4.9.3/../../../../arm-buildroot-linux-gnueabi/bin/ld:
src/third_party/jansson/lib/libjansson.a(value.c.o): Relocations in
generic ELF (EM: 3)
src/third_party/jansson/lib/libjansson.a: error adding symbols: File in
wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [lib/Release/libcapn.so.2.0.0] Error 1
make[1]: *** [CMakeFiles/capn.dir/all] Error 2
make: *** [all] Error 2
Then i did some tweaking in the generated link.txt files.(quick and dirty solution)
sed -i 's/src\/third_party\/jansson\/lib\/libjansson.a/-ljansson/g' ./CMakeFiles/apn-pusher.dir/link.txt
sed -i 's/src\/third_party\/jansson\/lib\/libjansson.a/-ljansson/g' ./CMakeFiles/capn.dir/link.txt
Linking C executable apn-pusher
[ 95%] Built target apn-pusher
Scanning dependencies of target libcapn-config [100%] Building C object CMakeFiles/libcapn-config.dir/src/config/apn_config.c.o Linking C executable libcapn-config
[100%] Built target libcapn-config
I guess i need to apply some patches to thesrc/third_party/jansson/CMakeLists.txt
unless some -D options could do the job.
Best Regards
Johan
Dear Johan Sagaert,
Quoted 2 lines · Johan Sagaert
git clonehttps://github.com/adobkin/libcapn.git
git submodule update --init <<<---------- This downloads the jansson source.
We already have a jansson package in Buildroot, so you should rather make your package "select" it, and then tweak your package so that it uses the Buildroot-built jansson rather than its own internal copy.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Dear Thomas
Op 16/02/2016 om 23:33 schreef Thomas Petazzoni:
Quoted 6 lines
Dear Johan Sagaert,
Quoted 2 lines · Johan Sagaert
git clonehttps://github.com/adobkin/libcapn.git
git submodule update --init <<<---------- This downloads the jansson source.
Quoted 7 lines
We already have a jansson package in Buildroot, so you should rather make your package "select" it, and then tweak your package so that it uses the Buildroot-built jansson rather than its own internal copy.
Best regards,
Thomas
I agree,
It is even the same version as in buildroot, and
it would make the submodule downloadunnecessary.
If you could give me some info how i could modify CMakeLists.txt so it tests for the jansson library and uses that for linking.
Thanks
Johan