Skip to content
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

Dirty fix for Intel compiler compatibility. #575

Closed
wants to merge 2 commits into from

Conversation

cynthia
Copy link

@cynthia cynthia commented Dec 11, 2017

Intel compiler seems to have slightly different behavior when it comes to handling symbols that reference TLS members than what os.h expects. This is by no means a pretty fix, but more of a quick fix to fail compiling entirely when building against the Intel compiler on macOS.

@gabime
Copy link
Owner

gabime commented Dec 11, 2017

so what is the fix exactly? is it removing the “inlne”? changing the variable name?

@cynthia
Copy link
Author

cynthia commented Dec 14, 2017

It takes away the inline due to how Intel compiler deals with TLS variables, and works around a variable name collision. It is not a very pretty fix - I need to look into exactly what icpc does differently for a better fix. I'm strongly suspecting a corner case bug that will need to be worked around, but might as well be wrong.

@gabime
Copy link
Owner

gabime commented Dec 14, 2017

ok. i will wait with the merge until you investigate more.
Also removing inline in header file would cause linking problems

@cynthia
Copy link
Author

cynthia commented Jan 24, 2018

Yeah, this isn't the right patch for this problem. Apologies for the noise. I have a strong hunch this is a compiler bug, but I don't have a good idea to fix this from the back of my head.

@cynthia cynthia closed this Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants