Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Conflict between running cabal manually and using hie #1791

Open
@newhoggy

Description

@newhoggy

I'm getting intermittent build failures like this:

ld: library not found for -lHSshelley-spec-ledger-0.1.0.0-inplace-ghc8.6.5clang: error: linker command failed with exit code 1 (use -v to see invocation)`gcc' failed in phase `Linker'. (Exit code: 1)

And this:

ld: can't open file, errno=2 file '/Users/jky/wrk/iohk/cardano-node/dist-newstyle/build/x86_64-osx/ghc-8.6.5/cardano-prelude-0.1.0.0/build/libHScardano-prelude-0.1.0.0-inplace-ghc8.6.5.dylib'clang: error: linker command failed with exit code 1 (use -v to see invocation)`gcc' failed in phase `Linker'. (Exit code: 1)

And this:

ghc: can't find a package database at /Users/jky/wrk/iohk/cardano-node/dist-newstyle/build/x86_64-osx/ghc-8.6.5/cardano-crypto-praos-2.0.0/package.conf.inplacecabal: Failed to build cardano-crypto-praos-2.0.0 (which is required bytest:cardano-node-test from cardano-node-1.15.0, test:cardano-cli-test fromcardano-cli-1.15.0 and others).

This occurs when I attempt to usecabal andhaskell-ide-engine at the same time.

About 50% of attempts fail. Each time it fails, I get a different error. On a different "in-place" package.

Moreover incremental builds don't work so well as it appears that incremental build artefacts get destroyed and need to get reconfigured and built.

This is my version of cabal:

cabal --versioncabal-install version 3.2.0.0compiled using version 3.2.0.0 of the Cabal library

This is my version ofhie:

$ ~/.cabal/bin/backup/hie-8.6.5 --versionVersion 1.4 x86_64 ghc-8.6.5

hie is build from this commit:a9005b2ba2050bdfdd4438f1d471a3f7985492cd

Work around

Supply an additional--build-dir flag so that my own builds go to a differentdist directory so as to not interfere thecabal processes thathie launches that use the default directorydist-newstyle.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp