-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Error while building on WIndows with Cygwin64 #1493
Comments
@wehostadm As of now oneTBB will support for certain list of compiler which is mentioned in the SYSTEM_REQUIREMENTS.md, you will get the details of the supported compiler and system requirements in it . Nevertheless it would be great if you contribute for the fixes related to Cygwin64 |
@arunparkugan I was able to compile on Cygwin environment thanks to this command :
Adding CMAKE_CXX_FLAGS="-D_GNU_SOURCE" fixes the compilation of the TBB library. However, the link failed with this error :
My computer is in French so the first message "référence indéfinie vers « __TBB_call_with_my_server_info »" means in English : "Undefined reference to __TBB_call_with_my_server_info" Can you help me about that ? And maybe, I could test the library on Cygwin and tell you if everything is okay with these changes :) Thanks |
@wehostadm Unfortunately we cant provide support for the Cygwin64 as it is not in the list of supported compilers of oneTBB. If possible than you can look into the oneAPI base toolkit which includes the compiler and other supported libraries. |
Summary
Hello,
When building with Cygwin64 and Windows 10, I got an error
After investigating, the issue seems to be that the flag __POSIX_VISIBLE is not set to 200112 (stdlib.h file) which define the function posix_memalign.
If I force the define with
#define __POSIX_VISIBLE 200112
, I have another error :Version
oneTBB-2021.13
Environment
Windows 10 - x64
Cygwin64
Steps To Reproduce
Just use cmake last version to generate configuration files and then build using "make"
Any ideas ?
Thanks
The text was updated successfully, but these errors were encountered: