Open
Description
I have added grpc-haskell-core as a dependency in 'stack.yaml' as
resolver: lts-16.10
packages:
- .
extra-deps:
- grpc-haskell-core-0.0.0.0@sha256:4bacd90915321750db570042cd05ada01b9b83c79f6bf6b6ccdef1889b383efa,3306
and 'package.yaml' as
dependencies:
- base >= 4.7 && < 5
- libiserv
- grpc-haskell-core
gcc version
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I am getting the following error when building my project.
/usr/local/bin/stack build --exec HaskellGRPC-exe
alex > using precompiled package
clock > using precompiled package
dlist > using precompiled package
happy > using precompiled package
syb > using precompiled package
managed > configure
managed > Configuring managed-1.0.7...
managed > build
sorted-list > configure
managed > Preprocessing library for managed-1.0.7..
managed > Building library for managed-1.0.7..
managed > [1 of 2] Compiling Control.Monad.Managed
sorted-list > Configuring sorted-list-0.2.1.0...
managed > [2 of 2] Compiling Control.Monad.Managed.Safe
sorted-list > build
language-c > configure
sorted-list > Preprocessing library for sorted-list-0.2.1.0..
sorted-list > Building library for sorted-list-0.2.1.0..
sorted-list > [1 of 1] Compiling Data.SortedList
managed > copy/register
managed > Installing library in /Users/arazm/.stack/snapshots/x86_64-osx/0dd8bbad2985284979d70b22219992a47532c58a1136e2de96600474c7ab319b/8.8.3/lib/x86_64-osx-ghc-8.8.3/managed-1.0.7-2wFCwv0rolgGQlt0c4eY4p
sorted-list >
sorted-list > /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/sorted-list-0.2.1.0/Data/SortedList.hs:90:1: warning: [-Wunused-imports]
sorted-list > The import of ‘Data.Semigroup’ is redundant
sorted-list > except perhaps to import instances from ‘Data.Semigroup’
sorted-list > To import instances alone, use: import Data.Semigroup()
sorted-list > |
sorted-list > 90 | import Data.Semigroup (Semigroup (..))
sorted-list > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
managed > Registering library for managed-1.0.7..
language-c > Configuring language-c-0.8.3...
language-c > build
language-c > Preprocessing library for language-c-0.8.3..
sorted-list > copy/register
sorted-list > Installing library in /Users/arazm/.stack/snapshots/x86_64-osx/0dd8bbad2985284979d70b22219992a47532c58a1136e2de96600474c7ab319b/8.8.3/lib/x86_64-osx-ghc-8.8.3/sorted-list-0.2.1.0-D0ZLW18REd74px18A6xpU9
sorted-list > Registering library for sorted-list-0.2.1.0..
language-c > Building library for language-c-0.8.3..
language-c > [ 1 of 39] Compiling Language.C.Analysis.NameSpaceMap
language-c > [ 2 of 39] Compiling Language.C.Data.InputStream
language-c > [ 3 of 39] Compiling Language.C.Data.Name
language-c > [ 4 of 39] Compiling Language.C.Data.Position
language-c > [ 5 of 39] Compiling Language.C.Data.Node
language-c > [ 6 of 39] Compiling Language.C.Data.Ident
language-c > [ 7 of 39] Compiling Language.C.Data.Error
language-c > [ 8 of 39] Compiling Language.C.Data
language-c > [ 9 of 39] Compiling Language.C.Data.RList
language-c > [10 of 39] Compiling Language.C.Parser.Builtin
language-c > [11 of 39] Compiling Language.C.Syntax.Constants
language-c > [12 of 39] Compiling Language.C.Parser.Tokens
language-c > [13 of 39] Compiling Language.C.Parser.ParserMonad
language-c > [14 of 39] Compiling Language.C.Parser.Lexer
language-c > [15 of 39] Compiling Language.C.Syntax.Ops
language-c > [16 of 39] Compiling Language.C.Syntax.AST
language-c > [17 of 39] Compiling Language.C.Syntax
language-c > [18 of 39] Compiling Language.C.Pretty
language-c > [19 of 39] Compiling Language.C.Parser.Parser
language-c > [20 of 39] Compiling Language.C.Parser
language-c > [21 of 39] Compiling Language.C.Analysis.SemRep
language-c > [22 of 39] Compiling Language.C.Analysis.TypeConversions
language-c > [23 of 39] Compiling Language.C.Analysis.SemError
language-c > [24 of 39] Compiling Language.C.Analysis.DefTable
language-c > [25 of 39] Compiling Language.C.Analysis.TypeUtils
language-c > [26 of 39] Compiling Language.C.Analysis.Builtins
language-c > [27 of 39] Compiling Language.C.Analysis.TravMonad
language-c > [28 of 39] Compiling Language.C.Analysis.Export
language-c > [29 of 39] Compiling Language.C.Analysis.Debug
language-c > [30 of 39] Compiling Language.C.Analysis.AstAnalysis[boot]
language-c > [31 of 39] Compiling Language.C.Analysis.DeclAnalysis
language-c > [32 of 39] Compiling Language.C.Analysis.ConstEval
language-c > [33 of 39] Compiling Language.C.Analysis.TypeCheck
language-c > [34 of 39] Compiling Language.C.Syntax.Utils
language-c > [35 of 39] Compiling Language.C.Analysis.AstAnalysis
language-c > [36 of 39] Compiling Language.C.Analysis
language-c > [37 of 39] Compiling Language.C.System.Preprocess
language-c > [38 of 39] Compiling Language.C.System.GCC
language-c > [39 of 39] Compiling Language.C
language-c > copy/register
language-c > Installing library in /Users/arazm/.stack/snapshots/x86_64-osx/0dd8bbad2985284979d70b22219992a47532c58a1136e2de96600474c7ab319b/8.8.3/lib/x86_64-osx-ghc-8.8.3/language-c-0.8.3-4kArQ5LIfBB5px2RmgGRZ
language-c > Registering library for language-c-0.8.3..
c2hs > configure
c2hs > Configuring c2hs-0.28.6...
c2hs > build
c2hs > Preprocessing executable 'c2hs' for c2hs-0.28.6..
c2hs > Building executable 'c2hs' for c2hs-0.28.6..
c2hs >
c2hs > <no location info>: warning: [-Wmissing-home-modules]
c2hs > These modules are needed for compilation but not listed in your .cabal file's other-modules:
c2hs > Paths_c2hs
c2hs > [ 1 of 26] Compiling C2HS.C.Info
c2hs > [ 2 of 26] Compiling C2HS.Config
c2hs > [ 3 of 26] Compiling C2HS.Switches
c2hs > [ 4 of 26] Compiling Control.StateTrans
c2hs >
c2hs > /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/c2hs-0.28.6/src/Control/StateTrans.hs:77:1: warning: [-Wunused-imports]
c2hs > The import of ‘Control.Applicative’ is redundant
c2hs > except perhaps to import instances from ‘Control.Applicative’
c2hs > To import instances alone, use: import Control.Applicative()
c2hs > |
c2hs > 77 | import Control.Applicative (Applicative(..))
c2hs > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
c2hs >
c2hs > /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/c2hs-0.28.6/src/Control/StateTrans.hs:80:1: warning: [-Wdodgy-imports]
c2hs > Module ‘Prelude’ does not export ‘catch’
c2hs > |
c2hs > 80 | import Prelude hiding (catch)
c2hs > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
c2hs > [ 5 of 26] Compiling Data.Errors
c2hs > [ 6 of 26] Compiling Data.Attributes
c2hs > [ 7 of 26] Compiling Control.StateBase
c2hs >
c2hs > /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/c2hs-0.28.6/src/Control/StateBase.hs:59:1: warning: [-Wunused-imports]
c2hs > The import of ‘Control.Applicative’ is redundant
c2hs > except perhaps to import instances from ‘Control.Applicative’
c2hs > To import instances alone, use: import Control.Applicative()
c2hs > |
c2hs > 59 | import Control.Applicative (Applicative(..))
c2hs > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
c2hs >
c2hs > /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/c2hs-0.28.6/src/Control/StateBase.hs:61:1: warning: [-Wunused-imports]
c2hs > The import of ‘Control.Monad.Fail’ is redundant
c2hs > except perhaps to import instances from ‘Control.Monad.Fail’
c2hs > To import instances alone, use: import Control.Monad.Fail()
c2hs > |
c2hs > 61 | import Control.Monad.Fail (MonadFail (..))
c2hs > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
c2hs > [ 8 of 26] Compiling Data.NameSpaces
c2hs > [ 9 of 26] Compiling C2HS.C.Attrs
c2hs > [10 of 26] Compiling C2HS.C.Builtin
c2hs > [11 of 26] Compiling Paths_c2hs
c2hs > [12 of 26] Compiling C2HS.Version
c2hs > [13 of 26] Compiling System.CIO
c2hs > [14 of 26] Compiling Control.State
c2hs > [15 of 26] Compiling C2HS.State
c2hs > [16 of 26] Compiling C2HS.C.Trav
c2hs > [17 of 26] Compiling C2HS.C.Names
c2hs > [18 of 26] Compiling C2HS.C
c2hs > [19 of 26] Compiling Text.Lexers
c2hs > [20 of 26] Compiling C2HS.CHS.Lexer
c2hs > [21 of 26] Compiling C2HS.CHS
c2hs > [22 of 26] Compiling C2HS.Gen.Monad
c2hs > [23 of 26] Compiling C2HS.Gen.Wrapper
c2hs > [24 of 26] Compiling C2HS.Gen.Header
c2hs > [25 of 26] Compiling C2HS.Gen.Bind
c2hs >
c2hs > /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/c2hs-0.28.6/src/C2HS/Gen/Bind.hs:145:1: warning: [-Wunused-imports]
c2hs > The import of ‘C2HS.Switches’ is redundant
c2hs > except perhaps to import instances from ‘C2HS.Switches’
c2hs > To import instances alone, use: import C2HS.Switches()
c2hs > |
c2hs > 145 | import C2HS.Switches (platformSB)
c2hs > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
c2hs > [26 of 26] Compiling Main
c2hs >
c2hs > <no location info>: warning: [-Wmissing-home-modules]
c2hs > These modules are needed for compilation but not listed in your .cabal file's other-modules:
c2hs > Paths_c2hs
c2hs > Linking .stack-work/dist/x86_64-osx/Cabal-3.0.1.0/build/c2hs/c2hs ...
c2hs > copy/register
c2hs > Installing executable c2hs in /Users/arazm/.stack/snapshots/x86_64-osx/0dd8bbad2985284979d70b22219992a47532c58a1136e2de96600474c7ab319b/8.8.3/bin
grpc-haskell-core> configure
grpc-haskell-core> Configuring grpc-haskell-core-0.0.0.0...
grpc-haskell-core> build
grpc-haskell-core> Preprocessing library for grpc-haskell-core-0.0.0.0..
grpc-haskell-core> Building library for grpc-haskell-core-0.0.0.0..
grpc-haskell-core> [ 1 of 21] Compiling Network.GRPC.Unsafe.ChannelArgs
grpc-haskell-core> [ 2 of 21] Compiling Network.GRPC.Unsafe.Constants
grpc-haskell-core> [ 3 of 21] Compiling Network.GRPC.Unsafe.Slice
grpc-haskell-core> [ 4 of 21] Compiling Network.GRPC.Unsafe.Metadata
grpc-haskell-core>
grpc-haskell-core> /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/grpc-haskell-core-0.0.0.0/src/Network/GRPC/Unsafe/Metadata.chs:15:1: warning: [-Wunused-imports]
grpc-haskell-core> The import of ‘Data.Semigroup’ is redundant
grpc-haskell-core> except perhaps to import instances from ‘Data.Semigroup’
grpc-haskell-core> To import instances alone, use: import Data.Semigroup()
grpc-haskell-core> |
grpc-haskell-core> 15 | import Data.Semigroup (Semigroup((<>)))
grpc-haskell-core> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc-haskell-core> [ 5 of 21] Compiling Network.GRPC.Unsafe.ByteBuffer
grpc-haskell-core> [ 6 of 21] Compiling Network.GRPC.Unsafe.Op
grpc-haskell-core> [ 7 of 21] Compiling Network.GRPC.Unsafe.Time
grpc-haskell-core> [ 8 of 21] Compiling Network.GRPC.Unsafe
grpc-haskell-core>
grpc-haskell-core> /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/grpc-haskell-core-0.0.0.0/src/Network/GRPC/Unsafe.chs:17:1: warning: [-Wunused-imports]
grpc-haskell-core> The import of ‘Data.Semigroup’ is redundant
grpc-haskell-core> except perhaps to import instances from ‘Data.Semigroup’
grpc-haskell-core> To import instances alone, use: import Data.Semigroup()
grpc-haskell-core> |
grpc-haskell-core> 17 |
grpc-haskell-core> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc-haskell-core> [ 9 of 21] Compiling Network.GRPC.Unsafe.Security
grpc-haskell-core> [10 of 21] Compiling Network.GRPC.LowLevel.GRPC
grpc-haskell-core> [11 of 21] Compiling Network.GRPC.LowLevel.CompletionQueue.Internal
grpc-haskell-core> [12 of 21] Compiling Network.GRPC.LowLevel.Call
grpc-haskell-core> [13 of 21] Compiling Network.GRPC.LowLevel.CompletionQueue
grpc-haskell-core> [14 of 21] Compiling Network.GRPC.LowLevel.Op
grpc-haskell-core> [15 of 21] Compiling Network.GRPC.LowLevel.Server
grpc-haskell-core> [16 of 21] Compiling Network.GRPC.LowLevel.Client
grpc-haskell-core> [17 of 21] Compiling Network.GRPC.LowLevel.Call.Unregistered
grpc-haskell-core> [18 of 21] Compiling Network.GRPC.LowLevel.CompletionQueue.Unregistered
grpc-haskell-core> [19 of 21] Compiling Network.GRPC.LowLevel.Server.Unregistered
grpc-haskell-core> [20 of 21] Compiling Network.GRPC.LowLevel.Client.Unregistered
grpc-haskell-core> [21 of 21] Compiling Network.GRPC.LowLevel
grpc-haskell-core>
grpc-haskell-core> /private/var/folders/3v/fq9qzjn51zs0whntld4l5jgm0000gp/T/stack-c3987a047313fbe2/grpc-haskell-core-0.0.0.0/cbits/grpc_haskell.c:533:68: error:
grpc-haskell-core> error: too few arguments to function call, expected 3, have 2
grpc-haskell-core> return grpc_metadata_credentials_create_from_plugin(*plugin, NULL);
grpc-haskell-core> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
grpc-haskell-core> |
grpc-haskell-core> 533 | return grpc_metadata_credentials_create_from_plugin(*plugin, NULL);
grpc-haskell-core> | ^
grpc-haskell-core>
grpc-haskell-core> /usr/local/Cellar/grpc/1.30.2/include/grpc/grpc_security.h:452:9: error:
grpc-haskell-core> note: 'grpc_metadata_credentials_create_from_plugin' declared here
grpc-haskell-core> |
grpc-haskell-core> 452 | GRPCAPI grpc_call_credentials* grpc_metadata_credentials_create_from_plugin(
grpc-haskell-core> | ^
grpc-haskell-core> GRPCAPI grpc_call_credentials* grpc_metadata_credentials_create_from_plugin(
grpc-haskell-core> ^
grpc-haskell-core> 1 error generated.
grpc-haskell-core> `gcc' failed in phase `C Compiler'. (Exit code: 1)
-- While building package grpc-haskell-core-0.0.0.0 using:
/Users/arazm/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.0.1.0 build --ghc-options ""
Process exited with code: ExitFailure 1
Metadata
Assignees
Labels
No labels
Activity