Git Product home page Git Product logo

Comments (7)

valderman avatar valderman commented on May 18, 2024

What version of GHC and cabal are you running? I can't reproduce the issue on my side. (GHC 7.6.3 / cabal 1.16.0)

from haste-compiler.

solomatov avatar solomatov commented on May 18, 2024

I am using GHC 7.6.3. and cabal 1.16.0.2

How should these .hi files be produced? Which program produces them?

from haste-compiler.

valderman avatar valderman commented on May 18, 2024

The .his are produced by haste-inst configure/build, which mysteriously fail because it seems that cabal doesn't find haste-pkg, and it all goes downhill from there. This is very weird, as the first line (haste-pkg update libraries/rts.pkg) seems to work just fine.

It looks like cabal for some reason doesn't see haste-pkg on your $PATH. I have no idea why that would be though (Mac-specific quirk, perhaps?), since the shell script apparently sees it.

I fixed haste-inst to explicitly go looking for haste-pkg in ~/.cabal/bin unless it's found on the path in commit d466601 - does this fix your problem?

from haste-compiler.

solomatov avatar solomatov commented on May 18, 2024

Thanks! Now, everything works much better, however, I have another errors:

cbits/float.c:72:0:
error: nested functions are disabled, use -fnested-functions to re-enable

cbits/float.c:72:0:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token

cbits/float.c:72:0: error: expected expression before ‘const’

cbits/float.c:82:0:
error: ‘arr’ undeclared (first use in this function)

cbits/float.c:82:0:
error: (Each undeclared identifier is reported only once

cbits/float.c:82:0: error: for each function it appears in.)
cbits/float.c: In function ‘integer_cbits_encodeFloat’:

cbits/float.c:135:0:
error: nested functions are disabled, use -fnested-functions to re-enable

cbits/float.c:135:0:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token

Should I install gmp for this?

from haste-compiler.

valderman avatar valderman commented on May 18, 2024

The cbits stuff is completely unnecessary and only left in there because I haven't really bothered to do a proper cleanup, but since they're apparently causing trouble on some platforms I got rid of them in commit ab8ddab - does it work now?

from haste-compiler.

solomatov avatar solomatov commented on May 18, 2024

Now it worked without errors. Thank you very much!

from haste-compiler.

valderman avatar valderman commented on May 18, 2024

No problem, it's great to get platform specific issues like this reported since I don't have a Mac myself to test on!

from haste-compiler.

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.