Coder Social home page Coder Social logo

Comments (11)

adamse avatar adamse commented on June 5, 2024 4

Adding support for --with-(alex|happy): https://phabricator.haskell.org/D5307

from hadrian.

alpmestan avatar alpmestan commented on June 5, 2024 1

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.

hvr avatar hvr commented on June 5, 2024 1

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.

alpmestan avatar alpmestan commented on June 5, 2024 1

(@TerrorJack told me on IRC this problem is now solved.)

from hadrian.

TerrorJack avatar TerrorJack commented on June 5, 2024

@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.

alpmestan avatar alpmestan commented on June 5, 2024

Hmm, I'm confused then. Maybe @hvr will know?

from hadrian.

snowleopard avatar snowleopard commented on June 5, 2024

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.

adamse avatar adamse commented on June 5, 2024

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.

snowleopard avatar snowleopard commented on June 5, 2024

@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.

adamse avatar adamse commented on June 5, 2024

@snowleopard see https://ghc.haskell.org/trac/ghc/ticket/16120#ticket

from hadrian.

snowleopard avatar snowleopard commented on June 5, 2024

@adamse Awesome, thank you! I'm therefore closing this issue.

from hadrian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.