gpt4 book ai didi

haskell - Travis 上的 Haskell GHC 8.4.3 有问题吗?

转载 作者:行者123 更新时间:2023-12-01 12:12:33 25 4
gpt4 key购买 nike

我的 Travis builds当他们尝试使用夜间解析器(自 8.4.3 起)进行安装时失败:

$ stack --resolver $RESOLVER --no-terminal --install-ghc test --only-dependencies
Selected resolver: nightly-2018-06-05
Downloading nightly-2018-06-05 build plan ...
Downloaded nightly-2018-06-05 build plan.
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Preparing to download ghc-8.4.3 ...
ghc-8.4.3: download has begun
ghc-8.4.3: 15.21 MiB / 144.83 MiB ( 10.50%) downloaded...
ghc-8.4.3: 37.85 MiB / 144.83 MiB ( 26.13%) downloaded...
ghc-8.4.3: 61.16 MiB / 144.83 MiB ( 42.23%) downloaded...
ghc-8.4.3: 76.60 MiB / 144.83 MiB ( 52.89%) downloaded...
ghc-8.4.3: 91.49 MiB / 144.83 MiB ( 63.17%) downloaded...
ghc-8.4.3: 115.03 MiB / 144.83 MiB ( 79.42%) downloaded...
ghc-8.4.3: 138.27 MiB / 144.83 MiB ( 95.47%) downloaded...
ghc-8.4.3: 144.83 MiB / 144.83 MiB (100.00%) downloaded...
Downloaded ghc-8.4.3.
Unpacking GHC into /home/travis/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ ...
Configuring GHC ...
Installing GHC ...
Received ExitFailure 2 when running
Raw command: /usr/bin/make install
Run from: /home/travis/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/
The command "stack --resolver $RESOLVER --no-terminal --install-ghc test --only-dependencies" failed and exited with 1 during .

当使用 --verbose 运行时,此命令会生成最后几行

2018-06-13 13:52:53.964026: [debug] "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy compiler stage2 "strip" '' '/home/travis/.stack/programs/x86_64-linux/ghc-8.4.3' '/home/travis/.stack/programs/x86_64-linux/ghc-8.4.3/lib/ghc-8.4.3' '/home/travis/.stack/programs/x86_64-linux/ghc-8.4.3/share/doc/ghc-8.4.3/html/libraries' 'v p dyn'
@(src/Stack/Setup.hs:1097:54)
2018-06-13 13:52:57.445300: [debug] Installing library in /home/travis/.stack/programs/x86_64-linux/ghc-8.4.3/lib/ghc-8.4.3/ghc-8.4.3
@(src/Stack/Setup.hs:1097:54)
2018-06-13 13:53:08.362061: [debug] strip:/home/travis/.stack/programs/x86_64-linux/ghc-8.4.3/lib/ghc-8.4.3/ghc-
8.4.3/stFVIxC7: No space left on device
@(src/Stack/Setup.hs:1097:54)
2018-06-13 13:53:08.442841: [debug] make[1]: *** [install_packages] Error 1
@(src/Stack/Setup.hs:1097:54)
2018-06-13 13:53:08.443962: [debug] make: *** [install] Error 2
@(src/Stack/Setup.hs:1097:54)
Received ExitFailure 2 when running
Raw command: /usr/bin/make install
Run from: /home/travis/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/
The command "stack --resolver $RESOLVER --no-terminal --install-ghc test --only-dependencies --verbose" failed and exited with 1 during .

有没有a problem with 8.4.3 on Travis


相关.travis.yml:

sudo: false

language: generic

cache:
directories:
- "$HOME/.stack"

addons:
apt:
packages:
- libgmp-dev

env:
# ... several working resolvers
- $RESOLVER="nightly"

before_install:
# Download and unpack the stack executable -- https://docs.haskellstack.org/en/stable/travis_ci/?highlight=travis
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'

install:
# Build dependencies
- stack --resolver $RESOLVER --no-terminal --install-ghc test --only-dependencies --verbose

script:
# Build the package, its tests, and its docs and run the tests
- stack --resolver $RESOLVER --no-terminal --install-ghc test --haddock --no-haddock-deps
# List components explicitly; ignoring failure
- stack --resolver $RESOLVER exec ghc-pkg list || true

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/33a1859c14283f0dbab6
on_success: change
on_failure: always
on_start: never

最佳答案

转向评论中的答案:问题是 Travis 的磁盘空间不足。这可以通过将 --verbose 标志传递给 Stack 来观察。我的建议是清除缓存并重试。

我也打开了a Stack issue以改善这种情况下的输出。

关于haskell - Travis 上的 Haskell GHC 8.4.3 有问题吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50709844/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com