Open xahon opened 2 years ago
Hi @xahon - thanks for reporting this issue.
I believe this is cause by Conan being directed to log the output of self.run
to a file (either via the config or an environment variable)
Any chance you could try with that setting disabled to see if it fixes the issue? This part of the boost recipe is not frequently tested as the default option is to build it without Python, apologies for this.
Description
When configuring boost it prints a misleading error message
The contents of _C:.conan\4bef32\1\conanrun.log (line breaks are kept):
The contents of _D:\dev\cmake-build-debug\conanrun.log (line breaks are kept):
It clearly looks to me like a bug with comparison Output is written to the file incorrectly and it fails to compare files with version to each other
Package and Environment Details
Conan profile
[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 compiler=Visual Studio compiler.version=17 build_type=Debug [options] [build_requires] [env]
Click to expand log
``` -- The C compiler identification is MSVC 19.29.30146.0 -- The CXX compiler identification is MSVC 19.29.30146.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Conan: Detected VS runtime: MDd -- Conan: Automatic detection of conan settings from cmake -- Conan: Detected VS runtime: MDd -- Conan: arch was added as an argument. Not using the autodetected one. -- Conan: build_type was added as an argument. Not using the autodetected one. -- Conan: compiler was added as an argument. Not using the autodetected one. -- Conan: compiler.version was added as an argument. Not using the autodetected one. -- Conan: compiler.runtime was added as an argument. Not using the autodetected one. -- Conan: Settings= -s;arch=x86_64;-s;build_type=Debug;-s;compiler=Visual Studio;-s;compiler.version=16;-s;compiler.runtime=MDd -- Conan: checking conan executable -- Conan: Found program C:/Program Files/Python310/Scripts/conan.exe -- Conan: Version found Conan version 1.54.0 -- Conan executing: C:/Program Files/Python310/Scripts/conan.exe install D:/dev/conanfile.py -s arch=x86_64 -s build_type=Debug -s compiler=Visual Studio -s compiler.version=16 -s compiler.runtime=MDd -g=cmake --build=missing DEBUG :conan_api.py [176]: INIT: Using config 'C:\Users\MY_USER\.conan\conan.conf' [2022-11-16 16:48:19,858] DEBUG :tracer.py [156]: CONAN_API: install(path=D:/dev/conanfile.py,name=None,version=None,user=None,channel=None,settings=['arch=x86_64', 'build_type=Debug', 'compiler=Visual Studio', 'compiler.version=16', 'compiler.runtime=MDd'],options=None,env=None,profile_names=None,conf=None,profile_build=ProfileData(profiles=None, settings=None, options=None, env=None, conf=None),remote_name=None,verify=None,manifests=None,manifests_interactive=None,build=['missing'],update=False,generators=['cmake'],no_imports=False,install_folder=None,output_folder=None,lockfile=None,lockfile_out=None,require_overrides=None) [2022-11-16 16:48:19,861] DEBUG :profile_loader.py[120]: PROFILE LOAD: C:\Users\MY_USER\.conan\profiles\default [2022-11-16 16:48:19,864] DEBUG :profile_loader.py[120]: PROFILE LOAD: C:\Users\MY_USER\.conan\profiles\default [2022-11-16 16:48:19,924] Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Debug compiler=Visual Studio compiler.runtime=MDd compiler.version=16 os=Windows os_build=Windows [options] [build_requires] [env] DEBUG :graph_builder.py[462]: GRAPH: new_node: boost/1.80.0 [2022-11-16 16:48:19,957] boost/1.80.0: running "C:/Program Files/Python310/python.exe" -c "from __future__ import print_function; import sys; print('{}.{}'.format(sys.version_info[0], sys.version_info[1]))" DEBUG :graph_builder.py[69]: GRAPH: Time to load deps 0.13899827003479004 [2022-11-16 16:48:20,067] boost/1.80.0: running "C:/Program Files/Python310/python.exe" -c "from __future__ import print_function; import sys; print('{}.{}'.format(sys.version_info[0], sys.version_info[1]))" DEBUG :rest_client_common.py[160]: REST: ping: https://center.conan.io/v1/ping [2022-11-16 16:48:20,170] DEBUG :rest_client.py [58]: REST: Cached capabilities for the remote: ['complex_search', 'checksum_deploy', 'revisions', 'matrix_params'] [2022-11-16 16:48:20,496] DEBUG :rest_client_common.py[188]: REST: get: https://center.conan.io/v1/conans/boost/1.80.0/_/_/packages/47119abdd6a89725943a638087aa72f2784de6f6/download_urls [2022-11-16 16:48:20,498] DEBUG :rest_client_common.py[30]: REST ERROR: