-
Notifications
You must be signed in to change notification settings - Fork 55
error: invalid argument -std=gnu++<snip> not allowed with C #410
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
Gentoo is elevating the warning to an error, that's on them |
We're definitely not. It's Clang that's bailing out. Note that in this case, it's not just saying "unknown argument, treating as an error" (which Clang can do and there's a way to suppress it), it's actually saying "-std is valid for C but I have no idea what value you just told me to use" (because C++ happens to have a -std too). In this case, it's not an unknown option causing the failure, but garbage ("c++0x", wrt a C compiler) passed into an argument which happens to be valid in C (-std). But it's always invalid to pass CXXFLAGS to a C compiler anyway. For example, -Werror=odr is completely valid for C++, and means nothing for C. So, even if we were, it'd be something to fix (if minor). Could you elaborate on what you mean please? |
it's building fine for us on clang so it's (as last time and as usual with Gentoo) something they're doing |
The flags On a fresh clone of libsass-python:
It's just that GCC doesn't bail out on this, but Clang does. setup.py doesn't treat Could you show me where e.g. your CI builds with Clang so I can try spot what the difference is? I looked at Azure but I couldn't spot the right part. Thanks! |
the macos builds run on clang for example |
The MacOS builds use |
Would be cool if developers actually listened to maintainers instead of blaming them for reporting errors :) |
would be cool if package maintainers actually maintained instead of throwing things over the fence -- our builds are green |
Passing checks is only sufficient if checks encompass the whole scope. If you don't care about clang on Linux, just say that instead. |
What is this supposed to mean? The package maintainers are maintaining it, in fact the problem has already been fixed in the Gentoo repository. This Issue is an attempt to bring the fix to the rest of Linux, hardly "throwing things over the fence", I would appreciate a more constructive attitude from your side. |
I don't see a patch? |
You can find the sed command we use to fix this issue in the bug report I linked in my first post. But since you asked so nicely I went ahead and put it in a patch form for you:
|
setup.py
seems to apply C++ flags to C code, leading to compile failures:dev-python libsass-python-0.22.0 20221114-220613.log
Originally reported here: https://bugs.gentoo.org/881339
The text was updated successfully, but these errors were encountered: