Open wbehrens-on-gh opened 2 years ago
update: still getting the same error
Are you sure you are using --build all
? it should be --build
I think.
Does it fix your problem if you add -pr:h=path\to\profile
?
@ericLemanissier --build all
and --build
do the same thing and I still get the same error
@WilliamBehrens --build all
is not documented, are you sure it does what you want it to do ?
I had the same error as you, when using -pr:b=default
https://github.com/eirikb/proof-of-conan/runs/5098836941?check_suite_focus=true#step:8:6740 but it was fixed by using -pr:b=default -pr:h=default
https://github.com/eirikb/proof-of-conan/runs/5098982532?check_suite_focus=true#step:8:6921
My exact command is: conan install . -if output\conan -pr:b=path\to\profile -pr:h=path\to\profile --build -s build_type=Release
and I still get the same error. I just find it weird because this issue doesn't come up all the time, I've had instances where after trying the exact same command for a while it'll just suddenly build it.
Is there a config.log file in folder C:\Users\wbehrens.conan\data\automake\1.16.3__\build\3475bd55b91ae904ac96fde0f106a136ab951a5e you could send ?
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1929: loading site script /etc/config.site
| # This file is in public domain.
| # Original author: Karlson2k (Evgeny Grin)
| # Written for MSys2 to help running 'configure' scripts
|
| # Defaults for MSys2/MinGW64-targeted programs
|
| # Set proper selfname on bash and fallback to default name on other shells
| test -n "${BASH_SOURCE}" 2>/dev/null && config_site_me="${BASH_SOURCE[0]##*/}" || config_site_me=config.site
|
| # Set default 'host' to speedup configure
| if test -z "$build_alias"; then
| build_alias="${MSYSTEM_CHOST}" && \
| ${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default build_alias set to $build_alias" >&5
| fi
|
| # Set default 'prefix'
| if ( test -z "$prefix" || test "x$prefix" = "xNONE" ) && \
| ( test -z "$exec_prefix" || test "x$exec_prefix" = "xNONE" ); then
| prefix="${MSYSTEM_PREFIX}" && \
| ${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default prefix set to $prefix" >&5
| fi
config.site:13: default build_alias set to x86_64-w64-mingw32
configure:1971: looking for aux files: compile missing install-sh config.guess config.sub
configure:1984: trying /c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3e48e69237f7f2196164383ef9dedf0f93cbf249/source_subfolder/lib/
configure:2013: /c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3e48e69237f7f2196164383ef9dedf0f93cbf249/source_subfolder/lib/compile found
configure:2013: /c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3e48e69237f7f2196164383ef9dedf0f93cbf249/source_subfolder/lib/missing found
configure:1995: /c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3e48e69237f7f2196164383ef9dedf0f93cbf249/source_subfolder/lib/install-sh found
configure:2013: /c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3e48e69237f7f2196164383ef9dedf0f93cbf249/source_subfolder/lib/config.guess found
configure:2013: /c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3e48e69237f7f2196164383ef9dedf0f93cbf249/source_subfolder/lib/config.sub found
configure:2140: checking whether make supports nested variables
configure:2158: result: yes
configure:2177: checking build system type
configure:2192: result: x86_64-w64-mingw32
configure:2212: checking host system type
configure:2226: result: x86_64-w64-mingw32
configure:2280: checking for a BSD-compatible install
configure:2353: result: /usr/bin/install -c
configure:2364: checking whether build environment is sane
configure:2419: result: yes
configure:2578: checking for a race-free mkdir -p
configure:2622: result: /c/.conan/0dad6f/1/bin/msys64/usr/bin/mkdir -p
configure:2629: checking for gawk
configure:2650: found /c/.conan/0dad6f/1/bin/msys64/usr/bin/gawk
configure:2661: result: gawk
configure:2672: checking whether make sets $(MAKE)
configure:2695: result: yes
configure:2848: checking whether ln -s works
configure:2855: result: no, using cp -pR
configure:2862: checking for perl
configure:2885: found /c/.conan/0dad6f/1/bin/msys64/usr/bin/perl
configure:2897: result: /c/.conan/0dad6f/1/bin/msys64/usr/bin/perl
configure:2909: /c/.conan/0dad6f/1/bin/msys64/usr/bin/perl --version
This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-msys-thread-multi
Copyright 1987-2021, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
configure:2912: $? = 0
configure:2924: checking for tex
configure:2959: result: no
configure:2967: --version </dev/null
/c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3e48e69237f7f2196164383ef9dedf0f93cbf249/source_subfolder/configure: line 2968: --version: command not found
configure:2970: $? = 127
configure:2988: checking for yacc
configure:3009: found /c/.conan/0dad6f/1/bin/msys64/usr/bin/yacc
configure:3020: result: yacc
configure:3036: checking for lex
configure:3057: found /c/.conan/0dad6f/1/bin/msys64/usr/bin/lex
configure:3068: result: lex
configure:3089: checking whether autoconf is installed
configure:3095: autoconf --version
/c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3e48e69237f7f2196164383ef9dedf0f93cbf249/source_subfolder/configure: line 3096: autoconf: command not found
configure:3098: $? = 127
configure:3106: result: no
configure:3109: error: Autoconf 2.65 or better is required.
Please make sure it is installed and in your PATH.
It just can't seem to find it at all, even though I checked the autoconf recipe and it is being added to the path
I also tried making msys2 add autoconf via pacman with the "msys2:additional_packages=autoconf" and it installed and ran but still wasn't detected
I am not able to build swig/4.0.2
because of the issue. There are 23 recipes that currently use automake/1.16.4
, affected by the issue.
My exact command is:
conan install . -if output\conan -pr:b=path\to\profile -pr:h=path\to\profile --build -s build_type=Release
and I still get the same error. I just find it weird because this issue doesn't come up all the time, I've had instances where after trying the exact same command for a while it'll just suddenly build it.
See issue #9048 specifically my comment here: https://github.com/conan-io/conan-center-index/issues/9048#issuecomment-1164431508
Seems to be a problem when you build it via (cd your_program; conan install . --build=missing)
- ie indirectly as a requirement, but works ok if you build directly with conan install automake/etc@
Seems to be a problem when you build it via (cd your_program; conan install . --build=missing) - ie indirectly as a requirement, but works ok if you build directly with conan install automake/etc@
@paulharris I noticed something similar conan-io/conan#11975 were 'tools.microsoft.bash:subsystem' from msys2 is not used by Autotools in it's test_package. Might this be releated?
I guess this could be closed now? automake and autoconf recipes have been upgraded and work for me.
Seems to be a problem when you build it via (cd your_program; conan install . --build=missing) - ie indirectly as a requirement, but works ok if you build directly with conan install automake/etc@
this is still the case when testing that. directly works fine, but not if automake is build in the process for another module.
@prince-chrismc or someone else: is there a difference in conan if a component is build explicitly via a reference or within the build of another component (e.g. with "--build")?
This is part of conan install some-internal-component@ -pr:h armv8 -pr:b default --build -s build_type=Release
(implicite build of automake)
automake/1.16.5: Copying sources to build folder
automake/1.16.5: Building your package in /home/user/.conan/data/automake/1.16.5/_/_/build/258f6f05ca54813b3d7180161753df7f9ccf7e1d
automake/1.16.5: Generator txt created conanbuildinfo.txt
automake/1.16.5: Aggregating env generators
automake/1.16.5: Calling build()
automake/1.16.5: Calling:
> /home/user/.conan/data/automake/1.16.5/_/_/build/258f6f05ca54813b3d7180161753df7f9ccf7e1d/source_subfolder/configure '--datarootdir=/home/user/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d/res' '--prefix=/home/user/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' --target=aarch64-linux-gnu
And this is part of the explicit build from conan install automake/1.16.5@ -pr:h default -pr:b default --build -s build_type=Release
:
automake/1.16.5: Applying build-requirement: autoconf/2.71
automake/1.16.5: Applying build-requirement: m4/1.4.19
automake/1.16.5: Copying sources to build folder
automake/1.16.5: Building your package in /home/user/.conan/data/automake/1.16.5/_/_/build/258f6f05ca54813b3d7180161753df7f9ccf7e1d
automake/1.16.5: Generator txt created conanbuildinfo.txt
automake/1.16.5: Aggregating env generators
automake/1.16.5: Calling build()
automake/1.16.5: Calling:
> /home/user/.conan/data/automake/1.16.5/_/_/build/258f6f05ca54813b3d7180161753df7f9ccf7e1d/source_subfolder/configure '--datarootdir=/home/user/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d/res' '--prefix=/home/user/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include'
Notice these two lines which are missing for implicit building:
automake/1.16.5: Applying build-requirement: autoconf/2.71
automake/1.16.5: Applying build-requirement: m4/1.4.19
and --target=aarch64-linux-gnu
is not passed.
Don't know whether this makes a difference ... but I need some point to start searching. The recipe itself seems to be fine, as the explicit build is working.
Error message:
configure: error: Autoconf 2.65 or better is required.
Please make sure it is installed and in your PATH.
automake/1.16.5: ERROR: Package '258f6f05ca54813b3d7180161753df7f9ccf7e1d' build failed
automake/1.16.5: WARN: Build folder /home/user/.conan/data/automake/1.16.5/_/_/build/258f6f05ca54813b3d7180161753df7f9ccf7e1d
ERROR: automake/1.16.5: Error in build() method, line 88
autotools = self._configure_autotools()
while calling '_configure_autotools', line 72
self._autotools.configure(args=conf_args, configure_dir=self._source_subfolder)
ConanException: Error 1 while executing /home/user/.conan/data/automake/1.16.5/_/_/build/258f6f05ca54813b3d7180161753df7f9ccf7e1d/source_subfolder/configure '--datarootdir=/home/user/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d/res' '--prefix=/home/user/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' --target=aarch64-linux-gnu
is there a difference in conan if a component is build explicitly via a reference or within the build of another component
Is there is! When an reference is the root of the graph changes a few nuance behaviors, for example in 1.x the root can override depencies.
Looking at your command the host profiles are different. Can you please try again with the same host profiles in case there was a typo?
Post the full logs too please 🙏
Looking at the recipe https://github.com/conan-io/conan-center-index/blob/90e2487575fe89e2a05e45c9732ed516b95127cd/recipes/automake/all/conanfile.py#L47-L48
There's some weird legacy code stuff. Which I am not sure about. So I am not sure it's pulldown the dependencies like it should
@prince-chrismc I found a way to easily reproduce this (clear your local cache, before ... I have seen cases when it worked if the cache was not empty ...):
conan install libuuid/1.0.3@ -pr:h default -pr:b default --build -s build_type=Release
Strangely this one is working, although it also requires on automake:
conan install libtool/2.4.7@ -pr:h default -pr:b default --build -s build_type=Release
Default profile:
$ conan profile show default
Configuration for profile default:
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=10
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]
Fails with the same error message:
configure: error: Autoconf 2.65 or better is required.
Please make sure it is installed and in your PATH.
automake/1.16.5:
automake/1.16.5: ERROR: Package '258f6f05ca54813b3d7180161753df7f9ccf7e1d' build failed
automake/1.16.5: WARN: Build folder /home/user/.conan/data/automake/1.16.5/_/_/build/258f6f05ca54813b3d7180161753df7f9ccf7e1d
ERROR: automake/1.16.5: Error in build() method, line 88
autotools = self._configure_autotools()
while calling '_configure_autotools', line 72
self._autotools.configure(args=conf_args, configure_dir=self._source_subfolder)
ConanException: Error 1 while executing /home/user/.conan/data/automake/1.16.5/_/_/build/258f6f05ca54813b3d7180161753df7f9ccf7e1d/source_subfolder/configure '--datarootdir=/home/user/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d/res' '--prefix=/home/user/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' --target=x86_64-linux-gnu
```
$ conan install libuuid/1.0.3@ -pr:h default -pr:b default --build -s build_type=Release
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=10
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=10
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
libuuid/1.0.3: Not found in local cache, looking in remotes...
libuuid/1.0.3: Trying with '-conan-dev-local'...
WARN: Hook 'hook_reduce_conandata.py' not found in /home/user/.conan/hooks folder. Please remove hook from conan.conf or include it inside the hooks folder.
Downloading conanmanifest.txt completed [0.20k]
Downloading conanfile.py completed [2.71k]
Downloading conan_export.tgz completed [0.29k]
Decompressing conan_export.tgz completed [0.00k]
libuuid/1.0.3: Downloaded recipe revision 0
libuuid/1.0.3: Forced build from source
libtool/2.4.7: Not found in local cache, looking in remotes...
libtool/2.4.7: Trying with '-conan-dev-local'...
Downloading conanmanifest.txt completed [0.38k]
Downloading conanfile.py completed [9.55k]
Downloading conan_export.tgz completed [0.29k]
Decompressing conan_export.tgz completed [0.00k]
libtool/2.4.7: Downloaded recipe revision 0
automake/1.16.5: Not found in local cache, looking in remotes...
automake/1.16.5: Trying with '-conan-dev-local'...
Downloading conanmanifest.txt completed [1.58k]
Downloading conanfile.py completed [5.66k]
Downloading conan_export.tgz completed [0.38k]
Decompressing conan_export.tgz completed [0.00k]
automake/1.16.5: Downloaded recipe revision 0
autoconf/2.71: Not found in local cache, looking in remotes...
autoconf/2.71: Trying with '-conan-dev-local'...
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
m4/1.4.19: Not found in local cache, looking in remotes...
m4/1.4.19: Trying with '-conan-dev-local'...
Downloading conanmanifest.txt completed [0.47k]
Downloading conanfile.py completed [5.11k]
Downloading conan_export.tgz completed [0.33k]
Decompressing conan_export.tgz completed [0.00k]
m4/1.4.19: Downloaded recipe revision 0
m4/1.4.19: Forced build from source
autoconf/2.71: Forced build from source
automake/1.16.5: Forced build from source
libtool/2.4.7: Forced build from source
gnu-config/cci.20210814: Not found in local cache, looking in remotes...
gnu-config/cci.20210814: Trying with '-conan-dev-local'...
Downloading conanmanifest.txt completed [0.10k]
Downloading conanfile.py completed [2.51k]
Downloading conan_export.tgz completed [0.28k]
Decompressing conan_export.tgz completed [0.00k]
gnu-config/cci.20210814: Downloaded recipe revision 0
gnu-config/cci.20210814: Forced build from source
Installing package: libuuid/1.0.3
Requirements
libuuid/1.0.3 from '-conan-dev-local' - Downloaded
Packages
libuuid/1.0.3:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Build
Build requirements
autoconf/2.71 from '-conan-dev-local' - Downloaded
automake/1.16.5 from '-conan-dev-local' - Downloaded
gnu-config/cci.20210814 from '-conan-dev-local' - Downloaded
libtool/2.4.7 from '-conan-dev-local' - Downloaded
m4/1.4.19 from '-conan-dev-local' - Downloaded
Build requirements packages
autoconf/2.71:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build
automake/1.16.5:258f6f05ca54813b3d7180161753df7f9ccf7e1d - Build
gnu-config/cci.20210814:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build
libtool/2.4.7:ae99c49d13e74caddafc3dc1668af6b86bdf63db - Build
m4/1.4.19:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Build
Installing (downloading, building) binaries...
gnu-config/cci.20210814: Configuring sources in /home/user/.conan/data/gnu-config/cci.20210814/_/_/source/src
Downloading config-191bcb948f7191c36eefe634336f5fc5c0c4c2be.tar.gz: 0%| | 0.00/75.7k [00:00, ?B/s]gnu-confi gnu-confiDownloading config-191bcb948f7191c36eefe634336f5fc5c0c4c2be.tar.gz completed [75.72k] gnu-config/cci.20210814:
gnu-config/cci.20210814:
gnu-config/cci.20210814: Building your package in /home/user/.conan/data/gnu-config/cci.20210814/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
gnu-config/cci.20210814: Generator txt created conanbuildinfo.txt
gnu-config/cci.20210814: Aggregating env generators
gnu-config/cci.20210814: Calling build()
gnu-config/cci.20210814: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' built
gnu-config/cci.20210814: Build folder /home/user/.conan/data/gnu-config/cci.20210814/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/build
gnu-config/cci.20210814: Generated conaninfo.txt
gnu-config/cci.20210814: Generated conanbuildinfo.txt
gnu-config/cci.20210814: Generating the package
gnu-config/cci.20210814: Package folder /home/user/.conan/data/gnu-config/cci.20210814/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
gnu-config/cci.20210814: Calling package()
gnu-config/cci.20210814: Copied 1 '.guess' file: config.guess
gnu-config/cci.20210814: Copied 1 '.sub' file: config.sub
gnu-config/cci.20210814 package(): Packaged 1 file: COPYING
gnu-config/cci.20210814 package(): Packaged 1 '.sub' file: config.sub
gnu-config/cci.20210814 package(): Packaged 1 '.guess' file: config.guess
gnu-config/cci.20210814: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' created
gnu-config/cci.20210814: Created package revision 84fe970dd17e1d5d5f34965d5e7a47ba
Downloading conan_sources.tgz completed [3.50k]
Decompressing conan_sources.tgz completed [0.00k]
m4/1.4.19: Configuring sources in /home/user/.conan/data/m4/1.4.19/_/_/source/src
Downloading m4-1.4.19.tar.gz completed [2884.64k] m4/1.4.19: 19:
m4/1.4.19:
m4/1.4.19: Copying sources to build folder
m4/1.4.19: Building your package in /home/user/.conan/data/m4/1.4.19/_/_/build/24647d9fe8ec489125dfbae4b3ebefaf7581674c
m4/1.4.19: Generator txt created conanbuildinfo.txt
m4/1.4.19: Calling generate()
m4/1.4.19: Aggregating env generators
m4/1.4.19: Calling build()
m4/1.4.19: Calling:
> "/home/user/.conan/data/m4/1.4.19/_/_/build/24647d9fe8ec489125dfbae4b3ebefaf7581674c/src/configure" '--prefix=/' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
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... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether the compiler is clang... no
checking for compiler option needed when checking for declarations... none
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for pthread.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for dirent.h... yes
checking for stdio_ext.h... yes
checking for getopt.h... yes
checking for sys/cdefs.h... yes
checking for threads.h... yes
checking for iconv.h... yes
checking for limits.h... yes
checking for crtdefs.h... no
checking for wctype.h... yes
checking for langinfo.h... yes
checking for xlocale.h... no
checking for math.h... yes
checking for sys/mman.h... yes
checking for malloc.h... yes
checking for spawn.h... yes
checking for sys/time.h... yes
checking for sys/random.h... yes
checking for sys/wait.h... yes
checking for features.h... yes
checking for arpa/inet.h... yes
checking for semaphore.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for sys/select.h... yes
checking for sys/ioctl.h... yes
checking for sys/uio.h... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking whether to use C++... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
configure: autobuild project... GNU M4
configure: autobuild revision... 1.4.19
configure: autobuild hostname... FE-Z1VQP
configure: autobuild timestamp... 20230313T084148Z
checking for unsigned long long int... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for inline... inline
checking whether
is there a difference in conan if a component is build explicitly via a reference or within the build of another component
Is there is! When an reference is the root of the graph changes a few nuance behaviors, for example in 1.x the root can override depencies.
Looking at your command the host profiles are different. Can you please try again with the same host profiles in case there was a typo?
Post the full logs too please pray
Looking at the recipe
There's some weird legacy code stuff. Which I am not sure about. So I am not sure it's pulldown the dependencies like it should
@prince-chrismc Removing line 47 fixes the problem with autoconf, but I have no idea what that was doing and whether it can be just removed?
But this runs directly into the next problem with m4 within libtool:
configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.
GNU M4 1.4.15 uses a buggy replacement strstr on some systems.
Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.
libtool/2.4.7: ERROR: Package '6fbe64f35b9d3eb3f534cbf1646451f40f718a31' build failed
libtool/2.4.7: WARN: Build folder /home/abcdef/.conan/data/libtool/2.4.7/_/_/build/6fbe64f35b9d3eb3f534cbf1646451f40f718a31/build-release
ERROR: libtool/2.4.7: Error in build() method, line 127
autotools.configure()
ConanException: Error 1 while executing "/home/abcdef/.conan/data/libtool/2.4.7/_/_/build/6fbe64f35b9d3eb3f534cbf1646451f40f718a31/src/configure" '--disable-shared' '--enable-static' '--prefix=/' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/res' '--enable-shared' '--enable-static' '--enable-ltdl-install'
when running conan install libtool
I can see this in the log:
libtool/2.4.7: Applying build-requirement: gnu-config/cci.20210814
libtool/2.4.7: Applying build-requirement: automake/1.16.5
libtool/2.4.7: Applying build-requirement: autoconf/2.71
libtool/2.4.7: Applying build-requirement: m4/1.4.19
while when running conan install libuuid ... --build
and libtool is build in this process , it's only:
libtool/2.4.7: Applying build-requirement: gnu-config/cci.20210814
Why is that happening and is it related to the problem?
Another observation:
Shouldnt't these two commands be equivalent?
conan install automake/1.16.5@ --build-require -pr:h armv8 -pr:b default -s build_type=Release --build automake/1.16.5
conan install automake/1.16.5@ -pr:h default -pr:b default -s build_type=Release --build automake/1.16.5
The first one is failing with the same error mentioned in this issue the second one is successful.
Also ran into the same error today. On macOS this happened to me: Autoconf build successfully but automake wouldn't find it. After some digging I found that all the resulting binaries of autoconf did not have the execution flag set so while in the path, they wouldn't be found as executables. First time such a thing happened to me. (Just got my pipeline to go further by setting all the files in autoc????...???/p/bin to be executable. Although not ideal, at least it fixed the problem for me. Maybe that is related and helps?
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
conan create path\to\automake\ automake/1.16.4@ -pr:b=path\to\profile --build all
Logs (Include/Attach if Applicable)
Click to expand log
``` checking for lex... lex checking whether autoconf is installed... no configure: error: Autoconf 2.65 or better is required. Please make sure it is installed and in your PATH. automake/1.16.3: automake/1.16.3: ERROR: Package '3475bd55b91ae904ac96fde0f106a136ab951a5e' build failed automake/1.16.3: WARN: Build folder C:\Users\wbehrens\.conan\data\automake\1.16.3\_\_\build\3475bd55b91ae904ac96fde0f106a136ab951a5e ERROR: automake/1.16.3: Error in build() method, line 86 autotools = self._configure_autotools() while calling '_configure_autotools', line 70 self._autotools.configure(args=conf_args, configure_dir=self._source_subfolder) ConanException: Error 1 while executing /c/users/wbehrens/.conan/data/automake/1.16.3/_/_/build/3475bd55b91ae904ac96fde0f106a136ab951a5e/source_subfolder/configure --datarootdir=/c/users/wbehrens/.conan/data/automake/1.16.3/_/_/package/3475bd55b91ae904ac96fde0f106a136ab951a5e/res --prefix=/c/users/wbehrens/.conan/data/automake/1.16.3/_/_/package/3475bd55b91ae904ac96fde0f106a136ab951a5e --target=x86_64-windows-msvc ```