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

Circular dependency with benchmarks? #536

Closed
yaxu opened this issue Jul 8, 2019 · 2 comments
Closed

Circular dependency with benchmarks? #536

yaxu opened this issue Jul 8, 2019 · 2 comments

Comments

@yaxu
Copy link
Member

yaxu commented Jul 8, 2019

I'm struggling to build this with old-style cabal:

alex@stanage:~/src/tidal$ cabal configure --enable-benchmarks 
Warning: The configure command is a part of the legacy v1 style of cabal
usage.

Please switch to using either the new project style and the new-configure
command or the legacy v1-configure alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: tidal-1.0.15 (user goal)
[__1] rejecting: tidal:!bench (constraint from config file, command line flag,
or user target requires opposite flag selection)
[__1] trying: tidal:*bench
[__2] unknown package: weigh (dependency of tidal *bench)
[__2] fail (backjumping, conflict set: tidal, weigh, tidal:bench)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: tidal, tidal:bench, weigh
Trying configure anyway.
Configuring tidal-1.0.15...
cabal: Encountered missing dependencies:
criterion -any, weigh -any

I haven't looked closely, but this seems to be related to this long-standing bug: haskell/cabal#1575

@nini-faroux any ideas?

It does work with v2-bench though, e.g. cabal v2-bench bench-speed

I didn't manage to work out how to add the --time-limit=25 option though..

@nini-faroux
Copy link
Member

oh, I didn't actually run into that issue. I used the usual cabal install, and then the 'cabal configure --enable-benchmarks' which you tried, and that worked ok for me. I think at one point, after adding the weigh library it asked me to reinstall criterion but other than that there was nothing strange.

I just checked again now, and it's working ok for me, I attach a couple of screenshots of what I see when I run the benchmarks.

Screen Shot 2019-07-08 at 14 10 22

Screen Shot 2019-07-08 at 14 12 28

@yaxu
Copy link
Member Author

yaxu commented Sep 30, 2019

This works fine for me with vanilla cabal instructions now so much have been some problem with the particular versions I had. So closing for now, thanks !

@yaxu yaxu closed this as completed Sep 30, 2019
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