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

haskell.packages.ghcjs.doctest build failure #47437

Closed
tg-x opened this issue Sep 27, 2018 · 4 comments
Closed

haskell.packages.ghcjs.doctest build failure #47437

tg-x opened this issue Sep 27, 2018 · 4 comments

Comments

@tg-x
Copy link
Member

tg-x commented Sep 27, 2018

Issue description

Building haskell.packages.ghcjs.doctest fails both on master and release-18.09 branch

Steps to reproduce

Build output on master branch rev f5f9625:

~/nixpkgs [git:master] $ nix-build -A haskell.packages.ghcjs.doctest

these derivations will be built:
  /nix/store/6mhf5hx619b4hbq4fihw0rjvsaq73si0-doctest-0.16.0.drv
building '/nix/store/6mhf5hx619b4hbq4fihw0rjvsaq73si0-doctest-0.16.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/7ppq4yrnj1xmdx3gnk855vn9yjmdr2ss-ghcjs-8.4.0.1.
ignoring (possibly broken) abi-depends field for packages
unpacking sources
unpacking source archive /nix/store/f619my5iigsdi684b6j76wb1r6ac8lp6-doctest-0.16.0.tar.gz
source root is doctest-0.16.0
setting SOURCE_DATE_EPOCH to timestamp 1529795833 of file doctest-0.16.0/test/UtilSpec.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-doctest-0.16.0.drv-0/setup-package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.lhs, /tmp/nix-build-doctest-0.16.0.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/ar6xj8jz9lia1sfv7c3gm9gf5w21gyqc-doctest-0.16.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/wd9rf1ibs9z3lnyi3bnsbxdbh4i85ryx-doctest-0.16.0-doc/share/doc/doctest-0.16.0 --with-gcc=gcc --package-db=/tmp/nix-build-doctest-0.16.0.drv-0/package.conf.d --ghc-option=-j1 --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --disable-benchmarks --enable-library-vanilla --enable-library-for-ghci --ghc-option=-split-sections --disable-library-stripping --disable-executable-stripping --ghcjs
Using Parsec parser
Configuring doctest-0.16.0...
Dependency base >=4.5 && <5: using base-4.11.1.0
Dependency base-compat >=0.7.0: using base-compat-0.10.4
Dependency code-page >=0.1: using code-page-0.1.3
Dependency deepseq -any: using deepseq-1.4.3.0
Dependency directory -any: using directory-1.3.1.5
Dependency doctest -any: using doctest-0.16.0
Dependency filepath -any: using filepath-1.4.2
Dependency ghc >=7.0 && <8.6: using ghc-8.4.2
Dependency ghc-paths >=0.1.0.9: using ghc-paths-0.1.0.9
Dependency process -any: using process-1.6.3.0
Dependency syb >=0.3: using syb-0.7
Dependency transformers -any: using transformers-0.5.5.0
Source component graph:
    component lib
    component exe:doctest dependency lib
Configured component graph:
    component doctest-0.16.0-AHAZsDFuZmdKuryl9R313m
        include base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
        include base-compat-0.10.4-JN31WoedrNfJZBOST8uzCO
        include code-page-0.1.3-2Y62qTwrxduJZVMNkfEbzO
        include deepseq-1.4.3.0-42XnsAVec7XA2IheMXu1r7
        include directory-1.3.1.5-2mI4y4KffND9Zv04iHI3Ix
        include filepath-1.4.2-6TW0smMgMKm3XaxIG8Nx0L
        include ghc-8.4.2-KaYHlayWRHmAt2NnWCRkr4
        include ghc-paths-0.1.0.9-FCBU7XUnS1IAIQliftEFk9
        include process-1.6.3.0-7Tr7xbV7vNcAJo54elDErn
        include syb-0.7-EJIDMoRTscU89tZMmghcgL
        include transformers-0.5.5.0-8ZjexgxxdBLH8OWn8CZkwx
    component doctest-0.16.0-9ujsaD9g11GIPLJHxVBN8m-doctest
        include base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
        include base-compat-0.10.4-JN31WoedrNfJZBOST8uzCO
        include code-page-0.1.3-2Y62qTwrxduJZVMNkfEbzO
        include deepseq-1.4.3.0-42XnsAVec7XA2IheMXu1r7
        include directory-1.3.1.5-2mI4y4KffND9Zv04iHI3Ix
        include doctest-0.16.0-AHAZsDFuZmdKuryl9R313m
        include filepath-1.4.2-6TW0smMgMKm3XaxIG8Nx0L
        include ghc-8.4.2-KaYHlayWRHmAt2NnWCRkr4
        include ghc-paths-0.1.0.9-FCBU7XUnS1IAIQliftEFk9
        include process-1.6.3.0-7Tr7xbV7vNcAJo54elDErn
        include syb-0.7-EJIDMoRTscU89tZMmghcgL
        include transformers-0.5.5.0-8ZjexgxxdBLH8OWn8CZkwx
Linked component graph:
    unit doctest-0.16.0-AHAZsDFuZmdKuryl9R313m
        include base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
        include base-compat-0.10.4-JN31WoedrNfJZBOST8uzCO
        include code-page-0.1.3-2Y62qTwrxduJZVMNkfEbzO
        include deepseq-1.4.3.0-42XnsAVec7XA2IheMXu1r7
        include directory-1.3.1.5-2mI4y4KffND9Zv04iHI3Ix
        include filepath-1.4.2-6TW0smMgMKm3XaxIG8Nx0L
        include ghc-8.4.2-KaYHlayWRHmAt2NnWCRkr4
        include ghc-paths-0.1.0.9-FCBU7XUnS1IAIQliftEFk9
        include process-1.6.3.0-7Tr7xbV7vNcAJo54elDErn
        include syb-0.7-EJIDMoRTscU89tZMmghcgL
        include transformers-0.5.5.0-8ZjexgxxdBLH8OWn8CZkwx
        Test.DocTest=doctest-0.16.0-AHAZsDFuZmdKuryl9R313m:Test.DocTest
    unit doctest-0.16.0-9ujsaD9g11GIPLJHxVBN8m-doctest
        include base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
        include base-compat-0.10.4-JN31WoedrNfJZBOST8uzCO
        include code-page-0.1.3-2Y62qTwrxduJZVMNkfEbzO
        include deepseq-1.4.3.0-42XnsAVec7XA2IheMXu1r7
        include directory-1.3.1.5-2mI4y4KffND9Zv04iHI3Ix
        include doctest-0.16.0-AHAZsDFuZmdKuryl9R313m
        include filepath-1.4.2-6TW0smMgMKm3XaxIG8Nx0L
        include ghc-8.4.2-KaYHlayWRHmAt2NnWCRkr4
        include ghc-paths-0.1.0.9-FCBU7XUnS1IAIQliftEFk9
        include process-1.6.3.0-7Tr7xbV7vNcAJo54elDErn
        include syb-0.7-EJIDMoRTscU89tZMmghcgL
        include transformers-0.5.5.0-8ZjexgxxdBLH8OWn8CZkwx
Ready component graph:
    definite doctest-0.16.0-AHAZsDFuZmdKuryl9R313m
        depends base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
        depends base-compat-0.10.4-JN31WoedrNfJZBOST8uzCO
        depends code-page-0.1.3-2Y62qTwrxduJZVMNkfEbzO
        depends deepseq-1.4.3.0-42XnsAVec7XA2IheMXu1r7
        depends directory-1.3.1.5-2mI4y4KffND9Zv04iHI3Ix
        depends filepath-1.4.2-6TW0smMgMKm3XaxIG8Nx0L
        depends ghc-8.4.2-KaYHlayWRHmAt2NnWCRkr4
        depends ghc-paths-0.1.0.9-FCBU7XUnS1IAIQliftEFk9
        depends process-1.6.3.0-7Tr7xbV7vNcAJo54elDErn
        depends syb-0.7-EJIDMoRTscU89tZMmghcgL
        depends transformers-0.5.5.0-8ZjexgxxdBLH8OWn8CZkwx
    definite doctest-0.16.0-9ujsaD9g11GIPLJHxVBN8m-doctest
        depends base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
        depends base-compat-0.10.4-JN31WoedrNfJZBOST8uzCO
        depends code-page-0.1.3-2Y62qTwrxduJZVMNkfEbzO
        depends deepseq-1.4.3.0-42XnsAVec7XA2IheMXu1r7
        depends directory-1.3.1.5-2mI4y4KffND9Zv04iHI3Ix
        depends doctest-0.16.0-AHAZsDFuZmdKuryl9R313m
        depends filepath-1.4.2-6TW0smMgMKm3XaxIG8Nx0L
        depends ghc-8.4.2-KaYHlayWRHmAt2NnWCRkr4
        depends ghc-paths-0.1.0.9-FCBU7XUnS1IAIQliftEFk9
        depends process-1.6.3.0-7Tr7xbV7vNcAJo54elDErn
        depends syb-0.7-EJIDMoRTscU89tZMmghcgL
        depends transformers-0.5.5.0-8ZjexgxxdBLH8OWn8CZkwx
Using Cabal-2.2.0.1 compiled by ghc-8.4
Using compiler: ghcjs-8.4.0.1
Using install prefix:
/nix/store/ar6xj8jz9lia1sfv7c3gm9gf5w21gyqc-doctest-0.16.0
Executables installed in:
/nix/store/ar6xj8jz9lia1sfv7c3gm9gf5w21gyqc-doctest-0.16.0/bin
Libraries installed in:
/nix/store/ar6xj8jz9lia1sfv7c3gm9gf5w21gyqc-doctest-0.16.0/lib/ghcjs-8.4.0.1/x86_64-linux-ghcjs-8.4.0.1-ghc8_4_2_20180420/doctest-0.16.0-AHAZsDFuZmdKuryl9R313m
Dynamic Libraries installed in:
/nix/store/ar6xj8jz9lia1sfv7c3gm9gf5w21gyqc-doctest-0.16.0/lib/ghcjs-8.4.0.1/x86_64-linux-ghcjs-8.4.0.1-ghc8_4_2_20180420
Private executables installed in:
/nix/store/ar6xj8jz9lia1sfv7c3gm9gf5w21gyqc-doctest-0.16.0/libexec/x86_64-linux-ghcjs-8.4.0.1-ghc8_4_2_20180420/doctest-0.16.0
Data files installed in:
/nix/store/ar6xj8jz9lia1sfv7c3gm9gf5w21gyqc-doctest-0.16.0/share/x86_64-linux-ghcjs-8.4.0.1-ghc8_4_2_20180420/doctest-0.16.0
Documentation installed in:
/nix/store/wd9rf1ibs9z3lnyi3bnsbxdbh4i85ryx-doctest-0.16.0-doc/share/doc/doctest-0.16.0
Configuration files installed in:
/nix/store/ar6xj8jz9lia1sfv7c3gm9gf5w21gyqc-doctest-0.16.0/etc
No alex found
Using ar found on system at:
/nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 7.3.0 given by user at:
/nix/store/lzh9rcw3rjvbaj7n3z4nzsvcz85k2p2m-gcc-wrapper-7.3.0/bin/gcc
Using ghc version 8.4.3 found on system at:
/nix/store/sx4pjh0nh0acqszld5rrxwbjnzl3djrg-ghc-8.4.3/bin/ghc
Using ghc-pkg version 8.4.3 found on system at:
/nix/store/sx4pjh0nh0acqszld5rrxwbjnzl3djrg-ghc-8.4.3/bin/ghc-pkg
Using ghcjs version 8.4.0.1 found on system at:
/nix/store/7ppq4yrnj1xmdx3gnk855vn9yjmdr2ss-ghcjs-8.4.0.1/bin/ghcjs
Using ghcjs-pkg version 8.4.2.20180420 found on system at:
/nix/store/7ppq4yrnj1xmdx3gnk855vn9yjmdr2ss-ghcjs-8.4.0.1/bin/ghcjs-pkg
No greencard found
Using haddock version 2.20.0 found on system at:
/nix/store/7ppq4yrnj1xmdx3gnk855vn9yjmdr2ss-ghcjs-8.4.0.1/bin/haddock-ghcjs
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/sx4pjh0nh0acqszld5rrxwbjnzl3djrg-ghc-8.4.3/bin/hpc
Using hsc2hs version 0.68.3 found on system at:
/nix/store/7ppq4yrnj1xmdx3gnk855vn9yjmdr2ss-ghcjs-8.4.0.1/bin/hsc2hs-ghcjs
Using hscolour version 1.24 found on system at:
/nix/store/wrmnybnyzr44rhdpn20czywmv4f7k1fs-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/lzh9rcw3rjvbaj7n3z4nzsvcz85k2p2m-gcc-wrapper-7.3.0/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using runghc version 8.4.3 found on system at:
/nix/store/sx4pjh0nh0acqszld5rrxwbjnzl3djrg-ghc-8.4.3/bin/runghc
Using strip version 2.30 found on system at:
/nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
Using tar found on system at:
/nix/store/lxbaya2mzjc3xzbcsykrcbvcf5vxvfia-gnutar-1.30/bin/tar
No uhc found
building
Preprocessing library for doctest-0.16.0..
Building library for doctest-0.16.0..
[ 1 of 16] Compiling GhcUtil          ( src/GhcUtil.hs, dist/build/GhcUtil.js_o )

src/GhcUtil.hs:10:1: error:
    Could not find module ‘GHC’
    Use -v to see a list of the files searched for.
   |
10 | import           GHC
   | ^^^^^^^^^^^^^^^^^^^^

src/GhcUtil.hs:11:1: error:
    Could not find module ‘DynFlags’
    Use -v to see a list of the files searched for.
   |
11 | import           DynFlags (gopt_set)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/GhcUtil.hs:13:1: error:
    Could not find module ‘Panic’
    Use -v to see a list of the files searched for.
   |
13 | import           Panic (throwGhcException)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/GhcUtil.hs:15:1: error:
    Could not find module ‘MonadUtils’
    Use -v to see a list of the files searched for.
   |
15 | import           MonadUtils (liftIO)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
builder for '/nix/store/6mhf5hx619b4hbq4fihw0rjvsaq73si0-doctest-0.16.0.drv' failed with exit code 1
error: build of '/nix/store/6mhf5hx619b4hbq4fihw0rjvsaq73si0-doctest-0.16.0.drv' failed

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

 - system: `"x86_64-linux"`                                                                                                                                                                                                                                                                                                   
 - host os: `Linux 4.14.49, NixOS, 18.03.git.8bb57f0 (Impala)`                                                                                                                                                                                                                                                                
 - multi-user?: `yes`                                                                                                                                                                                                                                                                                                         
 - sandbox: `no`                                                                                                                                                                                                                                                                                                              
 - version: `nix-env (Nix) 2.0.4`                                                                                                                                                                                                                                                                                             
 - channels(root): `"nixos-18.03, nixos-beta-18.09beta602.3c85e586b39, nixos-unstable, nixpkgs-unstable"`                                                                                                                                                                                                                     
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`                                                                                                                                                                                                                                                      
@ElvishJerricco
Copy link
Contributor

You should not expect to be able to use doctest with GHCJS, both because of the weirdness with the GHC API and because of the lack of --interactive. In fact, we have doctest = nullin reflex-platform, anddontCheck` any derivation that uses it.

@peti
Copy link
Member

peti commented Nov 18, 2018

This code is supported in "best effort" mode. If you would like to contribute a fix, you are very welcome to!

@peti peti closed this as completed Nov 18, 2018
@andgate
Copy link

andgate commented Aug 11, 2019

I'm experiencing this issue when trying to build on release-19.03

@nomeata
Copy link
Contributor

nomeata commented Apr 7, 2020

I was about to report this (release-20.03, 29eddfc), seeing no open issue about this, but then I found this. Does this mean that reporting these issues is not useful?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants