-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Hi - I've had my team mate to check cross building on windows host for android target, and we got a failure:
'autoreconf' is not recognized as an internal or external command
Full logs:
REDACTED@REDACTED /cygdrive/c/Users/REDACTED/Downloads/testing/conan-center-index/recipes/libsocketcan
$ conan create all/conanfile.py --version=0.0.12 --conf:host=tools.android:ndk_path="C:\Users\REDACTED\AppData\Local\Android\Sdk\ndk\20.1.5948944" --profile:host="C:\Project\REDACTED\REDACTED\REDACTED\REDACTED\conan\profiles\android_api21_arm64-v8a.jinja"
======== Exporting recipe to the cache ========
libsocketcan/0.0.12: Exporting package recipe: C:\Users\REDACTED\Downloads\testing\conan-center-index\recipes\libsocketcan\all\conanfile.py
libsocketcan/0.0.12: exports: File 'conandata.yml' found. Exporting it...
libsocketcan/0.0.12: Copied 1 '.yml' file: conandata.yml
libsocketcan/0.0.12: Copied 1 '.py' file: conanfile.py
libsocketcan/0.0.12: Exported to cache folder: C:\Users\REDACTED\.conan2\p\libso825ee73352e4b\e
libsocketcan/0.0.12: Exported: libsocketcan/0.0.12#0a51a96509606358612b4c9991869617 (2025-10-30 23:38:37 UTC)
======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=clang
compiler.libcxx=c++_shared
compiler.version=8
os=Android
os.api_level=21
[conf]
tools.android:ndk_path=C:\Users\REDACTED\AppData\Local\Android\Sdk\ndk\20.1.5948944
[buildenv]
RANLIB=/cygdrive/c/Users/REDACTED/AppData/Local/Android/Sdk/ndk/20.1.5948944\toolchains\llvm\prebuilt\windows-x86_64\bin/aarch64-linux-android-ranlib
ANDROID_PLATFORM=21
ANDROID_ABI=arm64-v8a
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=10
os=Windows
======== Computing dependency graph ========
Graph root
cli
Requirements
libsocketcan/0.0.12#0a51a96509606358612b4c9991869617 - Cache
Build requirements
autoconf/2.71#51077f068e61700d65bb05541ea1e4b0 - Cache
automake/1.16.5#b91b7c384c3deaa9d535be02da14d04f - Cache
gnu-config/cci.20210814#69fde734e1a46fd1655b4af46ab40945 - Cache
libtool/2.4.7#14e7739cc128bc1623d2ed318008e47e - Cache
m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache
meson/1.9.1#abbc783cd297bedce14581b4aec060b8 - Cache
msys2/cci.latest#5b73b10144f73cc5bfe0572ed9be39e1 - Cache
ninja/1.13.1#294f8721dbcde145674f7ba44994700e - Cache
pkgconf/2.2.0#4ac315b50ef734072b00ff3aacbf52bf - Cache
Resolved version ranges
meson/[>=1.2.2 <2]: meson/1.9.1
ninja/[>=1.10.2 <2]: ninja/1.13.1
pkgconf/[>=2.2 <3]: pkgconf/2.2.0
======== Computing necessary packages ========
libsocketcan/0.0.12: Forced build from source
Requirements
libsocketcan/0.0.12#0a51a96509606358612b4c9991869617:8d14f9dac9df71cbcc1e86f24759fbb1c899c1ff - Build
Build requirements
autoconf/2.71#51077f068e61700d65bb05541ea1e4b0:ebec3dc6d7f6b907b3ada0c3d3cdc83613a2b715#b3a5091ff4602fbd9feebc093052d712 - Cache
automake/1.16.5#b91b7c384c3deaa9d535be02da14d04f:ebec3dc6d7f6b907b3ada0c3d3cdc83613a2b715#d2341aff75938975508b61e922aa1b92 - Cache
libtool/2.4.7#14e7739cc128bc1623d2ed318008e47e:726c1053e53f5cbfb929d3ab6761995dd6db21ad#08e707a3f1e81b245ab4f8be7e13c399 - Cache
m4/1.4.19#b38ced39a01e31fef5435bc634461fd2:723257509aee8a72faf021920c2874abc738e029#f9a0d644c9e90c7024f844416dbe7384 - Cache
pkgconf/2.2.0#4ac315b50ef734072b00ff3aacbf52bf:43771b8671ac44479c188dd72670e2eb2d7918a6#928d57b4a046f474feb40b97e3974ad0 - Cache
Skipped binaries
gnu-config/cci.20210814, meson/1.9.1, msys2/cci.latest, ninja/1.13.1
======== Installing packages ========
m4/1.4.19: Already installed! (1 of 6)
pkgconf/2.2.0: Already installed! (2 of 6)
autoconf/2.71: Already installed! (3 of 6)
automake/1.16.5: Already installed! (4 of 6)
libtool/2.4.7: Already installed! (5 of 6)
-------- Installing package libsocketcan/0.0.12 (6 of 6) --------
libsocketcan/0.0.12: Building from source
libsocketcan/0.0.12: Package libsocketcan/0.0.12:8d14f9dac9df71cbcc1e86f24759fbb1c899c1ff
libsocketcan/0.0.12: Copying sources to build folder
libsocketcan/0.0.12: Building your package in C:\Users\REDACTED\.conan2\p\b\libso47d1321d73358\b
libsocketcan/0.0.12: Calling generate()
libsocketcan/0.0.12: Generators folder: C:\Users\REDACTED\.conan2\p\b\libso47d1321d73358\b\build-release\conan
libsocketcan/0.0.12: Generating aggregated env files
libsocketcan/0.0.12: Generated aggregated env files: ['conanbuild.bat', 'conanrun.sh']
libsocketcan/0.0.12: Calling build()
libsocketcan/0.0.12: RUN: autoreconf --force --install
'autoreconf' is not recognized as an internal or external command,
operable program or batch file.
libsocketcan/0.0.12: ERROR:
Package '8d14f9dac9df71cbcc1e86f24759fbb1c899c1ff' build failed
libsocketcan/0.0.12: WARN: Build folder C:\Users\REDACTED\.conan2\p\b\libso47d1321d73358\b\build-release
ERROR: libsocketcan/0.0.12: Error in build() method, line 53
autotools.autoreconf()
ConanException: Error 1 while executing
We were able to find the autoreconf script in:

We have checked if the system can run this script at all (since it's perl under the hood, and it's using shebang, and yes):
redacted@redacted/cygdrive/c/Users/redacted/Downloads/testing/conan-center-index/recipes/libsocketcan
$ /cygdrive/c/Users/redacted/.conan2/p/autocf74f7be81c509/p/bin/autoreconf -h
Usage: /cygdrive/c/Users/redacted/.conan2/p/autocf74f7be81c509/p/bin/autoreconf [OPTION]... [DIRECTORY]...
(more output here, from help command, removed to keep it short)
We have also tried adding autoconf explicitly into build_requirements (In case somehow when it's transitive dependency, the executable are not added to the PATH)
def build_requirements(self):
self.tool_requires("libtool/2.4.7")
+ self.tool_requires("autoconf/2.71")
if not self.conf.get("tools.gnu:pkg_config", check_type=str):
self.tool_requires("pkgconf/[>=2.2 <3]")^^ didn't help.
PS. We have tried running in: powershell, cygwin, git bash so far
Any ideas ?
Originally posted by @Deishelon in #28685 (comment)
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested