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
[bug] [clang] Wrong the runtime flag for requirements #9537
Comments
Hi @arttet I'm not able to reproduce the bug. I'm using:
When I execute your file, this is my output:
Is the link to reproduce the steps the good one? or am I missing something? Because the command is not using Clang anymore so I think I'm not doing anything else |
Unfortunately, I can reproduce the bug. It seems you need to use another branch such as |
Yes, it's failing now but the fail is slightly different I guess:
I think we'll have to look into this issue to see what's going on. |
There is another bug related to argument unused during compilation: '-stdlib=libstdc++' |
Hi @arttet I was figuring out what was happening and the problem is due to old "cmake" and "cmake_find_package" generators are not passing well the same link flags for both |
It looks good to me. So, I merged your PR. Could you please give me a couple of days to check other receipts? I'll rewrite my receipts and give feedback about them. |
Unfortunately, there is a case when I cannot build my project. It seems your example uses
I prepared the branch with this case. |
Hi @arttet As I commented in the PR, that problem was related to the use of Now, the error is another one:
It seems a problem with the flags or even the |
Unfortunately, I do not think so. We should compile with
It means If we compile with
I cannot realize why |
When I added
I think there is a bug related to my new |
I was figuring out what was happening. The problem is due to avoiding the |
Oh, very good catch @arttet! Let me have a look at the Conan code because it could be a bug using Clang + runtime flag then. |
Hi @arttet I still have doubts about if Conan is causing the issue. If we look at the output:
There are tons of flags that Conan is not including at all, like |
Hi @arttet I just updated my open PR and it seems to be working now: arttet/reproduce-bugs#3 I was able to dig deeper into the issue (I had to create a minimal |
That workaround looks good. I merged your PR. |
Let's close the issue and if anything happens again we can reopen it for sure. |
Hi @arttet After a long time, I have been figuring out a bit more about this case because I realized that
I thought it was important to share with you the results of this investigation. I have also gathered other interesting links related to this issue: |
If you use
-s compiler.runtime=MT
or-s compiler.runtime=MTd
withClang
on Windows, you will get the error:Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
I have prepared the branch with my changes.
Logs (Executed commands with output) (Include/Attach if Applicable)
The text was updated successfully, but these errors were encountered: