Skip to content

Build failure with GHC-9.2.2 #352

Closed
Closed
@pepeiborra

Description

@pepeiborra

Failed to build ghc-lib-parser-9.2.2.20220307.
Build log (
/Users/pepeiborra/.cabal/logs/ghc-9.2.2/ghc-lb-prsr-9.2.2.20220307-2aea9b5e.log
):
Warning: ghc-lib-parser.cabal:136:5: The field "autogen-modules" is available
only since the Cabal specification version 2.0. This field will be ignored.
Warning: ghc-lib-parser.cabal:1:22: Packages with 'cabal-version: 1.12' or
later should specify a specific version of the Cabal spec of the form
'cabal-version: x.y'. Use 'cabal-version: 1.22'.
Configuring library for ghc-lib-parser-9.2.2.20220307..
Preprocessing library for ghc-lib-parser-9.2.2.20220307..
compiling dist/build/GHCi/FFI_hsc_make.c failed (exit code 1)
rsp file was: "dist/build/GHCi/hsc2hscall97811-0.rsp"
command was: /usr/bin/gcc -c dist/build/GHCi/FFI_hsc_make.c -o dist/build/GHCi/FFI_hsc_make.o --target=x86_64-apple-darwin--lflag=--target=x86_64-apple-darwin --target=x86_64-apple-darwin --target=x86_64-apple-darwin -D__GLASGOW_HASKELL__=902 -Ddarwin_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Ddarwin_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iincludes -Ighc-lib/stage0/lib -Ighc-lib/stage0/compiler/build -Icompiler -Idist/build/includes -Idist/build/ghc-lib/stage0/lib -Idist/build/ghc-lib/stage0/compiler/build -Idist/build/compiler -DTHREADED_RTS -DTHREADED_RTS -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/process-1.6.13.2/include -I/Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/unix-2.7.2.2/include -I/Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/time-1.11.1.1/include -I/Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/bytestring-0.11.3.0/include -I/Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/base-4.16.1.0/include -I/Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/ghc-bignum-1.2/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ffi -I/Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/rts-1.0.2/include -I/Users/pepeiborra/.ghcup/ghc/9.2.2/include/
error: In file included from FFI.hsc:9:
In file included from /Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/rts-1.0.2/include/ffi.h:66:
/Users/pepeiborra/.ghcup/ghc/9.2.2/lib/ghc-9.2.2/lib/../lib/x86_64-osx-ghc-9.2.2/rts-1.0.2/include/ffitarget.h:10:10: fatal error: 'ffitarget_x86.h' file not found
#include "ffitarget_x86.h"
         ^~~~~~~~~~~~~~~~~
1 error generated.

cabal: Failed to build ghc-lib-parser-9.2.2.20220307 (which is required by
test:wrapper-test from haskell-language-server-1.6.1.1 and test:func-test from
haskell-language-server-1.6.1.1). See the build log above for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions