-
Notifications
You must be signed in to change notification settings - Fork 843
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
with-gcc option is not respected #3902
Comments
I've a somewhat similar problem. I'm on MacOS High Sierra, and use Macports-installed GCC-7.3.0. It needs to invoke Xcode assembler. My workaround was to add |
@wdanilo Is this still an issue for you? |
Hi! Heads up about haskell/cabal#7874, which is a PR solving this ticket that @jberryman has kindly just rebased and we are desperate to merge before it bitrots. We need to add a small test for that or at least test the branch on the examples you have. Please help! [edit: was wrong cabal ticket number] |
Please kindly also have a look (and review) at #7900, which provides a test and discusses its result. Last chance to provide feedback before we merge. Thank you! |
@jberryman: thank you for haskell/cabal#7900, which is now merged, which ends the saga! Please, everybody, test and close this issue if it works for you. The feature should be released in cabal 3.8 (no release date planned yet). |
I am closing this issue given the passage of time and the comment about about the resolution of the upstream issue. |
Problem description
I'm building a project with some C code and I want to use a specific GCC version. So I'm invoking stack like
stack --with-gcc /usr/bin/gcc-6.4.0 ...
. It seems that stack just does not respect this setting somehow, because it fails with error:What is more interesting:
package.yaml
cc-options
from--std=c++17
to--version
(a little dirty hack), then I can see in my terminal printedgcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3
which is my system-wide GCC - so clearly stack uses wrong GCC here.localbin
) and I create symlinkgcc -> /usr/bin/gcc-6.4.0
and export it to be on the beginning of$PATH
and then invoke stack, everything works.Stack version
1.6.5
Method of installation
The text was updated successfully, but these errors were encountered: