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

ide-backend fails to build on OSX #304

Open
asamiam opened this issue Aug 2, 2015 · 1 comment
Open

ide-backend fails to build on OSX #304

asamiam opened this issue Aug 2, 2015 · 1 comment
Labels

Comments

@asamiam
Copy link

asamiam commented Aug 2, 2015

While running the command from stack-ide:

stack install stack-ide stack-ide-api ../ide-backend/ide-backend ../ide-backend/ide-backend-server ../ide-backend/ide-backend-common

on OSX 10.10.4, it fails building ide-backend-server-0.10.0:

--  While building package ide-backend-server-0.10.0 using:
  /usr/local/bin/runhaskell -package=Cabal-1.22.2.0 -clear-package-db -global-package-db -package-db=/Users/asaelh/.stack/snapshots/x86_64-osx/nightly-2015-07-29/7.10.1/pkgdb/ /Users/asaelh/Tools/HTools/ide-backend/ide-backend-server/Setup.hs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.2.0/ build
Process exited with code: ExitFailure 1
Logs have been written to: "/Users/asaelh/Tools/HTools/stack-ide/.stack-work/logs/ide-backend-server-0.10.0.log"

building rts...
Running cabal with ["build","--builddir=dist/buildinfo-3838620864207376993"]
Building ide-backend-rts-0.1.3.1...
Preprocessing library ide-backend-rts-0.1.3.1...
The build-tool has reset ENV. --env=std required.

The log file says:

building rts...                                                                                                                                 
Running cabal with ["build","--builddir=dist/buildinfo-3838620864207376993"]                                                                    
Building ide-backend-rts-0.1.3.1...                                                                                                             
Preprocessing library ide-backend-rts-0.1.3.1...                                                                                                
The build-tool has reset ENV. --env=std required.

I'm still figuring out stack, but I was able to build ide-backend-rts using cabal. Running stack install in ide-backend gave this similar error:

Configuring ide-backend-rts-0.1.3.1...                                                                                                          
building rts...                                                                                                                                 
Running cabal with ["build","--builddir=dist/buildinfo-3838620864207376993"]                                                                    
Building ide-backend-rts-0.1.3.1...                                                                                                             
Preprocessing library ide-backend-rts-0.1.3.1...                                                                                                
The build-tool has reset ENV. --env=std required.
@mgsloan
Copy link
Contributor

mgsloan commented Aug 5, 2015

Looks like that message is coming from a homebrew wrapper around gcc: https://github.com/Homebrew/homebrew/blob/master/Library/ENV/4.3/cc#L303

I don't know much about OSX, but if you can make it so that this wrapper isn't used, I imagine it will work.

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

No branches or pull requests

2 participants