簡體   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