Open Adnn opened 2 years ago
I have the same problem: clang 15.0.2 from llvm.org, boost 1.80. The reason it fails is because boost b2 calls clang with msvc arguments. From C:\.conan\4bba60\1\boost\bin.v2\config.log
:
compile-c-c++ C:\.conan\4bba60\1\boost\bin.v2\libs\config\checks\architecture\clng-win-15.0.\dbg\thrd-mlt\32.obj
"C:/interne/Programme/llvm-15.0.2/bin/clang++.exe" --target=x86_64-pc-windows-msvc "libs\config\checks\architecture\32.cpp" -c -Fo"C:\.conan\4bba60\1\boost\bin.v2\libs\config\checks\architecture\clng-win-15.0.\dbg\thrd-mlt\32.obj" -TP /EHs /GR -fuse-ld=lld /Z7 /Od /Ob0 /W3 /MDd -fPIC -stdlib=libc++ -std=c++20 -DBOOST_ALL_NO_LIB=1 "-I."
clang++: error: no such file or directory: '/EHs'
clang++: error: no such file or directory: '/GR'
clang++: error: no such file or directory: '/Z7'
clang++: error: no such file or directory: '/Od'
clang++: error: no such file or directory: '/Ob0'
clang++: error: no such file or directory: '/W3'
clang++: error: no such file or directory: '/MDd'
clang++: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
...failed updating 1 target...
@michael-brade do you managed to solve this?
no, I didn't. I had to give up on it for now, maybe I'll work on this later this year again.
Package and Environment Details
Conan profile
Steps to reproduce
On Windows, I am trying to build the latest boost from Conan center with a profile using Clang 12 with:
The build fails with error:
And I cannot see any specific output regarding which CU fails (see full log below).
There are however a few surprising messages, such as:
Despite the profile request to build as Cpp 20.
Logs
Click to expand log
Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Debug compiler=clang compiler.cppstd=20 compiler.version=12 os=Windows os_build=Windows [options] [build_requires] *: cmake/3.22.0 [env] CONAN_CMAKE_GENERATOR=Unix Makefiles [conf] tools.cmake.cmaketoolchain:generator=Unix Makefiles boost/1.79.0: WARN: Package binary is corrupted, removing: 03858f2b67b1ec5fb3f1fb9c1c129e716545ff45 Installing package: boost/1.79.0 Requirements boost/1.79.0 from 'conancenter' - Cache bzip2/1.0.8 from 'conancenter' - Cache zlib/1.2.12 from 'conancenter' - Cache Packages boost/1.79.0:03858f2b67b1ec5fb3f1fb9c1c129e716545ff45 - Build bzip2/1.0.8:ff009f72eef7deb9abdcd409fffd0402592d664f - Cache zlib/1.2.12:bd500648356902bb5cb5a6961daa81fc25f3f22c - Cache Build requirements b2/4.8.0 from 'conancenter' - Cache cmake/3.22.0 from 'conancenter' - Cache Build requirements packages b2/4.8.0:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache cmake/3.22.0:01edd76db8e16db9b38c3cca44ec466a9444c388 - Cache Installing (downloading, building) binaries... b2/4.8.0: Already installed! bzip2/1.0.8: Already installed! bzip2/1.0.8: Appending PATH environment variable: C:\Users\adn\.conan\data\bzip2\1.0.8\_\_\package\ff009f72eef7deb9abdcd409fffd0402592d664f\bin cmake/3.22.0: Already installed! cmake/3.22.0: Appending PATH environment variable: C:\Users\adn\.conan\data\cmake\3.22.0\_\_\package\01edd76db8e16db9b38c3cca44ec466a9444c388\bin zlib/1.2.12: Already installed! boost/1.79.0: Applying build-requirement: cmake/3.22.0 boost/1.79.0: Applying build-requirement: b2/4.8.0 boost/1.79.0: WARN: Build folder is dirty, removing it: C:\.conan\29916a\1 boost/1.79.0: Building your package in C:\.conan\29916a\1 boost/1.79.0: Generator txt created conanbuildinfo.txt boost/1.79.0: Aggregating env generators boost/1.79.0: Calling build() WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\.conan\a06fea\1\source_subfolder\boost\stacktrace\detail\libbacktrace_impls.hpp' file. WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\.conan\a06fea\1\source_subfolder\boost\stacktrace\detail\libbacktrace_impls.hpp' file. WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:\.conan\a06fea\1\source_subfolder\tools\build\src\tools\gcc.jam' file. WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\.conan\a06fea\1\source_subfolder\tools\build\src\tools\gcc.jam' file. WARN: replace_in_file didn't find pattern '