|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
hmake -hat looks for file in /usr/include, not PWD"hmake -hat -package GLUT Main" fails with: "Fail:
/usr/include/hat/DoublyLinked.hx: openFile: does not exist (No such file or directory)". DoublyLinked.hs is sitting right in the directory from which I'm compiling, I'm not sure why the -hat flag causes this digging in /usr/include. Deleting "-hat" causes successful compilation. The directory tree looks like this: lanes/ ByKey.hs DoublyLinked.hs IfPrime.hs Main.hs MaybeBool.hs Traffic.hs Traffic/ lanes/Traffic/ Data.hs Sim.hs Units.hs This is hat 2.02-12 and hmake-3.09-3 on Debian stable x86. This is the full text of the build: _______________________________________________________________________________ abu ~/sync/lanes hmake -hat -package GLUT Main hat-trans MaybeBool.hs Creating directories Hat Wrote Hat/MaybeBool.hs /usr/bin/haskell-compiler -package GLUT -c -package hat -o Hat/MaybeBool.o Hat/MaybeBool.hs hat-trans Traffic/Units.hs Creating directories Hat Hat/Traffic Wrote Hat/Traffic/Units.hs /usr/bin/haskell-compiler -package GLUT -c -package hat -o Hat/Traffic/Units.o Hat/Traffic/Units.hs hat-trans DoublyLinked.hs Wrote Hat/DoublyLinked.hs /usr/bin/haskell-compiler -package GLUT -c -package hat -o Hat/DoublyLinked.o Hat/DoublyLinked.hs hat-trans ByKey.hs Wrote Hat/ByKey.hs /usr/bin/haskell-compiler -package GLUT -c -package hat -o Hat/ByKey.o Hat/ByKey.hs hat-trans IfPrime.hs Wrote Hat/IfPrime.hs /usr/bin/haskell-compiler -package GLUT -c -package hat -o Hat/IfPrime.o Hat/IfPrime.hs hat-trans Traffic/Sim.hs Fail: /usr/include/hat/DoublyLinked.hx: openFile: does not exist (No such file or directory) _______________________________________________________________________________ in Traffic/Sim.hs the line including DoublyLinked looks like this: "import qualified DoublyLinked as DL" _______________________________________________ Hat mailing list Hat@... http://www.haskell.org/mailman/listinfo/hat |
|
|
Re: hmake -hat looks for file in /usr/include, not PWD"David Morse" <dcmorse@...> wrote:
> "hmake -hat -package GLUT Main" fails with: "Fail: > /usr/include/hat/DoublyLinked.hx: openFile: does not exist (No such > file or directory)". DoublyLinked.hs is sitting right in the > directory from which I'm compiling, I'm not sure why the -hat flag > causes this digging in /usr/include. > > This is hat 2.02-12 and hmake-3.09-3 on Debian stable x86. You are using an older version of Hat, so this behaviour may have been fixed already in 2.04. I'm not sure quite why it is failing. But one possible workaround is to explicitly give the current directory to hmake, as a location to look for the .hx pseudo-interface files. (Use -i.) hmake -hat -i. -package GLUT Main Regards, Malcolm _______________________________________________ Hat mailing list Hat@... http://www.haskell.org/mailman/listinfo/hat |
|
|
Re: hmake -hat looks for file in /usr/include, not PWDI'm reasonably confident that this hasn't been fixed even in the cvs
build - I've met the problem a couple of times before, and never found a good reason for it to happen (I don't know anything about how hmake works) Bob On 20 Oct 2006, at 11:19, Malcolm Wallace wrote: > "David Morse" <dcmorse@...> wrote: > >> "hmake -hat -package GLUT Main" fails with: "Fail: >> /usr/include/hat/DoublyLinked.hx: openFile: does not exist (No such >> file or directory)". DoublyLinked.hs is sitting right in the >> directory from which I'm compiling, I'm not sure why the -hat flag >> causes this digging in /usr/include. >> >> This is hat 2.02-12 and hmake-3.09-3 on Debian stable x86. > > You are using an older version of Hat, so this behaviour may have been > fixed already in 2.04. I'm not sure quite why it is failing. But one > possible workaround is to explicitly give the current directory to > hmake, > as a location to look for the .hx pseudo-interface files. (Use -i.) > > hmake -hat -i. -package GLUT Main > > Regards, > Malcolm > _______________________________________________ > Hat mailing list > Hat@... > http://www.haskell.org/mailman/listinfo/hat _______________________________________________ Hat mailing list Hat@... http://www.haskell.org/mailman/listinfo/hat |
|
|
Re: hmake -hat looks for file in /usr/include, not PWDOn 10/20/06, Malcolm Wallace <Malcolm.Wallace@...> wrote:
> "David Morse" <dcmorse@...> wrote: > > > "hmake -hat -package GLUT Main" fails with: "Fail: > > /usr/include/hat/DoublyLinked.hx: openFile: does not exist (No such > > file or directory)". DoublyLinked.hs is sitting right in the > > directory from which I'm compiling, I'm not sure why the -hat flag > > causes this digging in /usr/include. > > > > This is hat 2.02-12 and hmake-3.09-3 on Debian stable x86. > > You are using an older version of Hat, so this behaviour may have been > fixed already in 2.04. I'm not sure quite why it is failing. But one > possible workaround is to explicitly give the current directory to hmake, > as a location to look for the .hx pseudo-interface files. (Use -i.) > > hmake -hat -i. -package GLUT Main > > Regards, > Malcolm > Hm... the problem persists on a machine with: hat/dapper 2.04-0ubuntu2 hat-ghc6/dapper 2.04-0ubuntu2 hmake/dapper 3.10-1.1 Also, "-i" doesn't work around, for some reason. Other than hopengl, this project is basically self-contained, if anyone's interested in trying to reproduce this, take a look at: http://www.osaurus.us/~dm/tmp/lanes.tar.gz (25k) _______________________________________________ Hat mailing list Hat@... http://www.haskell.org/mailman/listinfo/hat |
| Free Forum Powered by Nabble | Forum Help |