Comments (11)
Adding support for --with-(alex|happy)
: https://phabricator.haskell.org/D5307
from hadrian.
I think you're using too old a Cabal version, because since 2.2 IIRC things that are in build-tool-depends
are also installed automatically. Any chance this could be the problem?
from hadrian.
cabal does build them; the problem is a different one: how to make them visible to ./configure
so it can persist/record their locations in the config-settings.
Here's two ways which should work to query for the locations for the build-tools
that were requested by hadrian.cabal
:
$ cabal new-exec --project=$PWD/hadrian/cabal.project sh -- -c 'command -v alex'
/home/hvr/.cabal/store/ghc-8.4.4/alex-3.2.4-4006f020d0bf93fca9fc50e9f961c4a2af3341f7a44d2bfa6f7feb9c7d6e930b/bin/alex
or alternatively
$ cabal new-exec --project=$PWD/hadrian/cabal.project which -- alex
/home/hvr/.cabal/store/ghc-8.4.4/alex-3.2.4-4006f020d0bf93fca9fc50e9f961c4a2af3341f7a44d2bfa6f7feb9c7d6e930b/bin/alex
One thing I I've been missing from configure
is support for --with-alex=
and --with-happy=
; in the past I temporarily modified PATH
during the ./configure
invocation until the locations were persisted; but that's not a precise method.
from hadrian.
(@TerrorJack told me on IRC this problem is now solved.)
from hadrian.
@alpmestan ghc-8.4.4 has Cabal-2.2.0.1
in global pkgdb, and I'm using cabal-install-2.4.0.0
compiled using Cabal-2.4.0.1
, so Cabal
version should be relatively new here.
from hadrian.
Hmm, I'm confused then. Maybe @hvr will know?
from hadrian.
I am not sure we should consider this issue resolved.
As @hvr points out, the general solution is unclear. Others may he hit by the same problem.
from hadrian.
We landed proper support for passing alex & happy to configure in https://gitlab.haskell.org/ghc/ghc/merge_requests/61
Iām happy to take a stab at fixing this ticket if we still want it?
from hadrian.
@adamse Yes, it would be great, thank you!
Perhaps, you could open a GHC Trac ticket (or should it be a GitLab issue now?) to briefly describe the problem and proposed solution, so that it is more visible to GHC developers?
from hadrian.
@snowleopard see https://ghc.haskell.org/trac/ghc/ticket/16120#ticket
from hadrian.
@adamse Awesome, thank you! I'm therefore closing this issue.
from hadrian.
Related Issues (20)
- _build/stage0/bin/ghc.exe misses dependency HOT 14
- Rules for rts/rts.cabal are broken HOT 15
- Should Hadrian build ghctags and haddock in Stage1? HOT 3
- Documentation broken HOT 2
- Custom build root does not work on Windows HOT 2
- Symlink traversing logic in build scripts HOT 25
- GHC testsuite rules status HOT 25
- Reduce the number of times a Cabal file is parsed HOT 13
- Improve documentation of predicates
- Build more variants of profiled runtime systems (normal, threaded, debug, threaded debug, ...) ? HOT 8
- Consider using Azure for CI HOT 1
- testsuite: support figuring out the list of tests from $PWD HOT 1
- testsuite: add CLI flag for specifying extra options to pass to ghc HOT 1
- rts: buggy handling of non-trivial dynamic flavours of the library HOT 14
- ctrl + c doesn't cancel build on windows HOT 5
- Building on windows is broken. HOT 23
- --integer-simple is broken HOT 40
- Hadrian has been merged into GHC proper HOT 4
- Issue on Trac: 15908 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hadrian.