繁体   English   中英

Travis上有Haskell GHC 8.4.3的问题吗?

[英]Is there an issue with Haskell GHC 8.4.3 on Travis?

当他们尝试使用夜间解析器(自8.4.3)安装时,我的Travis构建失败:

$ 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 .

特拉维斯的8.4.3问题吗?


相关的.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可以观察到这一点。 我的建议是清除缓存并再试一次。

在这种情况下,我还打开了一个Stack问题来改善输出。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM