-
Notifications
You must be signed in to change notification settings - Fork 842
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
Stack does not pass parameters given in command line to GHC #4526
Comments
This relate to #4504, right? |
Related - as in "discovered during a battle with the same problem"? Yes. But it points at a different issue with stack, I think. |
Explanation: |
@mouse07410 would you be able to test the PR at #4651? |
I'm not an expert either in Haskell or in it's ecosystem. What would be required (setup-wise) for testing it? I'd appreciate some guidance how to do it without wrecking the existing setup. Thanks! |
Typically I'd recommend |
Well, thankfully, only some packages fail to build. So, there is a chance. I don't recall if I tried to manually rebuild stack (probably not), but I think I did "stack upgrade" at least once (wouldn't bet my life on it though :) I will try what you showed today, and report here. |
Darn... On one machine
My Update And I don't really want to succeed building stack with/for GHC-8.0.2 or such... |
It's because you've skipped the GHC version check
…On Mon, Mar 25, 2019, 2:50 PM Mouse ***@***.***> wrote:
Darn... On one machine stack upgrade ... failed:
. . . . .
Progress 54/169
-- While building package stm-2.4.5.0 using:
/Users/ur20980/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.3 --verbose --builddir=.stack-work/dist/x86_64-osx/Cabal-2.4.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /private/var/folders/c6/lnc_0m093ys8w16md_fm1mnxhtfnj8/T/stack-upgrade72480/stack/.stack-work/logs/stm-2.4.5.0.log
Using Parsec parser
Configuring stm-2.4.5.0...
Dependency array ==0.5.3.0: using array-0.5.3.0
Dependency base (>=4.3 && <4.12) && ==4.12.0.0: using base-4.12.0.0
Warning: the following files would be used as linker inputs, but linking is not being done: /usr/lib/libiconv.dylib
Source component graph: component lib
Configured component graph:
component stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm
include array-0.5.3.0
include base-4.12.0.0
Linked component graph:
unit stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm
include array-0.5.3.0
include base-4.12.0.0
Control.Concurrent.STM=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Concurrent.STM,Control.Concurrent.STM.TArray=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Concurrent.STM.TArray,Control.Concurrent.STM.TBQueue=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Concurrent.STM.TBQueue,Control.Concurrent.STM.TChan=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Concurrent.STM.TChan,Control.Concurrent.STM.TMVar=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Concurrent.STM.TMVar,Control.Concurrent.STM.TQueue=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Concurrent.STM.TQueue,Control.Concurrent.STM.TSem=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Concurrent.STM.TSem,Control.Concurrent.STM.TVar=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Concurrent.STM.TVar,Control.Monad.STM=stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm:Control.Monad.STM
Ready component graph:
definite stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm
depends array-0.5.3.0
depends base-4.12.0.0
Using Cabal-2.4.0.1 compiled by ghc-8.6
Using compiler: ghc-8.6.3
Using install prefix: /Users/ur20980/.cabal
Executables installed in:
/Users/ur20980/.stack/snapshots/x86_64-osx/custom-snapshot-for-building-stack-with-ghc-8.2.2-RcJFh0uLBqbP/8.6.3/bin
Libraries installed in:
/Users/ur20980/.stack/snapshots/x86_64-osx/custom-snapshot-for-building-stack-with-ghc-8.2.2-RcJFh0uLBqbP/8.6.3/lib/x86_64-osx-ghc-8.6.3/stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm
Dynamic Libraries installed in:
/Users/ur20980/.stack/snapshots/x86_64-osx/custom-snapshot-for-building-stack-with-ghc-8.2.2-RcJFh0uLBqbP/8.6.3/lib/x86_64-osx-ghc-8.6.3
Private executables installed in:
/Users/ur20980/.stack/snapshots/x86_64-osx/custom-snapshot-for-building-stack-with-ghc-8.2.2-RcJFh0uLBqbP/8.6.3/libexec/x86_64-osx-ghc-8.6.3/stm-2.4.5.0
Data files installed in:
/Users/ur20980/.stack/snapshots/x86_64-osx/custom-snapshot-for-building-stack-with-ghc-8.2.2-RcJFh0uLBqbP/8.6.3/share/x86_64-osx-ghc-8.6.3/stm-2.4.5.0
Documentation installed in:
/Users/ur20980/.stack/snapshots/x86_64-osx/custom-snapshot-for-building-stack-with-ghc-8.2.2-RcJFh0uLBqbP/8.6.3/doc/stm-2.4.5.0
Configuration files installed in:
/Users/ur20980/.stack/snapshots/x86_64-osx/custom-snapshot-for-building-stack-with-ghc-8.2.2-RcJFh0uLBqbP/8.6.3/etc
No alex found
Using ar found on system at: /opt/local/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 4.2.1 found on system at: /opt/local/bin/clang
Using ghc version 8.6.3 given by user at: /Users/ur20980/.ghcup/bin/ghc
Using ghc-pkg version 8.6.3 given by user at:
/Users/ur20980/.ghcup/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.22.0 found on system at:
/Users/ur20980/.ghcup/bin/haddock
Using happy version 1.19.9 found on system at: /Users/ur20980/.cabal/bin/happy
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/Users/ur20980/.ghcup/ghc/8.6.3/bin/hpc
Using hsc2hs version 0.68.5 found on system at:
/Users/ur20980/.ghcup/ghc/8.6.3/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/Users/ur20980/.cabal/bin/HsColour
No jhc found
Using ld found on system at: /opt/local/bin/ld
Using pkg-config version 0.29.2 found on system at: /opt/local/bin/pkg-config
Using runghc version 8.6.3 found on system at:
/Users/ur20980/.ghcup/bin/runghc
Using strip found on system at: /opt/local/bin/strip
Using tar found on system at: /usr/bin/tar
No uhc found
Component build order: library
/Users/ur20980/.ghcup/bin/ghc-pkg init .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/package.conf.inplace
creating .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build
creating .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/autogen
creating .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/autogen
Preprocessing library for stm-2.4.5.0..
Building library for stm-2.4.5.0..
creating .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build
/Users/ur20980/.ghcup/bin/ghc --make -fbuilding-cabal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi -outputdir .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build -odir .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build -hidir .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build -stubdir .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build -i -i.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build -i. -i.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/autogen -i.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/global-autogen -I.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/autogen -I.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/global-autogen -I.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build -I/opt/local/include -I/usr/local/include -optP-include -optP.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/autogen/cabal_macros.h -this-unit-id stm-2.4.5.0-GfJxMxtntTZ3BxdyiWveBm -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /Users/ur20980/.stack/snapshots/x86_64-osx/custom-snapshot-for-building-stack-with-ghc-8.2.2-RcJFh0uLBqbP/8.6.3/pkgdb -package-db .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/package.conf.inplace -package-id array-0.5.3.0 -package-id base-4.12.0.0 -XHaskell2010 Control.Concurrent.STM Control.Concurrent.STM.TArray Control.Concurrent.STM.TVar Control.Concurrent.STM.TChan Control.Concurrent.STM.TMVar Control.Concurrent.STM.TQueue Control.Concurrent.STM.TBQueue Control.Concurrent.STM.TSem Control.Monad.STM Control.Sequential.STM -Wall /usr/lib/libiconv.dylib -ddump-hi -ddump-to-file '-fdiagnostics-color=always'
[ 1 of 10] Compiling Control.Concurrent.STM.TBQueue ( Control/Concurrent/STM/TBQueue.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Control/Concurrent/STM/TBQueue.o )
[ 2 of 10] Compiling Control.Concurrent.STM.TChan ( Control/Concurrent/STM/TChan.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Control/Concurrent/STM/TChan.o )
[ 3 of 10] Compiling Control.Concurrent.STM.TMVar ( Control/Concurrent/STM/TMVar.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Control/Concurrent/STM/TMVar.o )
[ 4 of 10] Compiling Control.Concurrent.STM.TQueue ( Control/Concurrent/STM/TQueue.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Control/Concurrent/STM/TQueue.o )
[ 5 of 10] Compiling Control.Concurrent.STM.TVar ( Control/Concurrent/STM/TVar.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Control/Concurrent/STM/TVar.o )
[ 6 of 10] Compiling Control.Concurrent.STM.TArray ( Control/Concurrent/STM/TArray.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Control/Concurrent/STM/TArray.o )
[ 7 of 10] Compiling Control.Monad.STM ( Control/Monad/STM.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Control/Monad/STM.o )
/private/var/folders/c6/lnc_0m093ys8w16md_fm1mnxhtfnj8/T/stack72480/stm-2.4.5.0/Control/Monad/STM.hs:34:9: error: Not in scope: ‘always’
|
34 | always,
| ^^^^^^
/private/var/folders/c6/lnc_0m093ys8w16md_fm1mnxhtfnj8/T/stack72480/stm-2.4.5.0/Control/Monad/STM.hs:35:9: error: Not in scope: ‘alwaysSucceeds’
|
35 | alwaysSucceeds,
| ^^^^^^^^^^^^^^
$
My ~/.stack/config.yaml:
stack-config.yaml.txt
<https://github.com/commercialhaskell/stack/files/3003288/stack-config.yaml.txt>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4526 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBB-gdo27S-101PPEC4PeyEHifJAWfks5vaMX_gaJpZM4aLU_i>
.
|
Ok I'll re-enable the check and re-try |
First, I don't quite like the fact that the enabled check saddled my system with GHC-8.2.2.
The complete log:
As I said, some packages - including |
…-building-setup Apply GHC options when building Setup.hs (fixes #4526)
This issue is closed - should I assume the problem it complained about is solved? Or should I expect How should I try the version of
|
I'm not really in a position to help you further. Comments like:
Make it clear that there's not much I can do to address your concerns, and so I'd rather focus my efforts where they'll make a positive impact. I'd recommend getting a binary built on another machine and using that. |
@snoyberg I don't think you understand. In addition to taking up the disk space (a scarce resource at least for me, maybe not for you), every additional downloaded toolchain increases the likelihood of the build process ignoring the global config parameters and doing its own thing instead, especially since those parameters are rather intricate - like what to pass to My experience with using
No problem. I don't seem to be able to use |
Think I'm in the same boat. want to use some args with stack repl main :: IO () no joy. |
@mouse07410, not sure if this is helpful, but there's a difference between |
General summary/comments (optional)
stack
is invoked with--ghc-options -optL=/usr/lib/libiconv.dylib
. This is not passed to GHC, as the log below shows.This problem screws up using
stack
on MacOS with Macports installed.Steps to reproduce
stack install intero --ghc-options -optL=/usr/lib/libiconv.dylib
orstack install hsdev --ghc-options -optL=/usr/lib/libiconv.dylib
, orstack install happy --ghc-options -optL=/usr/lib/libiconv.dylib
~/.stack/config.yaml
(in case it can help):Expected
Successful build.
Actual
Complete build log: hsdev-build.txt
happy-log.txt
Stack version
Method of installation
stack update
The text was updated successfully, but these errors were encountered: