-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
restrict compiler for C++11 and thread-local storage #161
restrict compiler for C++11 and thread-local storage #161
Conversation
It looks like compiler.thread_local_storage will only function properly if the compiler.cxxstandard is set to 2011 or greater? We'd have to add that to the guide. Or we could unhide it from the cxxstandard block, and then it could always work. up to you. |
There is no thread local storage prior to C++11. Asking for it with an earlier C++ standard can't be expected to work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check on line 806 should probably look at ${compiler.thread_local_storage} too.
Older compilers provided by Apple do not support thread-local storage.
I have added a |
It's possible to be using llvm-gcc-4.2 on Lion without the added check. Thanks. |
So be sure to add to the guide then that this command only works if the cxx standard is also set. |
You point about proper documentation is well-taken. However, I would respectively suggest that this command does not only work when Apple even suggests that |
for a c++ port that gets a thread_local error when building, adding "compiler.thread_local_storage yes" will not fix the port unless a cxxstandard is also set >= 2011. yes, that's precise. Just imho in would be less confusing, less tickets, less time wasted, and simpler if it just blacklisted Xcode clangs <800 no matter what, because then it would always work. But I know my "practical just-works" approach bangs heads with you guys sometimes. |
macports/macports-base#161 is included in 2.6.3 release compiler.blacklist no longer necessary
macports/macports-base#161 is included in 2.6.3 release compiler.blacklist no longer necessary
…instead of compiler.blacklist-append {clang < 800} since macports/macports-base#161 is included in 2.6.3 release
…instead of compiler.blacklist as macports/macports-base#161 is included in 2.6.3 release
…instead of compiler.blacklist as macports/macports-base#161 is included in 2.6.3 release
macports/macports-base#161 and macports/macports-base#162 are included in 2.6.3 release
macports/macports-base#161 is included in 2.6.3 release compiler.blacklist no longer necessary
qt4-mac: use compiler.cxx_standard instead of compiler.blacklist py-scipy: macports/macports-base#162 is included in 2.6.3 release uhd: macports/macports-base#161 is included in 2.6.3 release; can use compiler.thread_local_storage instead of compiler.blacklist glfw: use known_fail yes on macOS ≤ 10.5, HTTPS homepage, use compiler.c_standard to cleanup compiler.blacklist while keeping it to check for Xcode clang with stdatomic.h
macports/macports-base#161 is included in 2.6.3 release compiler.blacklist no longer necessary
…instead of compiler.blacklist-append {clang < 800} since macports/macports-base#161 is included in 2.6.3 release
macports/macports-base#161 is included in 2.6.3 release compiler.blacklist no longer necessary
macports/macports-base#161 is included in 2.6.3 release compiler.blacklist no longer necessary
macports/macports-base#161 included in 2.6.3 release
macports/macports-base#161 included in 2.6.3 release
macports/macports-base#161 included in 2.6.3 release
macports/macports-base#161 included in 2.6.3 release
macports/macports-base#161 included in 2.6.3 release
macports/macports-base#161 included in 2.6.3 release
Use compiler.cxx_standard 2011 instead of deprecated cxx11 1.1 portgroup Use compiler.thread_local_storage yes macports/macports-base#161 included in 2.6.3 release
macports/macports-base#161 included in 2.6.3 release
macports/macports-base#161 included in 2.6.3 release
Use compiler.cxx_standard 2011 instead of deprecated cxx11 1.1 portgroup Use compiler.thread_local_storage yes macports/macports-base#161 included in 2.6.3 release
See #214 and https://trac.macports.org/ticket/61418: the original approach here only affected C++11 ports, but should also affect C++14 ports. |
…by revising approach from #161 Fixes: https://trac.macports.org/ticket/61418
nheko, openimageio, openal-soft, poppler: macports/macports-base#214 included in MacPorts 2.7.0 See: https://trac.macports.org/ticket/61418 xaos: compiler blacklist is redundant due to macports/macports-base#161
nheko, openimageio, openal-soft, poppler: macports/macports-base#214 included in MacPorts 2.7.0 See: https://trac.macports.org/ticket/61418 xaos: compiler blacklist is redundant due to macports/macports-base#161
nheko, openimageio, openal-soft, poppler: macports/macports-base#214 included in MacPorts 2.7.0 See: https://trac.macports.org/ticket/61418 xaos: compiler blacklist is redundant due to macports/macports-base#161
See https://lists.macports.org/pipermail/macports-dev/2019-November/thread.html#41503