Open SpaceIm opened 3 years ago
Probably numpy is simply not installed on your Windows.
pip3 show numpy
It's unrelated, I can build boost with Visual Studio without numpy installed.
After lot of tests (build each component one by one, with its internal dependency graph of course), I've isolated the component which fails with MinGW, it's fiber
. This component has several internal dependencies (direct and transitive: context
, filesystem
, atomic
, chrono
, container
, date_time
, exception
, system
, thread
) but all of them succeed when I build boost with these components but without fiber
.
conan create . boost/1.76.0@ -o boost:without_atomic=False -o boost:without_chrono=False -o boost:without_container=False -o boost:without_context=False -o boost:without_contract=True -o boost:without_coroutine=True -o boost:without_date_time=False -o boost:without_exception=False -o boost:without_fiber=False -o boost:without_filesystem=False -o boost:without_graph=True -o boost:without_iostreams=True -o boost:without_json=True -o boost:without_locale=True -o boost:without_log=True -o boost:without_math=True -o boost:without_nowide=True -o boost:without_program_options=True -o boost:without_random=True -o boost:without_regex=True -o boost:without_serialization=True -o boost:without_stacktrace=True -o boost:without_system=False -o boost:without_test=True -o boost:without_thread=False -o boost:without_timer=True -o boost:without_type_erasure=True -o boost:without_wave=True
And not related to fiber, I've also found an issue when only wave
is enabled (with its internal dependency graph: filesystem
, serialization
and system
): build succeeds but the final test in package_info()
fails because 2 additional libs are generated: boost_chrono
& boost_thread
. Maybe chrono
& thread
should be dependencies of wave
?
I see that boost recipe doesn't set threadapi
flag for b2. Is it not an issue for MinGW with posix thread?
I faced a similar error on windows 11, gcc 11.2.0, Conan 2.1.0, and CMake 3.29, when trying to install boost library, which depends on other libs causing the error, I found a Conan bug with MinGw.
I solve the problem by disabling the build for the libs fiber and stacktrace.
to do add these lines at the end of conanfile.txt file :
.....
.....
[options]
boost/1.70.0:without_fiber=True
boost/1.70.0:without_stacktrace=True
I faced a similar error on windows 11, gcc 11.2.0, Conan 2.1.0, and CMake 3.29, when trying to install boost library, which depends on other libs causing the error, I found a Conan bug with MinGw. I solve the problem by disabling the build for the libs fiber and stacktrace. to do add these lines at the end of conanfile.txt file :
..... ..... [options] boost/1.70.0:without_fiber=True boost/1.70.0:without_stacktrace=True
Also if you use the conanfile.py file, you can add default_options property to the class in it:
class ConanApplication(ConanFile):
default_options = {
"boost*:without_fiber":True,
"boost*:without_stacktrace":True,
}
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 install boost/1.75.0 -b missing
Logs (Include/Attach if Applicable)
Click to expand log
``` boost/1.75.0: Calling build() boost/1.75.0: WARN: Patching user-config.jam boost/1.75.0: WARN: using zlib : 1.2.11 :