-
Notifications
You must be signed in to change notification settings - Fork 17
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
-stdlib=libc++ should be conditional on compiler and not hardcoded on macOS #120
Comments
This is similar to #116 (which was fixed) but I think it's a separate issue, since the lines you're referring to are in the Makefile from libsass itself: https://github.com/sass/libsass/blob/2102188d21d2b7577c2b3edb12832e90786a2831/Makefile#L112-L116 What compiler are you using? |
@wch It is seen in the log above, GCC 12. P. S. I am aware that latest versions of GCC can be configured to support |
Right, I see it's GCC 12. I'm wondering, though, what does the I also see that you are building for ppc. It may be true that, strictly speaking, the flags in the Makefile should be conditional on the compiler. I'll note, though, that Makefile comes directly from a very widely used (though now dormant) project, libsass, and we would really prefer not to maintain our own fork of the code. There would have to be a very compelling reason for us to do that, and I don't think that supporting a dead platform like PowerPC merits modifying, testing, and maintaining our own version of libsass. |
@wch mp is for Macports. The problem is not PPC-specific though. Most of versions of GCC on Intel won’t support linking to libc++, and even those which do, it is an untested and undesirable behavior. The code gets away with these wrong settings simply because most people use Clang on MacOS. That does not make the code correct though. |
It's seems that #130 might fix this. It'd be much appreciated if you could confirm @barracuda156 by installing the latest dev version -- |
@cpsievert Thank you, I will try this out soon (and also re-run tests to see if that example still fails). |
It is still broken, since it still hardcodes the wrong runtime for C++, and the source uses C++:
|
Why is that flag even hardcoded? Any sane compiler adds its primary runtime libs automatically. I think this is the only R package out of some 3000+ tested so far which has this bug. |
These flags in Makefile should be conditional on compiler and not just OS:
Otherwise build with GCC is broken:
The text was updated successfully, but these errors were encountered: