From: <cod...@go...> - 2009-01-02 14:05:29
|
Updates: Labels: Component-Build Comment #1 on issue 12 by james.c...@usma.edu: Can't build with cabal install http://code.google.com/p/hoc/issues/detail?id=12 This is the same problem I ran into while trying to fix Issue 10. The "quick fix", if possible, is to use ghc <6.10. A slightly less quick workaround is to remove the 'c-sources' line in the .cabal file and manually link HOC_cbits.o into the build product (both the .a and the .o). The primary cause is that the HOC_cbits.o object file is listed as a C source file, causing ghc 6.10 to complain loudly (stopping the build process) that there are no input files when 'ghc -c' is called for it. Earlier versions of ghc silently ignore it and report success. The deeper cause (the reason it's being done that way) is that it is a reasonably simple way of getting Cabal to accept an object file as an input to the build process. Just removing the offending line won't work unless we also cause it to be linked in to the build products (presumably in a post-build hook in the Setup file). If no-one else picks this up I'll get to it, but I don't know when that may be. I'm not much of a cabal wizard though, so if anyone has any pointers I'm happy to hear them. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings |