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
Windows clang compilation (non-msvc) #295
Comments
Even if I change settings.yml to reflect 12.0, it still does not work for me. |
@AndreyMlashkin We don't have a Docker image for Clang on Windows. Please, check with the author, AndreyMlashkin. |
Haha, wittily. |
I have created a Dockerfile to demonstrate a problem using clang compiler with conan. Dockerfile is a best way to demonstrate problem, as it does not have side effects from 3rd party software and paths defined on your host machine. So, currently it complains for: Click to expand log
|
Ah, sorry, I didn't see you are the author actually 😅 |
@AndreyMlashkin I suggest you moving this question to https://github.com/conan-io/conan/issues, because is related to Conan client itself, not to the official Docker images. Also take a look on conan-io/conan#1839 Regards. |
Relates to conan-io/conan#9295 |
Description of Problem, Request, or Question
Environment Details
Steps to reproduce (Include if Applicable)
clone a repository git@github.com:AndreyMlashkin/windows-clang-conan.git
docker build .
Build logs (Include if Available)
windows-clang-conan> docker build .
Sending build context to Docker daemon 64kB
Step 1/8 : FROM mcr.microsoft.com/windows/servercore:1909
---> 14b4902a3f0f
Step 2/8 : SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue';"]
---> Using cache
---> 21eb6e210729
Step 3/8 : RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
---> Using cache
---> b675b6f86e1a
Step 4/8 : RUN choco install llvm --version 11.0 -y
---> Using cache
---> 1c6bd3ee8d27
Step 5/8 : RUN choco install Ninja -y
---> Running in 6df9cde7e8a3
Chocolatey v0.10.15
Installing the following packages:
Ninja
By installing you accept licenses for the packages.
Progress: Downloading ninja 1.10.2... 100%
ninja v1.10.2 [Approved]
ninja package files install completed. Performing other installation steps.
Extracting C:\ProgramData\chocolatey\lib\ninja\tools\ninja-win_x32.zip to C:\ProgramData\chocolatey\lib\ninja\tools...
C:\ProgramData\chocolatey\lib\ninja\tools
Installed to: 'C:\ProgramData\chocolatey\lib\ninja\tools'
ShimGen has successfully created a shim for ninja.exe
The install of ninja was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\ninja\tools'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Removing intermediate container 6df9cde7e8a3
---> b9538f621a27
Step 6/8 : RUN choco install conan -y
---> Running in c3bf5106354a
Chocolatey v0.10.15
Installing the following packages:
conan
By installing you accept licenses for the packages.
Progress: Downloading conan 1.38.0... 100%
conan v1.38.0 [Approved]
conan package files install completed. Performing other installation steps.
Downloading conan 64 bit
from 'https://github.com/conan-io/conan/releases/download/1.38.0/conan-win-64.exe'
Progress: 100% - Completed download of C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\conan\1.38.0\conan-win-64.exe (15.73 MB).
Download of conan-win-64.exe (15.73 MB) completed.
Hashes match.
Installing conan...
conan has been installed.
conan can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type
refreshenv
).The install of conan was successful.
Software installed to 'C:\Program Files\Conan'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Removing intermediate container c3bf5106354a
---> 4e7bc63c1e3b
Step 7/8 : ADD profile C:\Users\ContainerAdministrator.conan\profiles\default
---> 008458ce4e90
Step 8/8 : RUN conan install zlib/1.2.11@ --build ""
---> Running in 32d581619691
ERROR: Invalid setting '12.0' is not a valid 'settings.compiler.version' value.
Possible values are ['3.3', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9', '4.0', '5.0', '6.0', '7.0', '7.1', '8', '9', '10', '11', '12']
Read "http://docs.conan.io/en/latest/faq/troubleshooting.html#error-invalid-setting"
The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue'; conan install zlib/1.2.11@ --build ""' returned a non-zero code: 1
PS E:\sources\windows-clang-conan> docker build .
Sending build context to Docker daemon 64kB
Step 1/8 : FROM mcr.microsoft.com/windows/servercore:1909
---> 14b4902a3f0f
Step 2/8 : SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue';"]
---> Using cache
---> 21eb6e210729
Step 3/8 : RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
---> Using cache
---> b675b6f86e1a
Step 4/8 : RUN choco install llvm --version 11.0 -y
---> Using cache
---> 1c6bd3ee8d27
Step 5/8 : RUN choco install Ninja -y
---> Using cache
---> b9538f621a27
Step 6/8 : RUN choco install conan -y
---> Using cache
---> 4e7bc63c1e3b
Step 7/8 : ADD profile C:\Users\ContainerAdministrator.conan\profiles\default
---> Using cache
---> 008458ce4e90
Step 8/8 : RUN conan install zlib/1.2.11@ --build ""
---> Running in e577762a20f1
ERROR: Invalid setting '12.0' is not a valid 'settings.compiler.version' value.
Possible values are ['3.3', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9', '4.0', '5.0', '6.0', '7.0', '7.1', '8', '9', '10', '11', '12']
Read "http://docs.conan.io/en/latest/faq/troubleshooting.html#error-invalid-setting"
The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue'; conan install zlib/1.2.11@ --build ""' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered: