You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following along with Installing GRPC for stack (MacOS) in the README.md, this command seems to have run successfully:
bin/install-macos-nix-grpc.sh
This command fails building grpc-haskell core:
$ stack build --fast
grpc-haskell-core> configure (lib)
grpc-haskell-core> Configuring grpc-haskell-core-0.0.0.0...
grpc-haskell-core> Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5: Missing dependency on a foreign
grpc-haskell-core> library:
grpc-haskell-core>* Missing (or bad) C library: gpr
grpc-haskell-core> This problem can usually be solved by installing the system package that
grpc-haskell-core> provides this library (you may need the "-dev" version). If the library is
grpc-haskell-core> already installed but in a non-standard location then you can use the flags
grpc-haskell-core> --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
grpc-haskell-core> library file does exist, it may contain errors that are caught by the C
grpc-haskell-core> compiler at the preprocessing stage. In this case you can re-run configure
grpc-haskell-core> with the verbosity flag -v3 to see the error messages.
grpc-haskell-core>
swagger2 > configure
swagger2 > [1 of 2] Compiling Main ( /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/Setup.hs, /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/setup/Main.o )
swagger2 > [2 of 2] Compiling StackSetupShim ( /Users/heath/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/setup/StackSetupShim.o )
swagger2 > Linking /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/setup/setup ...
swagger2 > Configuring swagger2-2.4...
swagger2 > build
swagger2 > Preprocessing library for swagger2-2.4..
swagger2 > Building library for swagger2-2.4..
swagger2 > [ 1 of 16] Compiling Data.Swagger.Declare
swagger2 >
swagger2 > /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/src/Data/Swagger/Declare.hs:165:46: warning: [-Wdeprecations]
swagger2 > In the use of type constructor or class ‘ListT’
swagger2 > (imported from Control.Monad.List, but defined in Control.Monad.Trans.List):
swagger2 > Deprecated: "This transformer is invalid on most monads"
swagger2 >|
swagger2 > 165 | instance MonadDeclare d m => MonadDeclare d (ListT m) where
swagger2 >| ^^^^^
swagger2 > [ 2 of 16] Compiling Data.Swagger.Internal.AesonUtils
swagger2 > [ 3 of 16] Compiling Data.Swagger.Internal.TypeShape
swagger2 > [ 4 of 16] Compiling Data.Swagger.Internal.Utils
swagger2 > [ 5 of 16] Compiling Data.Swagger.Internal
swagger2 > [ 6 of 16] Compiling Data.Swagger.Lens
swagger2 > ld: warning: directory not found for option '-L/usr/local/opt/node@10/lib'
swagger2 > [ 7 of 16] Compiling Data.Swagger.SchemaOptions
swagger2 > [ 8 of 16] Compiling Data.Swagger.Internal.ParamSchema
swagger2 > [ 9 of 16] Compiling Data.Swagger.ParamSchema
swagger2 > [10 of 16] Compiling Data.Swagger.Internal.Schema
swagger2 > [11 of 16] Compiling Data.Swagger.Schema
swagger2 > [12 of 16] Compiling Data.Swagger.Operation
swagger2 > [13 of 16] Compiling Data.Swagger.Internal.Schema.Validation
swagger2 >
swagger2 > /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/src/Data/Swagger/Internal/Schema/Validation.hs:36:1: warning: [-Wunused-imports]
swagger2 > The import of ‘Data.List’ is redundant
swagger2 > except perhaps to import instances from ‘Data.List’
swagger2 > To import instances alone, use: import Data.List()
swagger2 >|
swagger2 > 36 | import Data.List (intercalate)
swagger2 >| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swagger2 >
swagger2 > /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/src/Data/Swagger/Internal/Schema/Validation.hs:37:1: warning: [-Wunused-imports]
swagger2 > The import of ‘Data.Monoid’ is redundant
swagger2 > except perhaps to import instances from ‘Data.Monoid’
swagger2 > To import instances alone, use: import Data.Monoid()
swagger2 >|
swagger2 > 37 | import Data.Monoid
swagger2 >| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swagger2 >
swagger2 > /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/src/Data/Swagger/Internal/Schema/Validation.hs:400:12: warning: [-Wunused-matches]
swagger2 > Defined but not used: ‘t’
swagger2 >|
swagger2 > 400 | param@(t, _) -> invalid $ "expected JSON value of type " ++ showType param
swagger2 >| ^
swagger2 >
swagger2 > /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/src/Data/Swagger/Internal/Schema/Validation.hs:416:5: warning: [-Woverlapping-patterns]
swagger2 > Pattern match is redundant
swagger2 > In a case alternative: param@(t, _) -> ...
swagger2 >|
swagger2 > 416 | param@(t, _) -> invalid $ "expected JSON value of type " ++ showType param
swagger2 >| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swagger2 >
swagger2 > /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/src/Data/Swagger/Internal/Schema/Validation.hs:416:12: warning: [-Wunused-matches]
swagger2 > Defined but not used: ‘t’
swagger2 >|
swagger2 > 416 | param@(t, _) -> invalid $ "expected JSON value of type " ++ showType param
swagger2 >| ^
swagger2 >
swagger2 > /private/var/folders/wq/s8mfqyy57kz2m1zy2xzk6hjm0000gn/T/stack55936/swagger2-2.4/src/Data/Swagger/Internal/Schema/Validation.hs:419:16: warning: [-Wname-shadowing]
swagger2 > This binding for ‘type_’ shadows the existing binding
swagger2 > imported from ‘Data.Swagger.Lens’ at src/Data/Swagger/Internal/Schema/Validation.hs:48:1-34
swagger2 > (and originally defined at src/Data/Swagger/Lens.hs:44:1-46)
swagger2 >|
swagger2 > 419 | showType (Just type_, _) = show type_
swagger2 >| ^^^^^
swagger2 > [14 of 16] Compiling Data.Swagger.Schema.Validation
swagger2 > [15 of 16] Compiling Data.Swagger
swagger2 > [16 of 16] Compiling Data.Swagger.Schema.Generator
swagger2 > ld: warning: directory not found for option '-L/usr/local/opt/node@10/lib'
swagger2 > copy/register
swagger2 > Installing library in /Users/heath/.stack/snapshots/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/lib/x86_64-osx-ghc-8.6.5/swagger2-2.4-DBjIJFgpKJ1LBB5it3IKOy
swagger2 > Registering library for swagger2-2.4..
-- While building package grpc-haskell-core-0.0.0.0 using:
/Users/heath/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.4.0.1 configure --user --package-db=clear --package-db=global --package-db=/Users/heath/.stack/snapshots/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/pkgdb --package-db=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/pkgdb --libdir=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/lib --bindir=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/bin --datadir=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/share --libexecdir=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/libexec --sysconfdir=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/etc --docdir=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/doc/grpc-haskell-core-0.0.0.0 --htmldir=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/doc/grpc-haskell-core-0.0.0.0 --haddockdir=/Users/heath/local/gRPC-haskell/.stack-work/install/x86_64-osx/94e4db632795c5ef6c13270b9f45e662e2f61af918f8a653da65c212257e9e43/8.6.5/doc/grpc-haskell-core-0.0.0.0 --dependency=base=base-4.12.0.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=clock=clock-0.8-H1S1zDefxirImaRbI6ITNv --dependency=containers=containers-0.6.0.1 --dependency=managed=managed-1.0.6-6le630bw4rn2FNayf9Wk9z --dependency=sorted-list=sorted-list-0.2.1.0-5XvtUkeS2CE9Im0Nxt0krX --dependency=stm=stm-2.5.0.0 --dependency=transformers=transformers-0.5.6.2 -f-debug --ghc-options -O0 --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
Progress 2/4
Additional Details:
$ stack --version
Version 2.1.3, Git revision 0fa51b9925decd937e4a993ad90cb686f88fa282 (7739 commits) x86_64 hpack-0.31.2
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.5
BuildVersion: 18F203
The text was updated successfully, but these errors were encountered:
Following along with Installing GRPC for stack (MacOS) in the README.md, this command seems to have run successfully:
This command fails building grpc-haskell core:
Additional Details:
The text was updated successfully, but these errors were encountered: