Closed exief closed 1 year ago
Hi @exief
Thanks for your question.
Can you please share what you have in your Conan cache <userhome>/.conan/settings.yml
file? It is very surprising that this is raising, because the intel-cc:
setting is definitely in the default Conan settings. The conan config init
doesn't guarantee a fresh default settings, if for some reason it detects something changed in settings.yml
it will not update it, trying to not destroy user changes. If you want to make sure, better remove the file completely, and Conan will generate it from scratch.
hi @memsharded I deleted settings.yml before running conan config init
settings.yml attached below, I added the .txt
extension so GitHub would let me upload the file
settings.yml.txt
Oh, I see you have there the intel-cc:
. I have really no idea how this could happen, unless you have another Conan installation in your machine or something like that. If intel-cc
is in settings.yml
, you should never see that error above. I have no other idea what could be happening...
Looks like there was an extra settings.yml in /var/root/.conan that didn't have intel-cc
removing that file and it works fine now.
Strange how that all of a sudden became an issue specifically with RelWithDebInfo and boost 1.81.0; Debug and Release worked fine and previous versions of boost worked fine
mini3-osx-11-jb:SA-4053 root# conan install . --build missing --settings build_type=RelWithDebInfo --profile $(git rev-parse --abbrev-ref HEAD)
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=RelWithDebInfo
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os_build=Macos
[options]
[build_requires]
[env]
WARN: libcurl/7.79.1: requirement openssl/1.1.1l overridden by your conanfile to openssl/3.0.7
boost/1.81.0: WARN: Package binary is corrupted, removing: 513b908fb6c3a652bb873889733637ecce886edd
conanfile.txt: Installing package
Requirements
benchmark/1.7.0 from 'conancenter' - Cache
boost/1.81.0 from 'conancenter' - Cache
bzip2/1.0.8 from 'conancenter' - Cache
ctre/3.6 from 'conancenter' - Cache
libbacktrace/cci.20210118 from 'conancenter' - Cache
libcurl/7.79.1 from 'conancenter' - Cache
openssl/3.0.7 from 'conancenter' - Cache
sqlite3/3.32.1 from 'conancenter' - Cache
zlib/1.2.13 from 'conancenter' - Cache
Packages
benchmark/1.7.0:e69a3786368b670b22e2542d6d14af41c6d2f074 - Cache
boost/1.81.0:513b908fb6c3a652bb873889733637ecce886edd - Build
bzip2/1.0.8:e98c000c72b869e26abcc7e519effbf2e49adb4c - Cache
ctre/3.6:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
libbacktrace/cci.20210118:6d51450c2a59514630eddfc457cb85671d554dc7 - Cache
libcurl/7.79.1:66d3c720e31201993e1c4e6818d0b895f814162f - Cache
openssl/3.0.7:6671099f1a8967514e86e81675aa4fd5e5b322cb - Cache
sqlite3/3.32.1:f49008296b0c1608167918866e69f6a5ac259b2d - Cache
zlib/1.2.13:6d51450c2a59514630eddfc457cb85671d554dc7 - Cache
Build requirements
b2/4.9.3 from 'conancenter' - Cache
Build requirements packages
b2/4.9.3:46f53f156846659bf39ad6675fa0ee8156e859fe - Cache
Installing (downloading, building) binaries...
b2/4.9.3: Already installed!
benchmark/1.7.0: Already installed!
bzip2/1.0.8: Already installed!
bzip2/1.0.8: Appending PATH environment variable: /var/root/.conan/data/bzip2/1.0.8/_/_/package/e98c000c72b869e26abcc7e519effbf2e49adb4c/bin
ctre/3.6: Already installed!
libbacktrace/cci.20210118: Already installed!
sqlite3/3.32.1: Already installed!
sqlite3/3.32.1: Appending PATH env var with : /var/root/.conan/data/sqlite3/3.32.1/_/_/package/f49008296b0c1608167918866e69f6a5ac259b2d/bin
zlib/1.2.13: Already installed!
boost/1.81.0: Applying build-requirement: b2/4.9.3
boost/1.81.0: WARN: Build folder is dirty, removing it: /var/root/.conan/data/boost/1.81.0/_/_/build/513b908fb6c3a652bb873889733637ecce886edd
boost/1.81.0: Building your package in /var/root/.conan/data/boost/1.81.0/_/_/build/513b908fb6c3a652bb873889733637ecce886edd
boost/1.81.0: Generator txt created conanbuildinfo.txt
boost/1.81.0: Calling generate()
boost/1.81.0: Aggregating env generators
boost/1.81.0: Calling build()
boost/1.81.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in '/var/root/.conan/data/boost/1.81.0/_/_/source/src/tools/build/src/tools/gcc.jam' file.
boost/1.81.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in '/var/root/.conan/data/boost/1.81.0/_/_/source/src/tools/build/src/tools/gcc.jam' file.
boost/1.81.0: WARN: replace_in_file didn't find pattern ' <conditional>@numa' in '/var/root/.conan/data/boost/1.81.0/_/_/source/src/libs/fiber/build/Jamfile.v2' file.
boost/1.81.0: WARN: Patching user-config.jam
boost/1.81.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
boost/1.81.0: WARN:
using zlib : 1.2.13 : <include>"/var/root/.conan/data/zlib/1.2.13/_/_/package/6d51450c2a59514630eddfc457cb85671d554dc7/include" <search>"/var/root/.conan/data/zlib/1.2.13/_/_/package/6d51450c2a59514630eddfc457cb85671d554dc7/lib" <name>z ;
using bzip2 : 1.0.8 : <include>"/var/root/.conan/data/bzip2/1.0.8/_/_/package/e98c000c72b869e26abcc7e519effbf2e49adb4c/include" <search>"/var/root/.conan/data/bzip2/1.0.8/_/_/package/e98c000c72b869e26abcc7e519effbf2e49adb4c/lib" <name>bz2 ;
using "clang-darwin" : : "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -arch x86_64 :
<archiver>"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" <ranlib>"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib" <compileflags>"-I/var/root/.conan/data/libbacktrace/cci.20210118/_/_/package/6d51450c2a59514630eddfc457cb85671d554dc7/include" <linkflags>"-L/var/root/.conan/data/libbacktrace/cci.20210118/_/_/package/6d51450c2a59514630eddfc457cb85671d554dc7/lib" ;
boost/1.81.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
boost/1.81.0: WARN: b2 -q target-os=darwin architecture=x86 address-model=64 binary-format=mach-o abi=sysv --layout=system --user-config=/var/root/.conan/data/boost/1.81.0/_/_/source/src/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-filesystem --with-iostreams --with-log --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure toolset=clang-darwin pch=on -sLIBBACKTRACE_PATH=/var/root/.conan/data/libbacktrace/cci.20210118/_/_/package/6d51450c2a59514630eddfc457cb85671d554dc7 linkflags="-stdlib=libc++" cxxflags="-fPIC -g -stdlib=libc++ -DBOOST_STACKTRACE_ADDR2LINE_LOCATION=/usr/bin/addr2line" install --prefix=/var/root/.conan/data/boost/1.81.0/_/_/package/513b908fb6c3a652bb873889733637ecce886edd -j4 --abbreviate-paths -d0 --debug-configuration --build-dir="/var/root/.conan/data/boost/1.81.0/_/_/build/513b908fb6c3a652bb873889733637ecce886edd/build-relwithdebinfo"
notice: found boost-build.jam at /private/var/root/.conan/data/boost/1.81.0/_/_/source/src/boost-build.jam
notice: loading B2 from /var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/kernel/bootstrap.jam
notice: Searching '/etc' '/var/root' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/kernel' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/util' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/build' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/tools' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/contrib' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in '/etc' '/var/root' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/kernel' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/util' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/build' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/tools' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/contrib' '/var/root/.conan/data/b2/4.9.3/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/.'.
notice: Loading explicitly specified user configuration file:
/var/root/.conan/data/boost/1.81.0/_/_/source/src/tools/build/user-config.jam
notice: Searching '/var/root/.conan/data/boost/1.81.0/_/_/source/src/tools/build' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from '/var/root/.conan/data/boost/1.81.0/_/_/source/src/tools/build'.
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: will use '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' '-isysroot' '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk' '-arch' 'x86_64' for clang-darwin, condition <toolset>clang-12
notice: [zlib] zlib is already configured
notice: [bzip2] bzip is already configured
notice: iostreams: not using lzma compression
notice: iostreams: not using zstd compression
notice: [python-cfg] Configuring python...
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python"
notice: [python-cfg] include path: "/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7"
notice: [python-cfg] library path: "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" "/System/Library/Frameworks/Python.framework/Versions/2.7/lib"
notice: [python-cfg] Checking for NumPy...
notice: [python-cfg] running command 'python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"'
notice: [python-cfg] NumPy enabled
notice: [python-cfg] framework directory is "/System/Library/Frameworks/Python.framework"
Performing configuration checks
- default address-model : 64-bit [1]
- default architecture : x86 [1]
- compiler supports SSE2 : yes [2]
- compiler supports SSE4.1 : yes [2]
- has std::atomic_ref : no [2]
- has statx : no [2]
- has statx syscall : no [2]
- has init_priority attribute : yes [2]
- has stat::st_blksize : no [2]
- has stat::st_mtim : no [2]
- has stat::st_mtimensec : no [2]
- has stat::st_mtimespec : yes [2]
- has stat::st_birthtim : no [2]
- has stat::st_birthtimensec : no [2]
- has stat::st_birthtimespec : yes [2]
- has fdopendir(O_NOFOLLOW) : yes [2]
- has POSIX *at APIs : no [2]
- zlib : yes [3]
- bzip2 : yes [3]
- native atomic int32 supported : yes [2]
- native syslog supported : yes [2]
- pthread supports robust mutexes : no [2]
- has_icu builds : no [2]
- lockfree boost::atomic_flag : yes [2]
- compiler supports SSSE3 : yes [2]
- compiler supports AVX2 : yes [2]
- libbacktrace builds : yes [2]
- addr2line builds : yes [2]
- WinDbg builds : no [2]
- WinDbg builds : no [4]
- WinDbgCached builds : no [2]
- WinDbgCached builds : no [4]
- BOOST_COMP_GNUC >= 4.3.0 : no [2]
[1] clng-12
[2] clng-drwn-12/rls/bst.l-off/bst.l-off/lnk-sttc/pythn-2.7/thrdp-pthrd/thrd-mlt/vsblt-hdn
[3] lnk-sttc
[4] clng-drwn-12/rls/bst.l-off/bst.l-off/bld-no/lnk-sttc/pythn-2.7/thrdp-pthrd/thrd-mlt/vsblt-hdn
Component configuration:
- atomic : building
- chrono : building
- container : building
- context : building
- contract : building
- coroutine : building
- date_time : building
- exception : building
- fiber : not building
- filesystem : building
- graph : not building
- graph_parallel : not building
- headers : not building
- iostreams : building
- json : not building
- locale : not building
- log : building
- math : not building
- mpi : not building
- nowide : not building
- program_options : building
- python : not building
- random : building
- regex : building
- serialization : building
- stacktrace : building
- system : building
- test : building
- thread : building
- timer : building
- type_erasure : building
- url : not building
- wave : not building
boost/1.81.0: Package '513b908fb6c3a652bb873889733637ecce886edd' built
boost/1.81.0: Build folder /var/root/.conan/data/boost/1.81.0/_/_/build/513b908fb6c3a652bb873889733637ecce886edd/build-relwithdebinfo
boost/1.81.0: Generated conaninfo.txt
boost/1.81.0: Generated conanbuildinfo.txt
boost/1.81.0: Generating the package
boost/1.81.0: Package folder /var/root/.conan/data/boost/1.81.0/_/_/package/513b908fb6c3a652bb873889733637ecce886edd
boost/1.81.0: Calling package()
boost/1.81.0: Copied 1 '.txt' file: LICENSE_1_0.txt
boost/1.81.0 package(): Packaged 1 '.txt' file: LICENSE_1_0.txt
boost/1.81.0 package(): Packaged 14939 '.hpp' files
boost/1.81.0 package(): Packaged 148 '.h' files
boost/1.81.0 package(): Packaged 17 files
boost/1.81.0 package(): Packaged 341 '.ipp' files
boost/1.81.0 package(): Packaged 2 '.inc' files: strict_cpp_re.inc, cpp_re.inc
boost/1.81.0 package(): Packaged 28 '.a' files
boost/1.81.0: Package '513b908fb6c3a652bb873889733637ecce886edd' created
boost/1.81.0: Created package revision 27b8649c09204b763ff3d1294c4cf514
openssl/3.0.7: Already installed!
libcurl/7.79.1: Already installed!
conanfile.txt: Generator cmake_find_package created FindBoost.cmake
conanfile.txt: Generator cmake_find_package created FindCURL.cmake
conanfile.txt: Generator cmake_find_package created FindSQLite3.cmake
conanfile.txt: Generator cmake_find_package created Findctre.cmake
conanfile.txt: Generator cmake_find_package created Findbenchmark.cmake
conanfile.txt: Generator cmake_find_package created FindBZip2.cmake
conanfile.txt: Generator cmake_find_package created Findlibbacktrace.cmake
conanfile.txt: Generator cmake_find_package created FindOpenSSL.cmake
conanfile.txt: Generator cmake_find_package created FindZLIB.cmake
conanfile.txt: Generator txt created conanbuildinfo.txt
conanfile.txt: Generator cmake_paths created conan_paths.cmake
conanfile.txt: Aggregating env generators
conanfile.txt: Generated conaninfo.txt
conanfile.txt: Generated graphinfo
/var/root/.conan
Strange how that all of a sudden became an issue specifically with RelWithDebInfo and boost 1.81.0; Debug and Release worked fine and previous versions of boost worked fine
Yes, I don't know why it could happen either. Maybe it was a failed upgrade of the settings.yml
, or using some other different home in that machine (seems a virtual/docker?), or mounting a host folder with different one or something a bit more infra-related.
In any case, happy that it was identified and solved, thanks for reporting!
Environment details
settings.yml was freshly generated by using
conan config init
with no custom settings changesThe error only occurs with the RelWithDebInfo build type, Debug, and Release work fine.
Steps to reproduce
conan install . --build missing --settings build_type=RelWithDebInfo
command (We use--profile $(git rev-parse --abbrev-ref HEAD)
in our builds but any profile will do)Logs
Conan install log:
Profile used: