Add version check when building intel-tbb with clang#13893
Add version check when building intel-tbb with clang#13893adamjstewart merged 2 commits intospack:developfrom
Conversation
|
Is this the case for both Clang and Apple Clang? Maybe it's only for Apple Clang which masks itself as GCC? |
|
@adamjstewart I'm actually not sure about Apple Clang. I don't have or use a mac, so I've not tested it there. My builds have all been on Linux. I should have been more specific when I said "incorrectly causes a mismatch in C++ features resulting in a link error" as it doesn't always result in a link error in the client application- it depends on which features of TBB you are using. Indeed, TBB will build just fine under clang, but produce incorrect headers and libraries as compared to the compiler's actual C++ support. The problem stems from linux.inc:58 which used to read which set which returns the full dotted-decimal version containing major, minor, and patch. Continuing down the chain, |
|
Flake8: |
|
@hainest Did you actually try building the new versions in #13891 ? For me, applying patch Between 2019.4 and 2019.5, TBB reworked I think the following patch for @chissg Could you check that versions >= 2019.5 are Ok without It seems to build/install cleanly for me, but I didn't really |
|
Let's fix the patch in another PR. Either one of you are free to submit it. |
|
Ok, it's more complicated than simply disabling the cmake patch. @chissg Would you like to help us out here? |
Clang builds incorrectly determine GCC version which in turn incorrectly causes a mismatch in C++ features resulting in a link error. This also means that clang builds require a gcc compiler to work correctly (this has always been the case). See uxlfoundation/oneTBB#147 for details.