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
C code cannot be compiled with --threads:on #2620
Comments
It turns out that this problem is caused by the GCC version, which is 4.6.3 in my case. The atomic builtins referenced in |
Can this be closed? |
From my point of view: Yes, problem solved by using a more recent GCC. But it probably depends on which GCC versions to target. Not sure what the plans are in general. I remember Araq consider fixing it. GCC 4.6 is still the default for Ubuntu 12.04, which may still be around until 2017 (where support ends), so we can expect others to run into this. I guess the simplest solution is to deprecate GCC 4.6, mention it in the manual, and produce a meaningful error "GCC version too old". The real issue here is probably just the error message, since it is rather difficult to see the actual cause behind these "undeclared" errors. |
I'll leave this open so that we can hopefully improve the error message. |
How would we do that? The error occurs when handling control of compilation over to gcc. |
@Varriount many different options. Off the top of my head: generate a macro in the C code which checks for the presence of |
Closing this in favor of #5992 |
When using
--threads:on
I cannot compile even a simpleecho "Hello World"
. The C compilation fails with:Version: latest devel 26eae7d
This was the true cause of #2619.
The text was updated successfully, but these errors were encountered: