-
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] xz_utils/5.2.5: cannot build for Windows gcc x86_64 #7665
Comments
This mingw is quite old. Does it work with the one available on https://winlibs.com/ |
Hello - thanks for the help.
This is indeed where I obtained my tool. I grabbed the most recent (unless my procedure is wrong), and just did it again to make sure. This is the version it installed:
This is where I landed following the links to the binary installer: https://sourceforge.net/projects/mingw-w64/. Did I go the Right Route? |
I should have mentioned I could not figure out how to generate a conan profile for this tool automatically - because it finds my Visual Studio tool first and generates that for the default profile using the |
What? No, download links point to https://github.com/brechtsanders/winlibs_mingw/releases |
Hi - OH! I clicked on the first MinGW-w64 link on the https://winlibs.com/ page and it went to https://www.mingw-w64.org/ which sent me down the wrong path. Now I downloaded and tried: However, same exact error! I was so hopeful! OK, I will try the MSVCRT version instead of UCRT version (because the errors seems related to threads). Let's see. |
I learned if I set an env var CXX=gcc it forced |
I tried |
By the way, here is my conan profile for the gcc 11.2.0 tests I am trying: Conan profile (output of
|
the error messge starts with EDIT: |
SUCCESS! WOW. That seems to be it. Thanks so much! I added this to my script:
Here are the differences I notice after setting CC and CXX to the full path. The ld.exe is indeed different. But, also some settings that must affect the compiler flags are different (because I also no longer get the compiler warning about implicit success case: fail case: |
Add CC & CXX (and eventually LD) in env section of your profile instead. It's important when you have several compilers on your system. |
Hello everyone - thanks again for the help. It looks like I am set. For the record, here is the solution detail: The profile works for Conan profile (output of
|
Hello - A configuration for xz_utils/5.2.5 is not available, and when I try to build it I get a linker error and a corresponding compiler warning. Please help if possible. Thank you.
Detail log provided below. A short summary of the compiler warning and linker error:
[SNIP]
warning: implicit declaration of function ‘_beginthreadex’ [-Wimplicit-function-declaration]
389 | uintptr_t ret = _beginthreadex(NULL, 0, func, arg, 0, NULL);
[SNIP]
error: undefined reference to
mythread_sigmask' error: undefined reference to
_beginthreadex'[SNIP]
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)
$ mkdir testdir && cd testdir
$ type con > conanfile.txt
[requires]
xz_utils/5.2.5
[generators]
cmake
$ mkdir build && cd build
$ conan install .. --build=missing
Logs (Include/Attach if Applicable)
Click to expand log
The text was updated successfully, but these errors were encountered: