Git Product home page Git Product logo

Comments (12)

peti avatar peti commented on August 17, 2024 1

It's been six years ... can we close this issue now? It feels like it's no longer a pressing problem.

from x11.

kfiz avatar kfiz commented on August 17, 2024

Sorry, was in a bit of a rush:
I'm trying to build Version 1.6.1.1 on a mac. I'm on ghc 7.6.3.

from x11.

dmwit avatar dmwit commented on August 17, 2024

I haven't the faintest idea. X11-1.6.1.1 builds fine on GHC-7.6.3 here. Could you post the exact cabal command you run and its full output? Bonus points for including a verbose enough run of cabal (add -v, -vv, or -vvv) that we can see the exact command it's invoking when you get that error. Also, what does hsc2hs --version say?

from x11.

kfiz avatar kfiz commented on August 17, 2024

I'm basically just executing a 'caball install x11'. I'm not at my box at the moment, but I'll try to earn those bonus points in a few hours.

from x11.

kfiz avatar kfiz commented on August 17, 2024

Ok, so here some gists:

The first one shows the end of the cabal-install output, before that there' s loads of compilation output.
I pasted in some warnings at the top, that are exemplary for the warnings that were generated.

The second one shows the top,i.e. ./configure ... output.
hsc2hs --version says: hsc2hs version 0.67

from x11.

dmwit avatar dmwit commented on August 17, 2024

Hrm. Those warnings look similar to ones I saw flying by on #haskell the other night; the problem for that person turned out to be that clang's preprocessor behaves differently than gcc's. But since the problem is in a completely different file... I'm still a bit stumped. I'm not even sure what the next thing to ask for would be. Perhaps you could take a peek in the generated Extras.hs file and see what the lines around the one it's complaining about are?

from x11.

dmwit avatar dmwit commented on August 17, 2024

Contacted Eridius on #haskell, who was the guy having CPP problems the other day. He said what worked for him was grabbing the newest cpphs from Hackage and adding --ghc-options="-pgmPcpphs -optP--cpp" to his cabal install command. You could try that, too, I guess.

from x11.

kfiz avatar kfiz commented on August 17, 2024

Downloaded the source to try manually, so I could check the Extras.hs. But that didn't work:
runghc Setup.hs configure --user --prefix=$HOME
runghc Setup.hs install
...
Setup.hs:6:29: Warning:
In the use of `defaultUserHooks'
(imported from Distribution.Simple):
Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2
compatibility in which case you must stick with defaultUserHooks"
Installing library in /Users/louis/lib/X11-1.6.1.1/ghc-7.6.3
Setup.hs: Error: Could not find module: Graphics.X11 with any suffix: ["hi"]
in the search path: ["dist/build"]
...

After succesfully doing cabal-install cpphs,
cabal install x11 --ghc-options="-pgmPcpphs -optP--cpp" fails with:
...
Building X11-1.6.1.1...
Preprocessing library X11-1.6.1.1...
ghc: could not execute: cpphs
Failed to install X11-1.6.1.1
cabal: Error: some packages failed to install:
X11-1.6.1.1 failed during the building phase. The exception was:
ExitFailure 1

checked with ghc-pkg list wether cpphs was registered, which it was.
I think I`m missing something obvious here...

from x11.

kfiz avatar kfiz commented on August 17, 2024

Ok, the obvious thing was, that cpphs wasn't in my path. :-)
Changing that and switching from gcc-4.8.1 to clang solved the problem.
Should I close the issue?

from x11.

kfiz avatar kfiz commented on August 17, 2024

Thanks by the way for the first-class support!

from x11.

dmwit avatar dmwit commented on August 17, 2024

No, please don't close the issue just yet. I'd like to keep it open until I think of a way of making things Just Work. =)

You're welcome for the help.

from x11.

dmwit avatar dmwit commented on August 17, 2024

Well... I'm not spending time thinking about how to fix it. But that doesn't mean it's fixed...

from x11.

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.