-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[package] icu/74.2: won't build with msvc17 from within msys2, without MSVC paths pre-setup #23679
Comments
I guess the base question is: |
I have managed to get this to build with some changes to the conan source code. |
@paulharris May we close this issue as solved? |
Hello @paulharris , I have been testing and was able to replicate the error. This error persists in the later versions of ICU,
|
Hrm I wanted to build with 194 but there is another library that doesn't build with 194. |
Description
I use msys2 as my shell (git-sdk-64), on my M:
I set up a python devenv with a dos prompt first, using Windows python (not msys),
Then in msys terminal, I run
. /m/conan4/devenv/Scripts/activate
This works with most things - let me know if I should be doing things differently.
(I want to build with msvc17 and (in future) clang+msvc)
Now, I have 2 options when running my terminal. I'll just talk about DOS prompts, but I actually use Windows Terminal.
The ICU build works with approach #2, which means the recipe DEPENDS ON the environment of the calling conan command. It SHOULD be using the conan environment setup, like all the other recipes!
So, anyway, without the initial MSVC environment setup,
I then run my big
conan install
for my recipe, and this is what happens when it comes to ICU's build:see log below
NOTE that it complains, and then asks me to check config.log
I checked, the difference is there are MSVC bin paths in the PATH variable in the working example.
Package and Environment Details
Conan profile
======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Debug
compiler=msvc
compiler.cppstd=20
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.version=193
os=Windows
[options]
libcurl/:with_ssl=schannel
mxrap/:shared=True
qt/*:openssl=False
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=20
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows
[options]
libcurl/:with_ssl=schannel
qt/:openssl=False
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
Steps to reproduce
Open MSYS
conan create . --version 74.2 --user test --channel test1 -pr:h theprofileh -pr:b theprofileb
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: