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

Dependencies are out of date #118

Open
imalsogreg opened this issue Jan 20, 2022 · 1 comment
Open

Dependencies are out of date #118

imalsogreg opened this issue Jan 20, 2022 · 1 comment

Comments

@imalsogreg
Copy link
Owner

On macos:

nix-shell fails to open a shell:

setupCompileFlags: -package-db=/private/tmp/nix-build-attoparsec-iso8601-1.0.1.0.drv-0/setup-package.conf.d -j16 -threaded -rtsopts
[1 of 1] Compiling Main             ( Setup.hs, /private/tmp/nix-build-attoparsec-iso8601-1.0.1.0.drv-0/Main.o )
Linking Setup ...
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
error: builder for '/nix/store/gg6rlnlsrya43w5m4i9qz3i06ibxss63-attoparsec-iso8601-1.0.1.0.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/hhz8rqp2b28hsqv8bfcq0dp9k0khfihm-ghc-8.6.5-with-packages.drv' failed to build

On linux, nix-shell succeeds, but cabal build fails:

[nix-shell:~/code/servant-reflex]$ cabal build
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: testdriver-0.2 (user goal)
[__1] unknown package: webdriver (dependency of testdriver)
[__1] fail (backjumping, conflict set: testdriver, webdriver)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: testdriver, webdriver

I (or a kind contributor!) need to bump the reflex-platform.nix reference to a more recent reflex-platform, and debug any remaining issues with the build, e.g. outdated dependencies.

@hendysg
Copy link

hendysg commented Jul 11, 2022

On linux, using reflex-platform v0.9.0.2, I successfully entered nix-shell and ran cabal build

[nix-shell:~/github/imalsogreg/servant-reflex]$ cabal build
Resolving dependencies...
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
 - servant-reflex-0.4.0 (lib) (configuration changed)
Configuring library for servant-reflex-0.4.0..
Preprocessing library for servant-reflex-0.4.0..
Building library for servant-reflex-0.4.0..
[1 of 4] Compiling Servant.Common.BaseUrl ( src/Servant/Common/BaseUrl.hs, /home/hysg/github/imalsogreg/servant-reflex/dist-newstyle/build/x86_64-linux/ghc-8.6.5/servant-reflex-0.4.0/build/Servant/Common/BaseUrl.o ) [Reflex.Dom.Core changed]
[2 of 4] Compiling Servant.Common.Req ( src/Servant/Common/Req.hs, /home/hysg/github/imalsogreg/servant-reflex/dist-newstyle/build/x86_64-linux/ghc-8.6.5/servant-reflex-0.4.0/build/Servant/Common/Req.o ) [Reflex.Dom.Core changed]
[3 of 4] Compiling Servant.Reflex   ( src/Servant/Reflex.hs, /home/hysg/github/imalsogreg/servant-reflex/dist-newstyle/build/x86_64-linux/ghc-8.6.5/servant-reflex-0.4.0/build/Servant/Reflex.o ) [Reflex.Dom.Core changed]
[4 of 4] Compiling Servant.Reflex.Multi ( src/Servant/Reflex/Multi.hs, /home/hysg/github/imalsogreg/servant-reflex/dist-newstyle/build/x86_64-linux/ghc-8.6.5/servant-reflex-0.4.0/build/Servant/Reflex/Multi.o ) [Reflex.Dom.Core changed]

[nix-shell:~/github/imalsogreg/servant-reflex]$ 

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