Open jhabermas opened 2 years ago
@jhabermas, this happened to me as well. I noticed that b2.exe was missing in the C:\...\.conan\data\b2\4.8.0\_\_\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187\bin
folder. It turns out Microsoft Defender quarantined the file
I think this is very likely what happened to you too. I have reinstalled b2/4.8.0@ and scanned it explicitly with Microsoft Defender and it no longer flags and quarantines the file. Don't know why it has changed its mind.
If you could confirm this is what happens to you then perhaps some furher security scans are in order and then maybe this issue can be closed?
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)
Logs (Include/Attach if Applicable)
Installing boost fails with when using Visual Studio 2022 with `'b2.exe' is not recognized as an internal or external command, operable program or batch file.` error. This can also be reproduced on Azure `windows-2022` build agent. If VS 2019 is installed, changing `compiler.version` to 16 works fine. A workaround is to install b2 manually and add it to the path, but it shouldn't be required.
``` Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=17 os=Windows os_build=Windows [options] [build_requires] [env] boost/1.79.0: Forced build from source Installing package: boost/1.79.0 Requirements boost/1.79.0 from 'conancenter' - Cache bzip2/1.0.8 from 'fuel3d' - Cache zlib/1.2.12 from 'fuel3d' - Cache Packages boost/1.79.0:9122dbc53b72d49447592b7c1471ee184105ccbd - Build bzip2/1.0.8:53b5fd22ba061620078deefdae9a437c5f693201 - Cache zlib/1.2.12:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache Build requirements b2/4.8.0 from 'fuel3d' - Cache Build requirements packages b2/4.8.0:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - 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: E:\conan\bzip2\1.0.8\_\_\package\53b5fd22ba061620078deefdae9a437c5f693201\bin zlib/1.2.12: Already installed! boost/1.79.0: Applying build-requirement: b2/4.8.0 boost/1.79.0: WARN: Build folder is dirty, removing it: E:\.conan\b1fb83\1 boost/1.79.0: Building your package in E:\.conan\b1fb83\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 'E:\.conan\87c6ea\1\source_subfolder\boost\stacktrace\detail\libbacktrace_impls.hpp' file. WARN: replace_in_file didn't find pattern '/* static __thread */' in 'E:\.conan\87c6ea\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 'E:\.conan\87c6ea\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 'E:\.conan\87c6ea\1\source_subfolder\tools\build\src\tools\gcc.jam' file. WARN: replace_in_file didn't find pattern '