Skip to content
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

configuring gcc path seems not to work as intended for dependencies #2370

Closed
simonjantsch opened this issue Jul 12, 2016 · 4 comments
Closed

Comments

@simonjantsch
Copy link

simonjantsch commented Jul 12, 2016

Pullrequest #2264 added an option to specify which gcc should be used by stack when building a project. I tried this with a project that requires a specific gcc version to build a dependency and it still seems to use the global gcc in $PATH.

The project I'm trying to build is: https://github.com/simonjantsch/vvt

When running stack clean; stack build --verbose --cabal-verbose I get the output in the attached file. bindings-llvm is the relevant dependency.
stack.txt

When manually changing the gcc in path to the right one (gcc version 4.9.3 works for instance) the project compiles.

@sjakobi
Copy link
Member

sjakobi commented Jul 14, 2016

Which gcc version is the build supposed to fail with?

@sjakobi
Copy link
Member

sjakobi commented Jul 14, 2016

When using --with-gcc /usr/bin/gcc-4.8 I already get a compile failure for bindings-llvm's custom Setup.hs which, so I suspect, isn't compatible with Cabal-1.24… :(

@sjakobi
Copy link
Member

sjakobi commented Jul 16, 2016

Ok, using Cabal-1.22.5.0 I get a bit further until

    Configuring bindings-llvm-0.1...
    Warning: Instead of 'ghc-options: -cpp -cpp' use 'extensions: CPP CPP'
    setup: The program 'llvm-config' is required but it could not be found.

I can see though that the --with-gcc option is correctly passed to the various setup configure calls, so I'm currently assuming that some other issue is at play in either bindings-llvm or vvt.

@simonjantsch: Can you build your project with cabal --with-gcc and the "wrong" gcc on the PATH?

I'd also be more convinced of a problem with stack if someone could demonstrate the problem on a different project that doesn't use bindings-llvm.

@mgsloan mgsloan added this to the Support milestone Jul 19, 2016
@simonjantsch
Copy link
Author

@Sjakob After looking at this again I believe your right, this has something to do with the llvm-config invoking gcc. Too bad, I was hoping for this to fix my issue. I'm closing the issue, thanks for the support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants