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

can not build transient-universe on mac os x #23

Open
deem0n opened this issue May 7, 2018 · 5 comments
Open

can not build transient-universe on mac os x #23

deem0n opened this issue May 7, 2018 · 5 comments

Comments

@deem0n
Copy link

deem0n commented May 7, 2018

on a clean system I can build with stack install transient-universe
on a clean system stack install axiom fails
after it fail I can not successfully run stack install transient-universe anymore, see the same error:

    /private/var/folders/jn/q10st3jd7ngb24nckb0cv49r0000gn/T/stack60149/transient-universe-0.4.6.1/tests/TestSuite.hs:84:35: error:
        Variable not in scope: shouldRun :: Node -> Cloud a0
       |
    84 |                   >> runAt node1 (shouldRun (node1)
       |

lts-11.7
ghc-8.2.2
mac os x 10.13.4
Darwin Kernel Version 17.5.0

log on a clean system (empty ~/.stack)

stack install axiom

deem0n$ stack install axiom
network-2.6.3.5: configure
async-2.1.1.1: download
stringsearch-0.3.6.6: download
text-1.2.3.0: download
atomic-primops-0.8.2: download
vector-0.12.0.1: download
ghcjs-perch-0.3.3.2: download
network-2.6.3.5: build
Cabal-2.0.1.1: configure
Cabal-2.0.1.1: build
async-2.1.1.1: configure
async-2.1.1.1: build
stringsearch-0.3.6.6: configure
stringsearch-0.3.6.6: build
atomic-primops-0.8.2: configure
atomic-primops-0.8.2: build
ghcjs-perch-0.3.3.2: configure
async-2.1.1.1: copy/register
zlib-0.6.2: download
ghcjs-perch-0.3.3.2: build
text-1.2.3.0: configure
atomic-primops-0.8.2: copy/register
transient-0.5.9.2: download
text-1.2.3.0: build
vector-0.12.0.1: configure
ghcjs-perch-0.3.3.2: copy/register
vector-0.12.0.1: build
zlib-0.6.2: configure
zlib-0.6.2: build
transient-0.5.9.2: configure
transient-0.5.9.2: build
network-2.6.3.5: copy/register
iproute-1.7.4: download
iproute-1.7.4: configure
iproute-1.7.4: build
stringsearch-0.3.6.6: copy/register
zlib-0.6.2: copy/register
transient-0.5.9.2: copy/register
iproute-1.7.4: copy/register
text-1.2.3.0: copy/register
blaze-builder-0.4.1.0: download
hashable-1.2.7.0: download
parsec-3.1.13.0: download
hashable-1.2.7.0: configure
hashable-1.2.7.0: build
parsec-3.1.13.0: configure
parsec-3.1.13.0: build
blaze-builder-0.4.1.0: configure
blaze-builder-0.4.1.0: build
hashable-1.2.7.0: copy/register
scientific-0.3.5.3: download
scientific-0.3.5.3: configure
case-insensitive-1.2.0.11: download
scientific-0.3.5.3: build
case-insensitive-1.2.0.11: configure
case-insensitive-1.2.0.11: build
blaze-builder-0.4.1.0: copy/register
streaming-commons-0.1.19: download
streaming-commons-0.1.19: configure
case-insensitive-1.2.0.11: copy/register
streaming-commons-0.1.19: build
parsec-3.1.13.0: copy/register
scientific-0.3.5.3: copy/register
network-uri-2.6.1.0: download
network-uri-2.6.1.0: configure
attoparsec-0.13.2.2: download
network-uri-2.6.1.0: build
attoparsec-0.13.2.2: configure
attoparsec-0.13.2.2: build
vector-0.12.0.1: copy/register
hashtables-1.2.3.0: download
hashtables-1.2.3.0: configure
hashtables-1.2.3.0: build
streaming-commons-0.1.19: copy/register
network-uri-2.6.1.0: copy/register
HTTP-4000.3.11: download
HTTP-4000.3.11: configure
HTTP-4000.3.11: build
hashtables-1.2.3.0: copy/register
RefSerialize-0.4.0: download
RefSerialize-0.4.0: configure
HTTP-4000.3.11: copy/register
RefSerialize-0.4.0: build
RefSerialize-0.4.0: copy/register
TCache-0.12.1: download
TCache-0.12.1: configure
TCache-0.12.1: build
TCache-0.12.1: copy/register
attoparsec-0.13.2.2: copy/register
Cabal-2.0.1.1: copy/register
entropy-0.3.8: download
entropy-0.3.8: configure
entropy-0.3.8: build
entropy-0.3.8: copy/register
websockets-0.12.4.0: download
websockets-0.12.4.0: configure
websockets-0.12.4.0: build
websockets-0.12.4.0: copy/register
transient-universe-0.4.6.1: download
transient-universe-0.4.6.1: configure
transient-universe-0.4.6.1: build
Progress 26/27

--  While building custom Setup.hs for package transient-universe-0.4.6.1 using:
      /Users/deem0n/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/deem0n/.stack/global-project/.stack-work/logs/transient-universe-0.4.6.1.log

    Configuring transient-universe-0.4.6.1...
    clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
    Preprocessing library for transient-universe-0.4.6.1..
    Building library for transient-universe-0.4.6.1..
    [1 of 5] Compiling Transient.Move.Internals ( src/Transient/Move/Internals.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/Transient/Move/Internals.o )
    [2 of 5] Compiling Transient.Move   ( src/Transient/Move.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/Transient/Move.o )
    [3 of 5] Compiling Transient.MapReduce ( src/Transient/MapReduce.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/Transient/MapReduce.o )
    [4 of 5] Compiling Transient.Move.Utils ( src/Transient/Move/Utils.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/Transient/Move/Utils.o )
    [5 of 5] Compiling Transient.Move.Services ( src/Transient/Move/Services.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/Transient/Move/Services.o )
    Preprocessing executable 'monitorService' for transient-universe-0.4.6.1..
    Building executable 'monitorService' for transient-universe-0.4.6.1..
    [1 of 1] Compiling Main             ( app/server/Transient/Move/Services/MonitorService.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/monitorService/monitorService-tmp/Main.o )
    Linking .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/monitorService/monitorService ...
    clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
    clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
    Preprocessing executable 'test-transient1' for transient-universe-0.4.6.1..
    Building executable 'test-transient1' for transient-universe-0.4.6.1..

    <no location info>: warning: [-Wmissing-home-modules]
        These modules are needed for compilation but not listed in your .cabal file's other-modules: Transient.MapReduce
                                                                                                     Transient.Move
                                                                                                     Transient.Move.Internals
                                                                                                     Transient.Move.Services
                                                                                                     Transient.Move.Utils
    [1 of 6] Compiling Transient.Move.Internals ( src/Transient/Move/Internals.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/test-transient1/test-transient1-tmp/Transient/Move/Internals.o )
    [2 of 6] Compiling Transient.Move   ( src/Transient/Move.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/test-transient1/test-transient1-tmp/Transient/Move.o )
    [3 of 6] Compiling Transient.MapReduce ( src/Transient/MapReduce.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/test-transient1/test-transient1-tmp/Transient/MapReduce.o )
    [4 of 6] Compiling Transient.Move.Utils ( src/Transient/Move/Utils.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/test-transient1/test-transient1-tmp/Transient/Move/Utils.o )
    [5 of 6] Compiling Transient.Move.Services ( src/Transient/Move/Services.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/test-transient1/test-transient1-tmp/Transient/Move/Services.o )
    [6 of 6] Compiling Main             ( tests/TestSuite.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/test-transient1/test-transient1-tmp/Main.o )

    /private/var/folders/jn/q10st3jd7ngb24nckb0cv49r0000gn/T/stack46999/transient-universe-0.4.6.1/tests/TestSuite.hs:84:35: error:
        Variable not in scope: shouldRun :: Node -> Cloud a0
       |
    84 |                   >> runAt node1 (shouldRun (node1)
       |                                   ^^^^^^^^^

@agocorona
Copy link
Collaborator

The cause is that It seems that the last version of transient-universe has not reached stackage LTS.

try stack install transient-universe-0.5.0.0 would compile OK

@agocorona
Copy link
Collaborator

@deem0n
Copy link
Author

deem0n commented May 14, 2018

trying to install transient-universe-0.5.0.0 on a clean system.

stack install  transient-universe-0.5.0.0
Writing implicit global project config file to: /Users/deem0n/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-11.9
Downloaded lts-11.9 build plan.
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-8.2.2.
Installed GHC.
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading root
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading timestamp
Downloading snapshot
Downloading mirrors
Cannot update index (no local copy)
Downloading index
Updated package index downloaded
Update complete
Populated index cache.

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for transient-universe-0.5.0.0:
    transient-0.5.9.2 from stack configuration does not match >=0.6.0.0  (latest matching version is 0.6.0.1)
needed since transient-universe is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true' to ignore all version constraints and build anyway.

  * Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some working build configuration. This can be convenient when dealing with many complicated constraint
    errors, but results may be unpredictable.

  * Recommended action: try adding the following to your extra-deps in /Users/deem0n/.stack/global-project/stack.yaml:

- transient-0.6.0.1

Plan construction failed.

If i edit stack.yaml to look like this:

packages: []
resolver: lts-11.9
extra-deps:
  - transient-0.6.0.1
  - transient-universe-0.5.0.0

then i can install transient-universe-0.5.0.0. Will check if i can install axiom

@deem0n
Copy link
Author

deem0n commented May 14, 2018

After transient-universe-0.5.0.0 was installed I see this error:

stack install axiom
ghcjs-perch-0.3.3.2: download
ghcjs-perch-0.3.3.2: configure
ghcjs-perch-0.3.3.2: build
ghcjs-perch-0.3.3.2: copy/register
axiom-0.4.6: download
axiom-0.4.6: configure
axiom-0.4.6: build
Completed 2 action(s).

--  While building custom Setup.hs for package axiom-0.4.6 using:
      /Users/deem0n/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/deem0n/.stack/global-project/.stack-work/logs/axiom-0.4.6.log

    Configuring axiom-0.4.6...
    clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
    Preprocessing library for axiom-0.4.6..
    Building library for axiom-0.4.6..
    [1 of 2] Compiling GHCJS.HPlay.View ( src/GHCJS/HPlay/View.hs, .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/GHCJS/HPlay/View.o )

    /private/var/folders/jn/q10st3jd7ngb24nckb0cv49r0000gn/T/stack29386/axiom-0.4.6/src/GHCJS/HPlay/View.hs:113:33: error:
        Module ‘Transient.Move’ does not export ‘ParseContext(..)’
        |
    113 | import           Transient.Move(ParseContext(..))
        |                                 ^^^^^^^^^^^^^^^^

@agocorona
Copy link
Collaborator

For the moment, use the last version of Axiom in github please:

https://github.com/transient-haskell/axiom

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

No branches or pull requests

2 participants