conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
948 stars 1.73k forks source link

[package] boost/1.84.0: Failed to build on msys2 ucrt64 due to broken path separators #23192

Open jputcu opened 6 months ago

jputcu commented 6 months ago

Description

I'm trying to upgrade my boost/1.80.0 (also built with conan) to a newer version but never had much success, so I now enabled some more logging.

Package and Environment Details

Conan profile

[settings]
arch=x86_64
build_type=Debug
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++11
compiler.threads=posix
compiler.version=13.2
os=Windows
[options]
boost/*:debug_level=1
boost/*:pch=False
boost/*:without_contract=True
boost/*:without_fiber=True
boost/*:without_iostreams=True
boost/*:without_locale=True
boost/*:without_stacktrace=True
fltk/*:with_gl=False
libzip/*:with_lzma=False
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.microsoft.bash:active=True

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++11
compiler.threads=posix
compiler.version=13.2
os=Windows
[options]
boost/*:pch=False
boost/*:without_contract=True
boost/*:without_fiber=True
boost/*:without_iostreams=True
boost/*:without_locale=True
boost/*:without_stacktrace=True
fltk/*:with_gl=False
libzip/*:with_lzma=False
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.microsoft.bash:active=True

Steps to reproduce

> conan install --require boost/1.84.0 -s build_type=Debug --update --build missing -o "boost/*:debug_level=1"

Logs

C:/msys64/ucrt64/x86_64-w64-mingw32/bin/ar.exe: C:Usersjoris.conan2pbboost6463753365be3bbuild-debugboostbin.v2libsurlbuildgcc-13dbgcxstd-17-isolnk-sttcpch-offthrdp-wn32thrd-mltvsblt-hdnauthority_view.o: No such file or directory
jputcu commented 6 months ago

Because the error appears to be in the url library I disabled it:

boost/*:without_url=True

Now the build succeeded!