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

Installing via Stack fails due to missing dist/build/Clang/Internal/FFI.chs.c #61

Closed
rcook opened this issue Aug 16, 2016 · 1 comment
Closed

Comments

@rcook
Copy link

rcook commented Aug 16, 2016

I have a simple Stack project which references LibClang-3.4.0 via an extra-deps entry in stack.yaml. Attempts to build this project fail due to the following compilation error in LibClang:

    Preprocessing library LibClang-3.4.0...
    [ 1 of 25] Compiling Clang.Internal.FFIConstants ( .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Internal/FFIConstants.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Internal/FFIConstants.o )
    [ 2 of 25] Compiling Paths_LibClang   ( .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/autogen/Paths_LibClang.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Paths_LibClang.o )
    [ 3 of 25] Compiling Clang.Internal.BitFlags ( src/Clang/Internal/BitFlags.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Internal/BitFlags.o )
    [ 4 of 25] Compiling Clang.Internal.Monad ( src/Clang/Internal/Monad.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Internal/Monad.o )
    [ 5 of 25] Compiling Clang.Internal.FFI ( .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Internal/FFI.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Internal/FFI.o )
    [ 6 of 25] Compiling Clang.Index      ( src/Clang/Index.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Index.o )
    [ 7 of 25] Compiling Clang.TranslationUnit ( src/Clang/TranslationUnit.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/TranslationUnit.o )
    [ 8 of 25] Compiling Clang.Internal.Comment ( src/Clang/Internal/Comment.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Internal/Comment.o )
    [ 9 of 25] Compiling Clang.Comment    ( src/Clang/Comment.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Comment.o )
    [10 of 25] Compiling Clang.Completion ( src/Clang/Completion.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Completion.o )
    [11 of 25] Compiling Clang.Cursor     ( src/Clang/Cursor.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Cursor.o )
    [12 of 25] Compiling Clang.Debug      ( src/Clang/Debug.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Debug.o )
    [13 of 25] Compiling Clang.Diagnostic ( src/Clang/Diagnostic.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Diagnostic.o )
    [14 of 25] Compiling Clang.File       ( src/Clang/File.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/File.o )
    [15 of 25] Compiling Clang.Location   ( src/Clang/Location.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Location.o )
    [16 of 25] Compiling Clang.Module     ( src/Clang/Module.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Module.o )
    [17 of 25] Compiling Clang.Range      ( src/Clang/Range.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Range.o )
    [18 of 25] Compiling Clang.Remapping  ( src/Clang/Remapping.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Remapping.o )
    [19 of 25] Compiling Clang.String     ( src/Clang/String.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/String.o )
    [20 of 25] Compiling Clang.Token      ( src/Clang/Token.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Token.o )
    [21 of 25] Compiling Clang.Type       ( src/Clang/Type.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Type.o )
    [22 of 25] Compiling Clang.UnsavedFile ( src/Clang/UnsavedFile.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/UnsavedFile.o )
    [23 of 25] Compiling Clang.USR        ( src/Clang/USR.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/USR.o )
    [24 of 25] Compiling Clang.Version    ( src/Clang/Version.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang/Version.o )
    [25 of 25] Compiling Clang            ( src/Clang.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Clang.o )
    <command line>: does not exist: dist/build/Clang/Internal/FFI.chs.c
@chetant
Copy link
Owner

chetant commented Nov 12, 2016

#62 should fix this, please reopen issue if problem still persists

@chetant chetant closed this as completed Nov 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants