-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Build failing in OSX 10.10.3 due to issue with thread_local declaration #308
Comments
I found this from Clang's implementation status page:
Do you guys think it's related to this issue? If yes, would it make sense to use Boost's |
GCC is not working btw. Crashes with |
We have already had issues with Maybe in the most recent version of XCode, this has become unnecessary/counter-productive? Maybe the preprocessor define didn't trigger for some reason? |
I don't think the preprocessor is at fault since when I replace I found an article about this - Mac OSX Thread Local Storage. |
For now, I removed |
The consequence is that thread ids are completely broken, which should mess up thread identification in the logger, and thread handling in the job manager. Your article is from 2010 - that was before even C++11 was released. The addition of thread-local storage to the actual C and C++ standard forced apple to go on and support it. The question is, why has it suddenly stopped working? |
If it's a problem with the newer Xcode 6.3, I'd have to downgrade it and try out. In the meantime, I installed GNU GCC (since default gcc & g++ in mac is just a symlink to clang) and tried
|
You can always manually specify the full compiler path like so: |
The problem with gcc is this |
This |
@TheJJ Thanks. You're right. It was set in the environment. The
Now, I've no idea where all this |
These flags come from The problem now is that your compiler doesn't find the c++ headers (namely |
@TheJJ You were right. I did a fresh reinstall of gcc 5.1.0 and configured the search paths correctly and that problem was solved. But then, I got All in all, I got gcc to compile everything fine :) |
Nice! What file caused the |
@TheJJ It was |
As with all standard C++/C symbol names, the standard guarantees that Thus, if you didn't explicitly include one of the headers that guarantee to provide The proper fix would thus be |
C++ doesn't know of |
I did the usual
./configure --mode=debug --compiler=clang
andmake
where it crashes while buildingthread_id.cpp
.OSX version:
10.10.3
Xcode version:
6.3
Clang version:
Here's the error from
make
:I read that this is a Mac bug with the new Xcode 6.3 update. Folks over at ROOT were having similar issue. Seems they've fixed it (commit).
The text was updated successfully, but these errors were encountered: