-
Notifications
You must be signed in to change notification settings - Fork 577
Configure mistakenly thinks that clang doesn't support __attribute__((...)) #11964
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
Comments
From @nwc10When I Configure Perl with clang as the compiler, Configure thinks: $ grep d_attribute config.sh This isn't actually true. The tests are of the form: echo "Checking whether your compiler can handle __attribute__((unused)) ..." >&4 so if any warnings are spotted, it's assumed that it's a bad plan. The clang: warning: argument unused during compilation: '-I /opt/local/include' /opt/local/include exists and contains headers that might be useful soon. I *think* we might need to capture the output with and without the Is this over-engineering? But it would be rather useful to fix this detection somehow (without getting Nicholas Clark |
From @doughera88On Sun, 19 Feb 2012, Nicholas Clark wrote:
[ attributes are undefined because the compiler spits out unrelated
Currently, Configure doesn't test for diff; the usual idiom is to use cmp
Yes, I think so. Some time ago, for a variety of reasons, we started -- |
The RT System itself - Status changed from 'new' to 'open' |
This problem has gone away for clang (tested with clang version 7.0.1-8 on perl v5.33.0-211-g43b79bef34) but is still present for clang++. clang++ emits a warning message: |
Migrated from rt.perl.org#111090 (status was 'open')
Searchable as RT111090$
The text was updated successfully, but these errors were encountered: