conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
948 stars 1.72k forks source link

[package] libbacktrace/cci.20210118: cross compilation error #6840

Open SamsonBox opened 3 years ago

SamsonBox commented 3 years ago

Cross compiling this package is not possible because the auto-tools cross compile check fails. In this scenario the --host option need to be set correctly. I would suggest the following fix:

diff --git a/recipes/libbacktrace/all/conanfile.py b/recipes/libbacktrace/all/conanfile.py
index 6f31c964..8f15b08c 100644
--- a/recipes/libbacktrace/all/conanfile.py
+++ b/recipes/libbacktrace/all/conanfile.py
@@ -75,6 +75,11 @@ class LibbacktraceConan(ConanFile):
             args = ["--enable-shared", "--disable-static"]
         else:
             args = ["--disable-shared", "--enable-static"]
+        if hasattr(self, 'settings_build') and self.env.get("CROSS_COMPILE"):
+            host_str = self.env.get("CROSS_COMPILE")
+            if host_str.endswith('-'):
+                host_str = host_str[:-1]
+            args.append("--host={}".format(host_str.lower()))
         self._autotools.configure(configure_dir=self._source_subfolder, args=args)
         return self._autotools

diff --git a/recipes/libbacktrace/all/test_package/conanfile.py b/recipes/libbacktrace/all/test_package/conanfile.py
index 879d06ed..afc89f00 100644
--- a/recipes/libbacktrace/all/test_package/conanfile.py
+++ b/recipes/libbacktrace/all/test_package/conanfile.py
@@ -13,7 +13,7 @@ class TestPackageConan(ConanFile):
         cmake.build()

     def test(self):
-        if tools.cross_building(self.settings):
+        if tools.cross_building(self.settings) or hasattr(self, 'settings_build'):
             return
         bin_path = os.path.join("bin", "test_package")
         self.run(bin_path, run_environment=True)

Here the commonly used CROSS_COMPILE variable is used to determine the host compiler prefix.

Package and Environment Details

Conan profile

Conan host profile

[settings]
arch=x86_64
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
os.distro=LPKit
os.distro.platform=core2-64
os.distro.version=3.1.5-1
os_build=Linux
os_build.distro=Ubuntu
os_build.distro.version=18.04
[options]
boost:without_stacktrace=True
[build_requires]
[env]
AR=x86_64-lpkit-linux-ar
ARCH=x86
AS=x86_64-lpkit-linux-as
CC=x86_64-lpkit-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types
CONFIGURE_FLAGS=--target=x86_64-lpkit-linux --host=x86_64-lpkit-linux --build=x86_64-linux --with-libtool-sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
CONFIG_SITE=/opt/lpkit/3.1.5-1-core2-64/site-config-core2-64-lpkit-linux
CPP=x86_64-lpkit-linux-gcc -E  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
CPPFLAGS=
CROSS_COMPILE=x86_64-lpkit-linux-
CXX=x86_64-lpkit-linux-g++  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
CXXFLAGS=-O2 -pipe -g -feliminate-unused-debug-types
GDB=x86_64-lpkit-linux-gdb
KCFLAGS=--sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
LD=x86_64-lpkit-linux-ld   --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now
LD_LIBRARY_PATH=
M4=m4
NM=x86_64-lpkit-linux-nm
OBJCOPY=x86_64-lpkit-linux-objcopy
OBJDUMP=x86_64-lpkit-linux-objdump
OECORE_ACLOCAL_OPTS=-I /opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/share/aclocal
OECORE_BASELIB=lib
OECORE_DISTRO_VERSION=3.1.5-1
OECORE_NATIVE_SYSROOT=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux
OECORE_SDK_VERSION=3.1.5-1
OECORE_TARGET_ARCH=x86_64
OECORE_TARGET_OS=linux
OECORE_TARGET_SYSROOT=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
OE_CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX=
OE_CMAKE_TOOLCHAIN_FILE=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/share/cmake/OEToolchainConfig.cmake
OE_QMAKE_AR=x86_64-lpkit-linux-ar
OE_QMAKE_CC=x86_64-lpkit-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
OE_QMAKE_CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types
OE_QMAKE_CXX=x86_64-lpkit-linux-g++  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
OE_QMAKE_CXXFLAGS=-O2 -pipe -g -feliminate-unused-debug-types
OE_QMAKE_INCDIR_QT=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/include
OE_QMAKE_LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now
OE_QMAKE_LIBDIR_QT=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/lib
OE_QMAKE_LINK=x86_64-lpkit-linux-g++  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
OE_QMAKE_MOC=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/moc
OE_QMAKE_PATH_HOST_BINS=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin
OE_QMAKE_QDBUSCPP2XML=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/qdbuscpp2xml
OE_QMAKE_QDBUSXML2CPP=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/qdbusxml2cpp
OE_QMAKE_QT_CONFIG=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/lib/mkspecs/qconfig.pri
OE_QMAKE_RCC=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/rcc
OE_QMAKE_STRIP=x86_64-lpkit-linux-strip
OE_QMAKE_UIC=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/uic
PATH=[/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/sbin,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/bin,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/sbin,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/../x86_64-lpkitsdk-linux/bin,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/x86_64-lpkit-linux,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/x86_64-lpkit-linux-musl]
PKG_CONFIG_PATH=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/lib/pkgconfig:/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/share/pkgconfig
PKG_CONFIG_SYSROOT_DIR=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
QMAKESPEC=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/lib/mkspecs/linux-oe-g++
QT_CONF_PATH=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/qt.conf
RANLIB=x86_64-lpkit-linux-ranlib
READELF=x86_64-lpkit-linux-readelf
SDKTARGETSYSROOT=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux
STRIP=x86_64-lpkit-linux-strip
TARGET_PREFIX=x86_64-lpkit-linux-

Conan build profile

Configuration (profile_build):
[settings]
arch=x86_64
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=8
os=Linux
os.distro=Ubuntu
os.distro.platform=x86_64
os.distro.version=18.04
os_build=Linux
os_build.distro=Ubuntu
os_build.distro.version=18.04
[options]
[build_requires]
[env]
AR=/usr/bin/x86_64-linux-gnu-gcc-ar-8
ASM=/usr/bin/x86_64-linux-gnu-gcc-8
CC=/usr/bin/x86_64-linux-gnu-gcc-8
CXX=/usr/bin/x86_64-linux-gnu-g++-8
LINKER=/usr/bin/x86_64-linux-gnu-ld
NM=/usr/bin/x86_64-linux-gnu-gcc-nm-8
OBJDUMP=/usr/bin/x86_64-linux-gnu-gcc-objdump-8
PATH=[/opt/rs-qt-swp-5.12.3-debug/bin,/usr/local/sbin,/usr/local/bin,/usr/sbin,/usr/bin,/sbin,/bin]
RANLIB=/usr/bin/x86_64-linux-gnu-gcc-ranlib-8

Steps to reproduce (Include if Applicable)

Logs (Include/Attach if Applicable)

Click to expand log ``` recipes/libbacktrace/all$ conan create --build=missing -pr LPKit-3.1.5-1-core2-64-debug -pr:b Ubuntu-18.04-debug . libbacktrace/cci.20210118@ Exporting package recipe libbacktrace/cci.20210118 exports: File 'conandata.yml' found. Exporting it... libbacktrace/cci.20210118 exports: Copied 1 '.yml' file: conandata.yml libbacktrace/cci.20210118 exports_sources: Copied 2 '.patch' files: 0001-pointer-arithmetic.patch, 0002-msvc-unistd-alternative.patch libbacktrace/cci.20210118: The stored package has not changed libbacktrace/cci.20210118: Using the exported files summary hash as the recipe revision: ec9f997639a91e94618ce0d9c911457c libbacktrace/cci.20210118: Exported revision: ec9f997639a91e94618ce0d9c911457c Configuration (profile_host): [settings] arch=x86_64 build_type=Debug compiler=gcc compiler.libcxx=libstdc++11 compiler.version=9 os=Linux os.distro=LPKit os.distro.platform=core2-64 os.distro.version=3.1.5-1 os_build=Linux os_build.distro=Ubuntu os_build.distro.version=18.04 [options] boost:without_stacktrace=True [build_requires] [env] AR=x86_64-lpkit-linux-ar ARCH=x86 AS=x86_64-lpkit-linux-as CC=x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types CONFIGURE_FLAGS=--target=x86_64-lpkit-linux --host=x86_64-lpkit-linux --build=x86_64-linux --with-libtool-sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux CONFIG_SITE=/opt/lpkit/3.1.5-1-core2-64/site-config-core2-64-lpkit-linux CPP=x86_64-lpkit-linux-gcc -E -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux CPPFLAGS= CROSS_COMPILE=x86_64-lpkit-linux- CXX=x86_64-lpkit-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux CXXFLAGS=-O2 -pipe -g -feliminate-unused-debug-types GDB=x86_64-lpkit-linux-gdb KCFLAGS=--sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux LD=x86_64-lpkit-linux-ld --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now LD_LIBRARY_PATH= M4=m4 NM=x86_64-lpkit-linux-nm OBJCOPY=x86_64-lpkit-linux-objcopy OBJDUMP=x86_64-lpkit-linux-objdump OECORE_ACLOCAL_OPTS=-I /opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/share/aclocal OECORE_BASELIB=lib OECORE_DISTRO_VERSION=3.1.5-1 OECORE_NATIVE_SYSROOT=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux OECORE_SDK_VERSION=3.1.5-1 OECORE_TARGET_ARCH=x86_64 OECORE_TARGET_OS=linux OECORE_TARGET_SYSROOT=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux OE_CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX= OE_CMAKE_TOOLCHAIN_FILE=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/share/cmake/OEToolchainConfig.cmake OE_QMAKE_AR=x86_64-lpkit-linux-ar OE_QMAKE_CC=x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux OE_QMAKE_CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types OE_QMAKE_CXX=x86_64-lpkit-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux OE_QMAKE_CXXFLAGS=-O2 -pipe -g -feliminate-unused-debug-types OE_QMAKE_INCDIR_QT=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/include OE_QMAKE_LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now OE_QMAKE_LIBDIR_QT=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/lib OE_QMAKE_LINK=x86_64-lpkit-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux OE_QMAKE_MOC=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/moc OE_QMAKE_PATH_HOST_BINS=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin OE_QMAKE_QDBUSCPP2XML=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/qdbuscpp2xml OE_QMAKE_QDBUSXML2CPP=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/qdbusxml2cpp OE_QMAKE_QT_CONFIG=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/lib/mkspecs/qconfig.pri OE_QMAKE_RCC=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/rcc OE_QMAKE_STRIP=x86_64-lpkit-linux-strip OE_QMAKE_UIC=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/uic PATH=[/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/sbin,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/bin,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/sbin,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/../x86_64-lpkitsdk-linux/bin,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/x86_64-lpkit-linux,/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/x86_64-lpkit-linux-musl] PKG_CONFIG_PATH=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/lib/pkgconfig:/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/share/pkgconfig PKG_CONFIG_SYSROOT_DIR=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux QMAKESPEC=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux/usr/lib/mkspecs/linux-oe-g++ QT_CONF_PATH=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/qt.conf RANLIB=x86_64-lpkit-linux-ranlib READELF=x86_64-lpkit-linux-readelf SDKTARGETSYSROOT=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux STRIP=x86_64-lpkit-linux-strip TARGET_PREFIX=x86_64-lpkit-linux- Configuration (profile_build): [settings] arch=x86_64 build_type=Debug compiler=gcc compiler.libcxx=libstdc++11 compiler.version=8 os=Linux os.distro=Ubuntu os.distro.platform=x86_64 os.distro.version=18.04 os_build=Linux os_build.distro=Ubuntu os_build.distro.version=18.04 [options] [build_requires] [env] AR=/usr/bin/x86_64-linux-gnu-gcc-ar-8 ASM=/usr/bin/x86_64-linux-gnu-gcc-8 CC=/usr/bin/x86_64-linux-gnu-gcc-8 CXX=/usr/bin/x86_64-linux-gnu-g++-8 LINKER=/usr/bin/x86_64-linux-gnu-ld NM=/usr/bin/x86_64-linux-gnu-gcc-nm-8 OBJDUMP=/usr/bin/x86_64-linux-gnu-gcc-objdump-8 PATH=[/opt/rs-qt-swp-5.12.3-debug/bin,/usr/local/sbin,/usr/local/bin,/usr/sbin,/usr/bin,/sbin,/bin] RANLIB=/usr/bin/x86_64-linux-gnu-gcc-ranlib-8 libbacktrace/cci.20210118: WARN: Package binary is corrupted, removing: b34b003a510a145869178ac3305bb6252cc6efec libbacktrace/cci.20210118 (test package): Installing package Requirements libbacktrace/cci.20210118 from local cache - Cache Packages libbacktrace/cci.20210118:b34b003a510a145869178ac3305bb6252cc6efec - Build Installing (downloading, building) binaries... libbacktrace/cci.20210118: WARN: Build folder is dirty, removing it: /home/hoff/conan_home/.conan/data/libbacktrace/cci.20210118/_/_/build/b34b003a510a145869178ac3305bb6252cc6efec libbacktrace/cci.20210118: Copying sources to build folder libbacktrace/cci.20210118: Building your package in /home/hoff/conan_home/.conan/data/libbacktrace/cci.20210118/_/_/build/b34b003a510a145869178ac3305bb6252cc6efec libbacktrace/cci.20210118: Generator txt created conanbuildinfo.txt libbacktrace/cci.20210118: Aggregating env generators libbacktrace/cci.20210118: Calling build() libbacktrace/cci.20210118: Calling: > source_subfolder/configure '--disable-shared' '--enable-static' '--prefix=/home/hoff/conan_home/.conan/data/libbacktrace/cci.20210118/_/_/package/b34b003a510a145869178ac3305bb6252cc6efec' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' ----Running------ > source_subfolder/configure '--disable-shared' '--enable-static' '--prefix=/home/hoff/conan_home/.conan/data/libbacktrace/cci.20210118/_/_/package/b34b003a510a145869178ac3305bb6252cc6efec' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' ----------------- configure: loading site script /opt/lpkit/3.1.5-1-core2-64/site-config-core2-64-lpkit-linux checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for gcc... x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/home/hoff/conan_home/.conan/data/libbacktrace/cci.20210118/_/_/build/b34b003a510a145869178ac3305bb6252cc6efec': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details libbacktrace/cci.20210118: libbacktrace/cci.20210118: ERROR: Package 'b34b003a510a145869178ac3305bb6252cc6efec' build failed libbacktrace/cci.20210118: WARN: Build folder /home/hoff/conan_home/.conan/data/libbacktrace/cci.20210118/_/_/build/b34b003a510a145869178ac3305bb6252cc6efec ERROR: libbacktrace/cci.20210118: Error in build() method, line 85 autotools = self._configure_autotools() while calling '_configure_autotools', line 78 self._autotools.configure(configure_dir=self._source_subfolder, args=args) ConanException: Error 1 while executing source_subfolder/configure '--disable-shared' '--enable-static' '--prefix=/home/hoff/conan_home/.conan/data/libbacktrace/cci.20210118/_/_/package/b34b003a510a145869178ac3305bb6252cc6efec' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' ```
SpaceIm commented 3 years ago

I can cross-compile libbacktrace from macOS to iOS. Are you sure that your profiles are properly written? Or maybe it could be a conan issue, rather than recipe issue. Your suggestion seems to be a workaround, quite specific to your profiles. Are you able to cross-build others CCI recipes based on autotools with your profiles (I guess not: https://github.com/conan-io/conan-center-index/issues/6839 and https://github.com/conan-io/conan-center-index/issues/6838).

Might be related to https://github.com/conan-io/conan/issues/8290 /cc @madebr

madebr commented 3 years ago

Please post the build.log.

I think the problem is (as you probably have found out), that autotools does not realize it is cross building because the build triplet == host triplet. Running the test executable fails.

You're hitting a bug/missing feature in conan in that its gnu triplets are limited. I have opened https://github.com/conan-io/conan/issues/8290 in the past. Reading the conversation again, I think/hope it will be possible with conan 2.0.

Until conan 2.0, I don't know how to cleanly fix this, other then temporarily carrying a patch for libbacktrace.

Your suggestion to get the host triplet from the environment is a hack that is not acceptable. It would have to be applied to all recipes using autotools, which does not scale.

SamsonBox commented 3 years ago

@madebr here is the config.log. A build.log is not avalable

Click to expand log ``` This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by libusb-1.0 configure 1.0.24, which was generated by GNU Autoconf 2.69. Invocation command line was $ source_subfolder/configure --disable-shared --enable-static --enable-udev --prefix=/home/hoff/conan_home/.conan/data/libusb/1.0.24/_/_/package/1e6f884e2ab8743cec82cca83b5d282850133b03 --bindir=${prefix}/bin --sbindir=${prefix}/bin --libexecdir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include --datarootdir=${prefix}/share ## --------- ## ## Platform. ## ## --------- ## hostname = lx746116 uname -m = x86_64 uname -r = 4.15.0-140-generic uname -s = Linux uname -v = #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/sbin PATH: /opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/bin PATH: /opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/sbin PATH: /opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/../x86_64-lpkitsdk-linux/bin PATH: /opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/x86_64-lpkit-linux PATH: /opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/x86_64-lpkit-linux-musl PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /snap/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2420: loading site script /opt/lpkit/3.1.5-1-core2-64/site-config-core2-64-lpkit-linux | ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} | ac_cv_c_bigendian=${ac_cv_c_bigendian=no} | | # libnet | ac_cv_libnet_endianess=${ac_cv_libnet_endianess=lil} | | # libmemcached | ac_cv_c_endian=little | # gettext - these add sleep delays otherwise | gl_cv_func_sleep_works=${gl_cv_func_sleep_works=yes} | gl_cv_header_working_fcntl_h=${gl_cv_header_working_fcntl_h=yes} | | # apr | ac_cv_file__dev_zero=${ac_cv_file__dev_zero=yes} | ac_cv_sizeof_pid_t=${ac_cv_sizeof_pid_t=4} | ac_cv_func_pthread_key_delete=${ac_cv_func_pthread_key_delete=yes} | apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} | apr_cv_process_shared_works=${apr_cv_process_shared_works=no} | | # samba | samba_cv_HAVE_IFACE_AIX=${samba_cv_HAVE_IFACE_AIX=no} | samba_cv_HAVE_IFACE_IFCONF=${samba_cv_HAVE_IFACE_IFCONF=yes} | samba_cv_HAVE_IFACE_IFREQ=${samba_cv_HAVE_IFACE_IFREQ=yes} | samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no} | | # db | db_cv_path_ar=${db_cv_path_ar=/usr/bin/ar} | db_cv_path_chmod=${db_cv_path_chmod=/bin/chmod} | db_cv_path_cp=${db_cv_path_cp=/bin/cp} | db_cv_path_ln=${db_cv_path_ln=/bin/ln} | db_cv_path_mkdir=${db_cv_path_mkdir=/bin/mkdir} | db_cv_path_ranlib=${db_cv_path_ranlib=/usr/bin/ranlib} | db_cv_path_rm=${db_cv_path_rm=/bin/rm} | db_cv_path_sh=${db_cv_path_sh=/bin/sh} | db_cv_path_strip=${db_cv_path_strip=/usr/bin/strip} | | # bash | bash_cv_have_mbstate_t=${bash_cv_have_mbstate_t=yes} | bash_cv_must_reinstall_sighandlers=${bash_cv_must_reinstall_sighandlers=no} | bash_cv_func_strcoll_broken=${bash_cv_func_strcoll_broken=no} | bash_cv_dup2_broken=${bash_cv_dup2_broken=no} | bash_cv_opendir_not_robust=${bash_cv_opendir_not_robust=no} | bash_cv_type_rlimit=${bash_cv_type_rlimit=rlim_t} | bash_cv_getenv_redef=${bash_cv_getenv_redef=yes} | bash_cv_ulimit_maxfds=${bash_cv_ulimit_maxfds=yes} | bash_cv_getcwd_calls_popen=${bash_cv_getcwd_calls_popen=no} | bash_cv_printf_a_format=${bash_cv_printf_a_format=yes} | bash_cv_pgrp_pipe=${bash_cv_pgrp_pipe=no} | bash_cv_job_control_missing=${bash_cv_job_control_missing=present} | bash_cv_sys_named_pipes=${bash_cv_sys_named_pipes=present} | bash_cv_unusable_rtsigs=${bash_cv_unusable_rtsigs=no} | | # ccache | hw_cv_func_snprintf_c99=${hw_cv_func_snprintf_c99=yes} | hw_cv_func_vsnprintf_c99=${hw_cv_func_vsnprintf_c99=yes} | | # coreutils | ac_cv_func_chown_works=${ac_cv_func_chown_works=yes} | ac_cv_func_utime_null=${ac_cv_func_utime_null=yes} | gl_cv_func_fstatat_zero_flag=${gl_cv_func_fstatat_zero_flag=yes} | gl_cv_func_link_follows_symlink=${gl_cv_func_link_follows_symlink=no} | gl_cv_func_unlink_busy_text=${gl_cv_func_unlink_busy_text=yes} | gl_cv_have_proc_uptime=${gl_cv_have_proc_uptime=yes} | gl_cv_pipes_are_fifos=${gl_cv_pipes_are_fifos='yes (1)'} | | # mysql | ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls=yes} | ac_cv_conv_longlong_to_float=${ac_cv_conv_longlong_to_float=yes} | | # TCL | tcl_cv_api_serial=${tcl_cv_api_serial=termios} | | # python | ac_cv_have_long_long_format=yes | | # apache | ac_cv_o_nonblock_inherited=${ac_cv_o_nonblock_inherited=no} | | # rsync | rsync_cv_HAVE_C99_VSNPRINTF=${rsync_cv_HAVE_C99_VSNPRINTF=yes} | # general | ac_cv_func_calloc_0_nonnull=${ac_cv_func_calloc_0_nonnull=yes} | ac_cv_func_realloc_works=${ac_cv_func_realloc_works=yes} | ac_cv_func_realloc_0_nonnull=${ac_cv_func_realloc_0_nonnull=yes} | ac_cv_func_malloc_works=${ac_cv_func_malloc_works=yes} | ac_cv_func_malloc_0_nonnull=${ac_cv_func_malloc_0_nonnull=yes} | ac_cv_func_memcmp_working=${ac_cv_func_memcmp_working=yes} | ac_cv_func_getpgrp_void=yes | ac_cv_func_setpgrp_void=yes | ac_cv_func_setgrent_void=yes | ac_cv_func_getgrgid_r=${ac_cv_func_getgrgid_r=yes} | ac_cv_func_getpwuid_r=${ac_cv_func_getpwuid_r=yes} | ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=yes} | ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes} | ac_cv_type_uid_t={ac_cv_type_uid_t=yes} | ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes} | ac_cv_func_strtod=${ac_cv_func_strtod=yes} | | # bash | bash_cv_getcwd_malloc=${bash_cv_getcwd_malloc=yes} | | # clamav | clamav_av_func_working_snprintf_long=${clamav_av_func_working_snprintf_long=yes} | clamav_av_have_in_port_t=${clamav_av_have_in_port_t=yes} | clamav_av_have_in_addr_t=${clamav_av_have_in_addr_t=yes} | ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes} | | # coreutils | fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} | gl_cv_func_getcwd_abort_bug=${gl_cv_func_getcwd_abort_bug=no} | gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes} | gl_cv_func_getcwd_path_max=${gl_cv_func_getcwd_path_max=yes} | ac_cv_func_getgroups_works=${ac_cv_func_getgroups_works=yes} | gl_cv_func_nanosleep=${gl_cv_func_nanosleep='no (mishandles large arguments)'} | gl_cv_func_working_mkstemp=${gl_cv_func_working_mkstemp=yes} | gl_cv_func_working_mktime=${gl_cv_func_working_mktime=yes} | gl_cv_func_working_utimes=${gl_cv_func_working_utimes=yes} | | # glib | glib_cv_strlcpy=${glib_cv_strlcpy=no} | ac_cv_func_printf_unix98=${ac_cv_func_printf_unix98=yes} | ac_cv_func_snprintf_c99=${ac_cv_func_snprintf_c99=yes} | ac_cv_func_vsnprintf_c99=${ac_cv_func_vsnprintf_c99=yes} | glib_cv_compliant_posix_memalign=${glib_cv_compliant_posix_memalign=1} | glib_cv_long_long_format=${glib_cv_long_long_format=ll} | # glib-1.x requires this and pkgconfig-native / pkgconfig-nativesdk use | # that to avoid a dependency loop. | glib_cv___va_copy=${glib_cv___va_copy=yes} | glib_cv_va_copy=${glib_cv_va_copy=yes} | glib_cv_have_qsort_r=${glib_cv_have_qsort_r=yes} | | #dbus-glib | ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} | | # gnucash | am_cv_scanf_lld=${am_cv_scanf_lld=yes} | | # guile | ac_cv_func_pthread_attr_getstack=${ac_cv_func_pthread_attr_getstack=yes} | | #gcc-zlib | ac_cv_func_getpagesize=${ac_cv_func_getpagesize=yes} | ac_cv_func_memcpy=${ac_cv_func_memcpy=yes} | ac_cv_func_strerror=${ac_cv_func_strerror=yes} | | # squid | ac_cv_af_unix_large_dgram=${ac_cv_af_unix_large_dgram=yes} | ac_cv_func_setresuid=${ac_cv_func_setresuid=yes} | ac_cv_func_va_copy=${ac_cv_func_va_copy=yes} | ac_cv_func___va_copy=${ac_cv_func___va_copy=yes} | ac_cv_epoll_works=${ac_cv_epoll_works=yes} | | ac_cv_check_sjlj=ssjlj | | # m4 | gt_cv_locale_fr=${gt_cv_locale_fr=fr_FR} | gl_cv_func_btowc_eof=${gl_cv_func_btowc_eof=yes} | gl_cv_func_wcrtomb_retval=${gl_cv_func_wcrtomb_retval=yes} | gl_cv_func_wctob_works=${gl_cv_func_wctob_works=yes} | gl_cv_func_mbrtowc_incomplete_state=${gl_cv_func_mbrtowc_incomplete_state=yes} | gl_cv_func_mbrtowc_sanitycheck=${gl_cv_func_mbrtowc_sanitycheck=yes} | gl_cv_func_mbrtowc_null_arg=${gl_cv_func_mbrtowc_null_arg=yes} | gl_cv_func_mbrtowc_retval=${gl_cv_func_mbrtowc_retval=yes} | gl_cv_func_mbrtowc_nul_retval=${gl_cv_func_mbrtowc_nul_retval=yes} | | # va_copy and _va_copy | ac_cv_va_copy=${ac_cv_va_copy=yes} | ac_cv___va_copy=${ac_cv___va_copy=yes} | ac_cv_func_va_copy=${ac_cv_func_va_copy=yes} | ac_cv_func___va_copy=${ac_cv_func___va_copy=yes} | | # Xorg | xorg_cv_malloc0_returns_null=${xorg_cv_malloc0_returns_null=yes} | # general | ac_cv_va_val_copy=${ac_cv_va_val_copy=no} | ac_cv_func_lstat_dereferences_slashed_symlink=${ac_cv_func_lstat_dereferences_slashed_symlink=yes} | ac_cv_func_lstat_empty_string_bug=${ac_cv_func_lstat_empty_string_bug=no} | ac_cv_func_posix_getpwnam_r=${ac_cv_func_posix_getpwnam_r=yes} | ac_cv_func_setvbuf_reversed=${ac_cv_func_setvbuf_reversed=no} | ac_cv_func_stat_empty_string_bug=${ac_cv_func_stat_empty_string_bug=no} | ac_cv_func_stat_ignores_trailing_slash=${ac_cv_func_stat_ignores_trailing_slash=no} | ac_libnet_have_packet_socket=${ac_libnet_have_packet_socket=yes} | ac_cv_linux_vers=${ac_cv_linux_vers=2} | ac_cv_need_trio=${ac_cv_need_trio=no} | ac_cv_sizeof_char=${ac_cv_sizeof_char=1} | ac_cv_sizeof_int=${ac_cv_sizeof_int=4} | ac_cv_sizeof_unsigned_int=${ac_cv_sizeof_unsigned_int=4} | ac_cv_sizeof___int64=${ac_cv_sizeof___int64=0} | ac_cv_sizeof_long=${ac_cv_sizeof_long=8} | ac_cv_sizeof_unsigned_long=${ac_cv_sizeof_unsigned_long=8} | ac_cv_sizeof_long_double=${ac_cv_sizeof_long_double=16} | ac_cv_sizeof_long_int=${ac_cv_sizeof_long_int=8} | ac_cv_sizeof_long_long=${ac_cv_sizeof_long_long=8} | ac_cv_sizeof_short=${ac_cv_sizeof_short=2} | ac_cv_sizeof_unsigned_short=${ac_cv_sizeof_unsigned_short=2} | ac_cv_sizeof_short_int=${ac_cv_sizeof_short_int=2} | ac_cv_sizeof_size_t=${ac_cv_sizeof_size_t=8} | ac_cv_sizeof_uid_t=${ac_cv_sizeof_uid_t=4} | ac_cv_sizeof_gid_t=${ac_cv_sizeof_gid_t=4} | ac_cv_sizeof_dev_t=${ac_cv_sizeof_dev_t=8} | ac_cv_sizeof_void_p=${ac_cv_sizeof_void_p=8} | ac_cv_strerror_r_SUSv3=${ac_cv_strerror_r_SUSv3=no} | db_cv_alignp_t=${db_cv_alignp_t='unsigned long long'} | db_cv_align_t=${db_cv_align_t='unsigned long long'} | db_cv_fcntl_f_setfd=${db_cv_fcntl_f_setfd=yes} | db_cv_sprintf_count=${db_cv_sprintf_count=yes} | | # glib | glib_cv_hasinline=${glib_cv_hasinline=yes} | glib_cv_has__inline=${glib_cv_has__inline=yes} | glib_cv_has__inline__=${glib_cv_has__inline__=yes} | glib_cv_long_long_format=${glib_cv_long_long_format=ll} | glib_cv_rtldglobal_broken=${glib_cv_rtldglobal_broken=yes} | glib_cv_sane_realloc=${glib_cv_sane_realloc=yes} | glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=40} | glib_cv_sizeof_intmax_t=${glib_cv_sizeof_intmax_t=8} | glib_cv_sizeof_ptrdiff_t=${glib_cv_sizeof_ptrdiff_t=8} | glib_cv_sizeof_size_t=${glib_cv_sizeof_size_t=8} | glib_cv_sizeof_system_thread=${glib_cv_sizeof_system_thread=8} | glib_cv_stack_grows=${glib_cv_stack_grows=no} | glib_cv_sys_pthread_cond_timedwait_posix=${glib_cv_sys_pthread_cond_timedwait_posix=yes} | glib_cv_sys_pthread_getspecific_posix=${glib_cv_sys_pthread_getspecific_posix=yes} | glib_cv_sys_pthread_mutex_trylock_posix=${glib_cv_sys_pthread_mutex_trylock_posix=yes} | glib_cv_uscore=${glib_cv_uscore=no} | glib_cv_va_val_copy=${glib_cv_va_val_copy=no} | ac_cv_alignof_guint32=4 | ac_cv_alignof_guint64=8 | ac_cv_alignof_unsigned_long=8 | | nano_cv_func_regexec_segv_emptystr=${nano_cv_func_regexec_segv_emptystr=no} | samba_cv_HAVE_VA_COPY=${samba_cv_HAVE_VA_COPY=yes} | screen_cv_sys_bcopy_overlap=${screen_cv_sys_bcopy_overlap=no} | screen_cv_sys_fifo_broken_impl=${screen_cv_sys_fifo_broken_impl=yes} | screen_cv_sys_fifo_usable=${screen_cv_sys_fifo_usable=yes} | screen_cv_sys_memcpy_overlap=${screen_cv_sys_memcpy_overlap=no} | screen_cv_sys_memmove_overlap=${screen_cv_sys_memmove_overlap=no} | screen_cv_sys_select_broken_retval=${screen_cv_sys_select_broken_retval=no} | screen_cv_sys_sockets_nofs=${screen_cv_sys_sockets_nofs=no} | screen_cv_sys_sockets_usable=${screen_cv_sys_sockets_usable=yes} | screen_cv_sys_terminfo_used=${screen_cv_sys_terminfo_used=yes} | utils_cv_sys_open_max=${utils_cv_sys_open_max=1015} | | # gettext | am_cv_func_working_getline=${am_cv_func_working_getline=yes} | | #gcc | ac_cv_lib_m_sin=${ac_cv_lib_m_sin=yes} | | #orbit | libIDL_cv_long_long_format=ll | | # bash | bash_cv_func_sigsetjmp=${bash_cv_func_sigsetjmp=present} | | # ORBit2 | ac_cv_alignof_CORBA_boolean=1 | ac_cv_alignof_CORBA_char=1 | ac_cv_alignof_CORBA_double=8 | ac_cv_alignof_CORBA_float=4 | ac_cv_alignof_CORBA_long=4 | ac_cv_alignof_CORBA_long_double=8 | ac_cv_alignof_CORBA_long_long=8 | ac_cv_alignof_CORBA_octet=1 | ac_cv_alignof_CORBA_pointer=8 | ac_cv_alignof_CORBA_short=2 | ac_cv_alignof_CORBA_struct=1 | ac_cv_alignof_CORBA_wchar=2 | | lf_cv_sane_realloc=yes | as_cv_unaligned_access=${as_cv_unaligned_access=yes} | | #unfs3 | nfsd_cv_broken_setfsuid=${nfsd_cv_broken_setfsuid=0} | nfsd_cv_func_statfs=${nfsd_cv_func_statfs=statfs2_bsize} | nfsd_cv_bsd_signals=${nfsd_cv_bsd_signals=yes} | | #apr | apr_cv_tcp_nodelay_with_cork=${apr_cv_tcp_nodelay_with_cork=yes} | | # lftp | lftp_cv_va_val_copy=${lftp_cv_va_val_copy=no} | | # slrn | slrn_cv_va_val_copy=${slrn_cv_va_val_copy=no} | | # grub | ac_cv_func___ashldi3=no | ac_cv_func___ashrdi3=no | ac_cv_func___bswapdi2=no | ac_cv_func___bswapsi2=no | ac_cv_func___lshrdi3=no | ac_cv_func___trampoline_setup=no | ac_cv_func___ucmpdi2=no | ac_cv_func__restgpr_14_x=no | | # cvs | cvs_cv_func_printf_ptr=${cvs_cv_func_printf_ptr=yes} | | # at-spi2-core | ac_cv_alignof_char=1 | ac_cv_alignof_dbind_pointer=8 | ac_cv_alignof_dbind_struct=1 | ac_cv_alignof_dbus_bool_t=4 | ac_cv_alignof_dbus_int16_t=2 | ac_cv_alignof_dbus_int32_t=4 | ac_cv_alignof_dbus_int64_t=8 | ac_cv_alignof_double=8 | # libelf | mr_cv_target_elf=${mr_cv_target_elf=yes} | | # Normally kernels have /dev/random enabled | ac_cv_file__dev_random=${ac_cv_file__dev_random=yes} | | # Avoid sudo to assume void for unsetenv in cross environment, or else it conflicts with | # target stdlib.h prototype which follows POSIX compiliance. Mark for upstream. | sudo_cv_func_unsetenv_void=no | | # shadow dir info, to avoid searching build system | shadow_cv_maildir=${localstatedir}/spool/mail | shadow_cv_mailfile=Mailbox | shadow_cv_utmpdir=${localstatedir}/run | shadow_cv_logdir=${localstatedir}/log | shadow_cv_passwd_dir=${bindir} | | # python: deactivate a runtime check for ipv6-support in python >=2.7.1 that fails when cross-compiling | ac_cv_buggy_getaddrinfo=no | | ac_cv_path_SED=${ac_cv_path_SED=sed} | | # General | ac_cv_have_decl_sys_siglist=${ac_cv_have_decl_sys_siglist=no} | | # bash | bash_cv_under_sys_siglist=${bash_cv_under_sys_siglist=no} | bash_cv_sys_siglist=${bash_cv_sys_siglist=no} | # rp-pppoe | rpppoe_cv_pack_bitfields=${rpppoe_cv_pack_bitfields=rev} configure:2568: checking for gcc configure:2595: result: x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux configure:2824: checking for C compiler version configure:2833: x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux --version >&5 x86_64-lpkit-linux-gcc (GCC) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2844: $? = 0 configure:2833: x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux -v >&5 Using built-in specs. COLLECT_GCC=x86_64-lpkit-linux-gcc COLLECT_LTO_WRAPPER=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/libexec/x86_64-lpkit-linux/gcc/x86_64-lpkit-linux/9.3.0/lto-wrapper Target: x86_64-lpkit-linux Configured with: ../../../../../../work-shared/gcc-9.3.0-r0/gcc-9.3.0/configure --build=x86_64-linux --host=x86_64-lpkitsdk-linux --target=x86_64-lpkit-linux --prefix=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr --exec_prefix=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr --bindir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/x86_64-lpkit-linux --sbindir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/bin/x86_64-lpkit-linux --libexecdir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/libexec/x86_64-lpkit-linux --datadir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/share --sysconfdir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/etc --sharedstatedir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/com --localstatedir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/var --libdir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/lib/x86_64-lpkit-linux --includedir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/include --oldincludedir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/include --infodir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/share/info --mandir=/opt/lpkit/3.1.5-1-core2-64/sysroots/x86_64-lpkitsdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/builds/fa722ab4/0/lpkit/sdk/build-sdk/tmp-glibc/work/x86_64-nativesdk-lpkitsdk-linux/gcc-cross-canadian-x86-64/9.3.0-r0/recipe-sysroot --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=x86_64-lpkit-linux- --without-local-prefix --disable-install-libiberty --enable-lto --disable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/9.3.0 --with-build-time-tools=/builds/fa722ab4/0/lpkit/sdk/build-sdk/tmp-glibc/work/x86_64-nativesdk-lpkitsdk-linux/gcc-cross-canadian-x86-64/9.3.0-r0/recipe-sysroot-native/usr/x86_64-lpkit-linux/bin --with-sysroot=/not/exist --with-build-sysroot=/builds/fa722ab4/0/lpkit/sdk/build-sdk/tmp-glibc/work/x86_64-nativesdk-lpkitsdk-linux/gcc-cross-canadian-x86-64/9.3.0-r0/recipe-sysroot --enable-poison-system-directories --disable-static --enable-nls --with-glibc-version=2.28 --enable-initfini-array --enable-__cxa_atexit Thread model: posix gcc version 9.3.0 (GCC) configure:2844: $? = 0 configure:2833: x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux -V >&5 x86_64-lpkit-linux-gcc: error: unrecognized command line option '-V' x86_64-lpkit-linux-gcc: fatal error: no input files compilation terminated. configure:2844: $? = 1 configure:2833: x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux -qversion >&5 x86_64-lpkit-linux-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? x86_64-lpkit-linux-gcc: fatal error: no input files compilation terminated. configure:2844: $? = 1 configure:2864: checking whether the C compiler works configure:2886: x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux -m64 -g -fPIC -O2 -pipe -g -feliminate-unused-debug-types -m64 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5 configure:2890: $? = 0 configure:2938: result: yes configure:2941: checking for C compiler default output file name configure:2943: result: a.out configure:2949: checking for suffix of executables configure:2956: x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux -o conftest -m64 -g -fPIC -O2 -pipe -g -feliminate-unused-debug-types -m64 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5 configure:2960: $? = 0 configure:2982: result: configure:3004: checking whether we are cross compiling configure:3012: x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux -o conftest -m64 -g -fPIC -O2 -pipe -g -feliminate-unused-debug-types -m64 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5 configure:3016: $? = 0 configure:3023: ./conftest source_subfolder/configure: line 3025: ./conftest: No such file or directory configure:3027: $? = 127 configure:3034: error: in `/home/hoff/conan_home/.conan/data/libusb/1.0.24/_/_/build/1e6f884e2ab8743cec82cca83b5d282850133b03': configure:3036: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv___va_copy=yes ac_cv_af_unix_large_dgram=yes ac_cv_alignof_CORBA_boolean=1 ac_cv_alignof_CORBA_char=1 ac_cv_alignof_CORBA_double=8 ac_cv_alignof_CORBA_float=4 ac_cv_alignof_CORBA_long=4 ac_cv_alignof_CORBA_long_double=8 ac_cv_alignof_CORBA_long_long=8 ac_cv_alignof_CORBA_octet=1 ac_cv_alignof_CORBA_pointer=8 ac_cv_alignof_CORBA_short=2 ac_cv_alignof_CORBA_struct=1 ac_cv_alignof_CORBA_wchar=2 ac_cv_alignof_char=1 ac_cv_alignof_dbind_pointer=8 ac_cv_alignof_dbind_struct=1 ac_cv_alignof_dbus_bool_t=4 ac_cv_alignof_dbus_int16_t=2 ac_cv_alignof_dbus_int32_t=4 ac_cv_alignof_dbus_int64_t=8 ac_cv_alignof_double=8 ac_cv_alignof_guint32=4 ac_cv_alignof_guint64=8 ac_cv_alignof_unsigned_long=8 ac_cv_buggy_getaddrinfo=no ac_cv_c_bigendian=no ac_cv_c_endian=little ac_cv_c_littleendian=yes ac_cv_check_sjlj=ssjlj ac_cv_conv_longlong_to_float=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value='x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-m64 -g -fPIC -O2 -pipe -g -feliminate-unused-debug-types' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set=set ac_cv_env_CPP_value='x86_64-lpkit-linux-gcc -E -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-m64 -g -fPIC -O2 -pipe -g -feliminate-unused-debug-types' ac_cv_env_CXX_set=set ac_cv_env_CXX_value='x86_64-lpkit-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-m64 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now' ac_cv_env_LIBS_set=set ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_epoll_works=yes ac_cv_file__dev_random=yes ac_cv_file__dev_zero=yes ac_cv_func___ashldi3=no ac_cv_func___ashrdi3=no ac_cv_func___bswapdi2=no ac_cv_func___bswapsi2=no ac_cv_func___lshrdi3=no ac_cv_func___trampoline_setup=no ac_cv_func___ucmpdi2=no ac_cv_func___va_copy=yes ac_cv_func__restgpr_14_x=no ac_cv_func_calloc_0_nonnull=yes ac_cv_func_chown_works=yes ac_cv_func_getaddrinfo=yes ac_cv_func_getgrgid_r=yes ac_cv_func_getgroups_works=yes ac_cv_func_getpagesize=yes ac_cv_func_getpgrp_void=yes ac_cv_func_getpwuid_r=yes ac_cv_func_lstat_dereferences_slashed_symlink=yes ac_cv_func_lstat_empty_string_bug=no ac_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_works=yes ac_cv_func_memcmp_working=yes ac_cv_func_memcpy=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_posix_getgrgid_r=yes ac_cv_func_posix_getpwnam_r=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_printf_unix98=yes ac_cv_func_pthread_attr_getstack=yes ac_cv_func_pthread_key_delete=yes ac_cv_func_realloc_0_nonnull=yes ac_cv_func_realloc_works=yes ac_cv_func_setgrent_void=yes ac_cv_func_setpgrp_void=yes ac_cv_func_setresuid=yes ac_cv_func_setvbuf_reversed=no ac_cv_func_snprintf_c99=yes ac_cv_func_stat_empty_string_bug=no ac_cv_func_stat_ignores_trailing_slash=no ac_cv_func_strerror=yes ac_cv_func_strtod=yes ac_cv_func_utime_null=yes ac_cv_func_va_copy=yes ac_cv_func_vsnprintf_c99=yes ac_cv_have_abstract_sockets=yes ac_cv_have_decl_sys_siglist=no ac_cv_have_long_long_format=yes ac_cv_lib_m_sin=yes ac_cv_libnet_endianess=lil ac_cv_linux_vers=2 ac_cv_need_trio=no ac_cv_o_nonblock_inherited=no ac_cv_path_SED=sed ac_cv_prog_ac_ct_CC='x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' ac_cv_sizeof___int64=0 ac_cv_sizeof_char=1 ac_cv_sizeof_dev_t=8 ac_cv_sizeof_gid_t=4 ac_cv_sizeof_int=4 ac_cv_sizeof_long=8 ac_cv_sizeof_long_double=16 ac_cv_sizeof_long_int=8 ac_cv_sizeof_long_long=8 ac_cv_sizeof_pid_t=4 ac_cv_sizeof_short=2 ac_cv_sizeof_short_int=2 ac_cv_sizeof_size_t=8 ac_cv_sizeof_uid_t=4 ac_cv_sizeof_unsigned_int=4 ac_cv_sizeof_unsigned_long=8 ac_cv_sizeof_unsigned_short=2 ac_cv_sizeof_void_p=8 ac_cv_strerror_r_SUSv3=no ac_cv_sys_restartable_syscalls=yes ac_cv_type_uid_t='{ac_cv_type_uid_t=yes}' ac_cv_va_copy=yes ac_cv_va_val_copy=no am_cv_func_working_getline=yes am_cv_scanf_lld=yes apr_cv_process_shared_works=no apr_cv_tcp_nodelay_with_cork=yes as_cv_unaligned_access=yes bash_cv_dup2_broken=no bash_cv_func_sigsetjmp=present bash_cv_func_strcoll_broken=no bash_cv_getcwd_calls_popen=no bash_cv_getcwd_malloc=yes bash_cv_getenv_redef=yes bash_cv_have_mbstate_t=yes bash_cv_job_control_missing=present bash_cv_must_reinstall_sighandlers=no bash_cv_opendir_not_robust=no bash_cv_pgrp_pipe=no bash_cv_printf_a_format=yes bash_cv_sys_named_pipes=present bash_cv_sys_siglist=no bash_cv_type_rlimit=rlim_t bash_cv_ulimit_maxfds=yes bash_cv_under_sys_siglist=no bash_cv_unusable_rtsigs=no cvs_cv_func_printf_ptr=yes db_cv_align_t='unsigned long long' db_cv_alignp_t='unsigned long long' db_cv_fcntl_f_setfd=yes db_cv_path_ar=/usr/bin/ar db_cv_path_chmod=/bin/chmod db_cv_path_cp=/bin/cp db_cv_path_ln=/bin/ln db_cv_path_mkdir=/bin/mkdir db_cv_path_ranlib=/usr/bin/ranlib db_cv_path_rm=/bin/rm db_cv_path_sh=/bin/sh db_cv_path_strip=/usr/bin/strip db_cv_sprintf_count=yes fu_cv_sys_stat_statfs2_bsize=yes gl_cv_func_btowc_eof=yes gl_cv_func_fstatat_zero_flag=yes gl_cv_func_getcwd_abort_bug=no gl_cv_func_getcwd_null=yes gl_cv_func_getcwd_path_max=yes gl_cv_func_link_follows_symlink=no gl_cv_func_mbrtowc_incomplete_state=yes gl_cv_func_mbrtowc_nul_retval=yes gl_cv_func_mbrtowc_null_arg=yes gl_cv_func_mbrtowc_retval=yes gl_cv_func_mbrtowc_sanitycheck=yes gl_cv_func_nanosleep='no (mishandles large arguments)' gl_cv_func_sleep_works=yes gl_cv_func_unlink_busy_text=yes gl_cv_func_wcrtomb_retval=yes gl_cv_func_wctob_works=yes gl_cv_func_working_mkstemp=yes gl_cv_func_working_mktime=yes gl_cv_func_working_utimes=yes gl_cv_have_proc_uptime=yes gl_cv_header_working_fcntl_h=yes gl_cv_pipes_are_fifos='yes (1)' glib_cv___va_copy=yes glib_cv_compliant_posix_memalign=1 glib_cv_has__inline=yes glib_cv_has__inline__=yes glib_cv_hasinline=yes glib_cv_have_qsort_r=yes glib_cv_long_long_format=ll glib_cv_rtldglobal_broken=yes glib_cv_sane_realloc=yes glib_cv_sizeof_gmutex=40 glib_cv_sizeof_intmax_t=8 glib_cv_sizeof_ptrdiff_t=8 glib_cv_sizeof_size_t=8 glib_cv_sizeof_system_thread=8 glib_cv_stack_grows=no glib_cv_strlcpy=no glib_cv_sys_pthread_cond_timedwait_posix=yes glib_cv_sys_pthread_getspecific_posix=yes glib_cv_sys_pthread_mutex_trylock_posix=yes glib_cv_uscore=no glib_cv_va_copy=yes glib_cv_va_val_copy=no gt_cv_locale_fr=fr_FR hw_cv_func_snprintf_c99=yes hw_cv_func_vsnprintf_c99=yes lf_cv_sane_realloc=yes lftp_cv_va_val_copy=no libIDL_cv_long_long_format=ll mr_cv_target_elf=yes nano_cv_func_regexec_segv_emptystr=no nfsd_cv_broken_setfsuid=0 nfsd_cv_bsd_signals=yes nfsd_cv_func_statfs=statfs2_bsize rpppoe_cv_pack_bitfields=rev rsync_cv_HAVE_C99_VSNPRINTF=yes samba_cv_HAVE_IFACE_AIX=no samba_cv_HAVE_IFACE_IFCONF=yes samba_cv_HAVE_IFACE_IFREQ=yes samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no samba_cv_HAVE_VA_COPY=yes screen_cv_sys_bcopy_overlap=no screen_cv_sys_fifo_broken_impl=yes screen_cv_sys_fifo_usable=yes screen_cv_sys_memcpy_overlap=no screen_cv_sys_memmove_overlap=no screen_cv_sys_select_broken_retval=no screen_cv_sys_sockets_nofs=no screen_cv_sys_sockets_usable=yes screen_cv_sys_terminfo_used=yes shadow_cv_logdir='${prefix}/var/log' shadow_cv_maildir='${prefix}/var/spool/mail' shadow_cv_mailfile=Mailbox shadow_cv_passwd_dir='${prefix}/bin' shadow_cv_utmpdir='${prefix}/var/run' slrn_cv_va_val_copy=no sudo_cv_func_unsetenv_void=no tcl_cv_api_serial=termios utils_cv_sys_open_max=1015 xorg_cv_malloc0_returns_null=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='' AM_BACKSLASH='' AM_CFLAGS='' AM_CPPFLAGS='' AM_CXXFLAGS='' AM_DEFAULT_V='' AM_DEFAULT_VERBOSITY='' AM_V='' AR='x86_64-lpkit-linux-ar' AUTOCONF='' AUTOHEADER='' AUTOMAKE='' AWK='' BUILD_EXAMPLES_FALSE='' BUILD_EXAMPLES_TRUE='' BUILD_TESTS_FALSE='' BUILD_TESTS_TRUE='' CC='x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' CCDEPMODE='' CFLAGS='-m64 -g -fPIC -O2 -pipe -g -feliminate-unused-debug-types' CPP='x86_64-lpkit-linux-gcc -E -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' CPPFLAGS='' CREATE_IMPORT_LIB_FALSE='' CREATE_IMPORT_LIB_TRUE='' CXX='x86_64-lpkit-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' CXXCPP='' CXXDEPMODE='' CXXFLAGS='-m64 -g -fPIC -O2 -pipe -g -feliminate-unused-debug-types' CYGPATH_W='' DEFS='' DEPDIR='' DLLTOOL='' DOXYGEN_HTMLDIR='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FGREP='' GREP='' INSTALL_DATA='' INSTALL_PROGRAM='' INSTALL_SCRIPT='' INSTALL_STRIP_PROGRAM='' LD='x86_64-lpkit-linux-ld --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' LDFLAGS='-m64 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' LT_LDFLAGS='' LT_SYS_LIBRARY_PATH='' MAKEINFO='' MANIFEST_TOOL='' MKDIR_P='' NM='x86_64-lpkit-linux-nm' NMEDIT='' OBJDUMP='x86_64-lpkit-linux-objdump' OBJEXT='' OS_DARWIN_FALSE='' OS_DARWIN_TRUE='' OS_HAIKU_FALSE='' OS_HAIKU_TRUE='' OS_LINUX_FALSE='' OS_LINUX_TRUE='' OS_NETBSD_FALSE='' OS_NETBSD_TRUE='' OS_NULL_FALSE='' OS_NULL_TRUE='' OS_OPENBSD_FALSE='' OS_OPENBSD_TRUE='' OS_SUNOS_FALSE='' OS_SUNOS_TRUE='' OS_WINDOWS_FALSE='' OS_WINDOWS_TRUE='' OTOOL64='' OTOOL='' PACKAGE='' PACKAGE_BUGREPORT='libusb-devel@lists.sourceforge.net' PACKAGE_NAME='libusb-1.0' PACKAGE_STRING='libusb-1.0 1.0.24' PACKAGE_TARNAME='libusb-1.0' PACKAGE_URL='http://libusb.info' PACKAGE_VERSION='1.0.24' PATH_SEPARATOR=':' PLATFORM_POSIX_FALSE='' PLATFORM_POSIX_TRUE='' PLATFORM_WINDOWS_FALSE='' PLATFORM_WINDOWS_TRUE='' RANLIB='x86_64-lpkit-linux-ranlib' RC='' SED='' SET_MAKE='' SHELL='/bin/bash' STRIP='x86_64-lpkit-linux-strip' THREAD_CFLAGS='' THREAD_LIBS='' USE_UDEV_FALSE='' USE_UDEV_TRUE='' VERSION='' ac_ct_AR='' ac_ct_CC='x86_64-lpkit-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/lpkit/3.1.5-1-core2-64/sysroots/core2-64-lpkit-linux' ac_ct_CXX='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='' am__fastdepCXX_TRUE='' am__include='' am__isrc='' am__leading_dot='' am__nodep='' am__quote='' am__tar='' am__untar='' bindir='${prefix}/bin' build='' build_alias='' build_cpu='' build_os='' build_vendor='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='' host_alias='' host_cpu='' host_os='' host_vendor='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='' libdir='${prefix}/lib' libexecdir='${prefix}/bin' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='' oldincludedir='${prefix}/include' pdfdir='${docdir}' prefix='/home/hoff/conan_home/.conan/data/libusb/1.0.24/_/_/package/1e6f884e2ab8743cec82cca83b5d282850133b03' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${prefix}/bin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "libusb-1.0" #define PACKAGE_TARNAME "libusb-1.0" #define PACKAGE_VERSION "1.0.24" #define PACKAGE_STRING "libusb-1.0 1.0.24" #define PACKAGE_BUGREPORT "libusb-devel@lists.sourceforge.net" #define PACKAGE_URL "http://libusb.info" configure: exit 1 ```

In the log you will see, that the test excecutable can not be started :

configure:3023: ./conftest
source_subfolder/configure: line 3025: ./conftest: No such file or directory

You are probably right. The fix will not scale. The fix needs to be done in the conan Autotool integration. But taking the CROSS_COMPILE-variable is not that bad, as it is commonly used in a cross compile environment.

elvisdukaj commented 7 months ago

Any update on this? I have the same issue trying to cross compile for Android from Windows.