conan-io / conan-center-index

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

[package] <autoconf>/<2.71>: can't build from within existing msys2 setup #14375

Open hassec opened 1 year ago

hassec commented 1 year ago

Description

I've tried a bunch of settings, but I can't find any profile that is able to compile autoconf from withing a msys2 environment.

The below logs were produced from within a msys2 MinGW64 shell that has some basics like a gcc toolchain, cmake, python, conan etc. installed.

I'd prefer to launch the build from within a msys2 shell due to upstream requirements of the package I'm trying to move to conan. That said, I've tried launching the build from the PowerShell and just pointing conan at the msys2 bash via the profile, and that doesn't really work either, see e.g. this comment

Package and Environment Details

Conan profile

[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 compiler=gcc compiler.version=12 compiler.libcxx=libstdc++11 build_type=Release [options] [conf] tools.env.virtualenv:auto_use=True tools.microsoft.bash:active=True tools.microsoft.bash:path=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe tools.microsoft.bash:subsystem=msys2 [build_requires] [env] CONAN_BASH_PATH=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe

Steps to reproduce

conan install -r conancenter autoconf/2.71@ -pr:b=default -pr:h=default --build=autoconf

Logs

Log with tools.microsoft.bash:active=False

Click to expand log ``` $ conan install -r conancenter autoconf/2.71@ -pr:b=default -pr:h=default --build=autoconf Configuration (profile_host): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=12 os=Windows os_build=Windows [options] [build_requires] [env] CONAN_BASH_PATH=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe [conf] tools.microsoft.bash:path=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe tools.microsoft.bash:subsystem=msys2 tools.env.virtualenv:auto_use=True tools.microsoft.bash:active=False Configuration (profile_build): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=12 os=Windows os_build=Windows [options] [build_requires] [env] CONAN_BASH_PATH=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe [conf] tools.microsoft.bash:path=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe tools.microsoft.bash:subsystem=msys2 tools.env.virtualenv:auto_use=True tools.microsoft.bash:active=False autoconf/2.71: Retrieving from server 'conancenter' autoconf/2.71: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.68k] Downloading conanfile.py completed [5.59k] Downloading conan_export.tgz completed [0.37k] Decompressing conan_export.tgz completed [0.00k] autoconf/2.71: Downloaded recipe revision 0 autoconf/2.71: Forced build from source Installing package: autoconf/2.71 Requirements autoconf/2.71 from 'conancenter' - Downloaded m4/1.4.19 from 'conancenter' - Cache Packages autoconf/2.71:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build m4/1.4.19:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache Build requirements m4/1.4.19 from 'conancenter' - Cache Build requirements packages m4/1.4.19:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache Installing (downloading, building) binaries... m4/1.4.19: Already installed! m4/1.4.19: Appending PATH environment variable: C:/Users/IEUser/.conan/data/m4/1.4.19/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/bin m4/1.4.19: Appending PATH environment variable: C:/Users/IEUser/.conan/data/m4/1.4.19/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/bin autoconf/2.71: Applying build-requirement: m4/1.4.19 Downloading conan_sources.tgz completed [2.17k] Decompressing conan_sources.tgz completed [0.00k] autoconf/2.71: Configuring sources in C:/Users/IEUser/.conan/data/autoconf/2.71/_/_/source/src Downloading autoconf-2.71.tar.gz completed [1956.82k] autoconf/2.71: oconf/2.71: autoconf/2.71: autoconf/2.71: Copying sources to build folder autoconf/2.71: Building your package in C:/Users/IEUser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 autoconf/2.71: Generator txt created conanbuildinfo.txt autoconf/2.71: Calling generate() autoconf/2.71: Aggregating env generators autoconf/2.71: Calling build() autoconf/2.71: Calling: > "/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/configure" --prefix=/ --bindir=${prefix}/b in --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include --datarootdir=${prefix}/res configure: loading site script C:/Users/IEUser/scoop/apps/msys2/2022-09-04/etc/config.site checking for a BSD-compatible install... /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/build -aux/install-sh checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-w64-mingw32 checking host system type... x86_64-w64-mingw32 configure: autobuild project... GNU Autoconf configure: autobuild revision... 2.71 configure: autobuild hostname... MSEDGEWIN10 configure: autobuild timestamp... 20221122T211049Z checking for a shell whose -n mode is known to work... /bin/sh checking for characters that cannot appear in file names... \\ checking whether directories can have trailing spaces... yes checking for expr... /usr/bin/expr checking for GNU M4 that supports accurate traces... /c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68 /bin/m4.exe checking whether /c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe accepts --gnu... yes checking how m4 supports trace files... --debugfile checking for perl... /usr/bin/perl checking whether /usr/bin/perl Fcntl::flock is implemented... yes checking for emacs... no checking for xemacs... no checking for emacs... no checking where .elc files should go... ${datadir}/emacs/site-lisp checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking whether make is case sensitive... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating tests/atlocal config.status: creating Makefile config.status: linking /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/GNUmakefile to GNUmakef ile config.status: executing tests/atconfig commands make all-am make[1]: Entering directory '/c/Users/IEUser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/build-release' rm -f bin/autom4te bin/autom4te.tmp rm -f lib/autom4te.cfg lib/autom4te.cfg-t /usr/bin/mkdir -p bin /usr/bin/mkdir -p lib/m4sugar srcdir=''; \ test -f ./bin/autom4te.in || srcdir=/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/; \ sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|/res /autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | se d 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a42 0ff5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's| @RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autom4te .in; do not edit by hand.|g' ${srcdir}bin/autom4te.in >bin/autom4te.tmp /usr/bin/mkdir -p lib rm -f bin/autoheader bin/autoheader.tmp :;{ \ echo '# This file is part of -*- Autoconf -*-.' && \ echo '# Version of Autoconf.' && \ echo '# Copyright (C) 1999, 2000, 2001, 2002, 2006, 2007, 2009' && \ echo '# Free Software Foundation, Inc.' && \ echo &&\ echo 'm4_define([m4_PACKAGE_NAME], [GNU Autoconf])' && \ echo 'm4_define([m4_PACKAGE_TARNAME], [autoconf])' && \ echo 'm4_define([m4_PACKAGE_VERSION], [2.71])' && \ echo 'm4_define([m4_PACKAGE_STRING], [GNU Autoconf 2.71])' && \ echo 'm4_define([m4_PACKAGE_BUGREPORT], [bug-autoconf@gnu.org])' && \ echo 'm4_define([m4_PACKAGE_URL], [https://www.gnu.org/software/autoconf/])' && \ echo 'm4_define([m4_PACKAGE_YEAR], [2021])'; \ } > lib/m4sugar/version.m4-t sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|/res/a utoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a420f f5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's|@R ELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from lib/autom4te.c fg.in; do not edit by hand.|g' /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/lib/autom4te.in >lib/autom4te.cfg-t /usr/bin/mkdir -p bin mv lib/m4sugar/version.m4-t lib/m4sugar/version.m4 srcdir=''; \ test -f ./bin/autoheader.in || srcdir=/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/; \ sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|/res /autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | se d 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a42 0ff5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's| @RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autohead er.in; do not edit by hand.|g' ${srcdir}bin/autoheader.in >bin/autoheader.tmp rm -f bin/autoreconf bin/autoreconf.tmp chmod +x bin/autom4te.tmp /usr/bin/mkdir -p bin chmod a-w bin/autom4te.tmp srcdir=''; \ test -f ./bin/autoreconf.in || srcdir=/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/; \ sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|/res /autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | se d 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a42 0ff5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's| @RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autoreco nf.in; do not edit by hand.|g' ${srcdir}bin/autoreconf.in >bin/autoreconf.tmp mv bin/autom4te.tmp bin/autom4te chmod a-w lib/autom4te.cfg-t rm -f bin/autoscan bin/autoscan.tmp chmod +x bin/autoheader.tmp mv -f lib/autom4te.cfg-t lib/autom4te.cfg chmod a-w bin/autoheader.tmp /usr/bin/mkdir -p bin rm -f bin/autoupdate bin/autoupdate.tmp srcdir=''; \ test -f ./bin/autoscan.in || srcdir=/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/; \ sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|/res /autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | se d 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a42 0ff5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's| @RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autoscan .in; do not edit by hand.|g' ${srcdir}bin/autoscan.in >bin/autoscan.tmp mv bin/autoheader.tmp bin/autoheader /usr/bin/mkdir -p bin rm -f bin/ifnames bin/ifnames.tmp chmod +x bin/autoreconf.tmp srcdir=''; \ test -f ./bin/autoupdate.in || srcdir=/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/; \ sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|/res /autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | se d 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a42 0ff5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's| @RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/autoupda te.in; do not edit by hand.|g' ${srcdir}bin/autoupdate.in >bin/autoupdate.tmp chmod a-w bin/autoreconf.tmp /usr/bin/mkdir -p bin mv bin/autoreconf.tmp bin/autoreconf srcdir=''; \ test -f ./bin/ifnames.in || srcdir=/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/; \ sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/usr/bin/perl|g' -e 's|@PERL_FLOCK[@]|yes|g' -e 's|@bindir[@]|/bin|g' -e 's|@pkgdatadir[@]|/res /autoconf|g' -e 's|@prefix[@]|/|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | se d 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/c/users/ieuser/.conan/data/m4/1.4.19/_/_/package/0a42 0ff5c47119e668867cdb51baff0eca1fdb68/bin/m4.exe|g' -e 's|@M4_DEBUGFILE[@]|--debugfile|g' -e 's|@M4_GNU[@]|--gnu|g' -e 's|@AWK[@]|gawk|g' -e 's| @RELEASE_YEAR[@]|2021|g' -e 's|@VERSION[@]|2.71|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from bin/ifnames. in; do not edit by hand.|g' ${srcdir}bin/ifnames.in >bin/ifnames.tmp AUTOM4TE_PERLLIBDIR='/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src'/lib AUTOM4TE_CFG='lib/au tom4te.cfg' bin/autom4te -B ''lib -B '/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src' /lib --language=M4sh /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/tests/wrapper.as -o tests/wrapper.in chmod +x bin/autoscan.tmp chmod a-w bin/autoscan.tmp mv bin/autoscan.tmp bin/autoscan chmod +x bin/autoupdate.tmp if test 'no' != no; then \ am__dir=. am__subdir_includes=''; \ case lib/emacs/autoconf-mode.elc in */*) \ am__dir=`echo 'lib/emacs/autoconf-mode.elc' | sed 's,/[^/]*$,,'`; \ am__subdir_includes="-L $am__dir -L /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/$am__d ir"; \ esac; \ test -d "$am__dir" || /usr/bin/mkdir -p "$am__dir" || exit 1; \ no --batch \ \ $am__subdir_includes -L . -L /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src \ --eval '(if (boundp (quote byte-compile-dest-file-function)) (setq byte-compile-dest-file-function (lambda (_) "lib/emacs/autoconf-mode.elc ")) (defun byte-compile-dest-file (_) "lib/emacs/autoconf-mode.elc") )' \ -f batch-byte-compile '/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/lib/emacs/autoconf- mode.el'; \ else :; fi chmod a-w bin/autoupdate.tmp chmod +x bin/ifnames.tmp mv bin/autoupdate.tmp bin/autoupdate chmod a-w bin/ifnames.tmp if test 'no' != no; then \ am__dir=. am__subdir_includes=''; \ case lib/emacs/autotest-mode.elc in */*) \ am__dir=`echo 'lib/emacs/autotest-mode.elc' | sed 's,/[^/]*$,,'`; \ am__subdir_includes="-L $am__dir -L /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/$am__d ir"; \ esac; \ test -d "$am__dir" || /usr/bin/mkdir -p "$am__dir" || exit 1; \ no --batch \ \ $am__subdir_includes -L . -L /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src \ --eval '(if (boundp (quote byte-compile-dest-file-function)) (setq byte-compile-dest-file-function (lambda (_) "lib/emacs/autotest-mode.elc ")) (defun byte-compile-dest-file (_) "lib/emacs/autotest-mode.elc") )' \ -f batch-byte-compile '/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/lib/emacs/autotest- mode.el'; \ else :; fi mv bin/ifnames.tmp bin/ifnames /usr/bin/mkdir -p lib/autoconf /usr/bin/mkdir -p lib/autoscan lang=`echo 'lib/autoconf/autoconf' | sed 's,.*/,,'` \ && if test $lang = autoconf; then \ lang=autoconf-without-aclocal-m4; \ else :; fi \ && AUTOM4TE_PERLLIBDIR='/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src'/lib AUTOM4TE_CFG='l ib/autom4te.cfg' bin/autom4te -B ''lib -B '/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 /src'/lib \ --language=$lang \ --freeze \ --output=lib/autoconf/autoconf.m4f /usr/bin/mkdir -p lib/autotest echo '# Automatically Generated: do not edit this file' >lib/autoscan/autoscan.list lang=`echo 'lib/autotest/autotest' | sed 's,.*/,,'` \ && if test $lang = autoconf; then \ lang=autoconf-without-aclocal-m4; \ else :; fi \ && AUTOM4TE_PERLLIBDIR='/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src'/lib AUTOM4TE_CFG='l ib/autom4te.cfg' bin/autom4te -B ''lib -B '/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 /src'/lib \ --language=$lang \ --freeze \ --output=lib/autotest/autotest.m4f sed '/^[#]/!q' /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/lib/autoscan/autoscan.pre >>lib /autoscan/autoscan.list ( \ sed -n '/^[^#]/p' /c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/lib/autoscan/autoscan.pre; \ AUTOM4TE_PERLLIBDIR='/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src'/lib AUTOM4TE_CFG='lib/ autom4te.cfg' bin/autom4te -B ''lib -B '/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sr c'/lib --cache '' -M -l autoconf-without-aclocal-m4 \ -t'AN_OUTPUT:$1: $2 $3' \ ) | LC_ALL=C sort >>lib/autoscan/autoscan.list /usr/bin/mkdir -p lib/m4sugar lang=`echo 'lib/m4sugar/m4sugar' | sed 's,.*/,,'` \ && if test $lang = autoconf; then \ lang=autoconf-without-aclocal-m4; \ else :; fi \ && AUTOM4TE_PERLLIBDIR='/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src'/lib AUTOM4TE_CFG='l ib/autom4te.cfg' bin/autom4te -B ''lib -B '/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 /src'/lib \ --language=$lang \ --freeze \ --output=lib/m4sugar/m4sugar.m4f autom4te: error: freezing produced output: autom4te: . . . autom4te: autom4te: make[1]: *** [Makefile:2060: lib/autoconf/autoconf.m4f] Error 1 make[1]: *** Waiting for unfinished jobs.... autom4te: error: freezing produced output: autom4te: . . . autom4te: make[1]: *** [Makefile:2060: lib/m4sugar/m4sugar.m4f] Error 1 make[1]: Leaving directory '/c/Users/IEUser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/build-release' make: *** [Makefile:928: all] Error 2 autoconf/2.71: autoconf/2.71: ERROR: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' build failed autoconf/2.71: WARN: Build folder C:/Users/IEUser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/build-release ERROR: autoconf/2.71: Error in build() method, line 88 autotools.make() ConanException: Error 2 while executing make -j4 ```

Log with tools.microsoft.bash:active=True

Click to expand log ``` $ conan install -r conancenter autoconf/2.71@ -pr:b=default -pr:h=default --build=autoconf Configuration (profile_host): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=12 os=Windows os_build=Windows [options] [build_requires] [env] CONAN_BASH_PATH=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe [conf] tools.microsoft.bash:path=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe tools.microsoft.bash:subsystem=msys2 tools.env.virtualenv:auto_use=True tools.microsoft.bash:active=True Configuration (profile_build): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=12 os=Windows os_build=Windows [options] [build_requires] [env] CONAN_BASH_PATH=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe [conf] tools.microsoft.bash:path=C:/Users/IEUser/scoop/apps/msys2/2022-09-04/usr/bin/bash.exe tools.microsoft.bash:subsystem=msys2 tools.env.virtualenv:auto_use=True tools.microsoft.bash:active=True autoconf/2.71: Forced build from source Installing package: autoconf/2.71 Requirements autoconf/2.71 from 'conancenter' - Cache m4/1.4.19 from 'conancenter' - Cache Packages autoconf/2.71:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build m4/1.4.19:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache Build requirements m4/1.4.19 from 'conancenter' - Cache Build requirements packages m4/1.4.19:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache Installing (downloading, building) binaries... m4/1.4.19: Already installed! m4/1.4.19: Appending PATH environment variable: C:/Users/IEUser/.conan/data/m4/1.4.19/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/bin m4/1.4.19: Appending PATH environment variable: C:/Users/IEUser/.conan/data/m4/1.4.19/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/bin autoconf/2.71: Applying build-requirement: m4/1.4.19 autoconf/2.71: Copying sources to build folder autoconf/2.71: Building your package in C:/Users/IEUser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 autoconf/2.71: Generator txt created conanbuildinfo.txt autoconf/2.71: Calling generate() autoconf/2.71: Aggregating env generators autoconf/2.71: Calling build() autoconf/2.71: Calling: > "/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/src/configure" --prefix=/ --bindir=${prefix}/b in --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=${prefix}/include --datarootdir=${prefix}/res '.' is not recognized as an internal or external command, operable program or batch file. autoconf/2.71: autoconf/2.71: ERROR: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' build failed autoconf/2.71: WARN: Build folder C:/Users/IEUser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/build-release ERROR: autoconf/2.71: Error in build() method, line 87 autotools.configure() ConanException: Error 1 while executing "/c/users/ieuser/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/s rc/configure" --prefix=/ --bindir=${prefix}/bin --sbindir=${prefix}/bin --libdir=${prefix}/lib --includedir=${prefix}/include --oldincludedir=$ {prefix}/include --datarootdir=${prefix}/res ```
SpaceIm commented 1 year ago

AFAIK, autoconf build is broken on Windows due to how m4 was built. But c3i doesn't test windows build of autoconf, only Linux build.

https://lists.gnu.org/archive/html/autoconf/2011-04/msg00022.html

hassec commented 1 year ago

Thanks for the super quick reply @SpaceIm :blush:

Is there already an issue about this that I can track to keep up to date on that topic?

jellespijker commented 1 year ago

as far as I know CONAN_BASH_PATH isn't used anymore and is superseded by tools.microsoft.bash:path

hassec commented 1 year ago

That's true, I just have it in the profile because e.g. libcurl still explicitly check for that path.