"Data/Ratio" yhi error on macos X

Hi, Yhc / yhi compiles and installs on my system, but if you try to compile a simple Haskell program like this: main = putStrLn $ show (2+3) executing the bytecode file with yhi gives you this error: ERROR: couldn't find module named 'Data/Ratio' tried: Data/Ratio.hbc /Users/mike/Compile/yhc-devel/inst/lib/yhc/packages/yhc-base/1.0/Data/Ratio.hbc However, this program *will* compile and run correctly: main = putStrLn "hello, world!" This still happens if I get and compile fresh copy of yhc-devel from darcs, so I don't think my repo has been corrupted or anything. Mike.

Mike Dodds wrote:
ERROR: couldn't find module named 'Data/Ratio' tried: Data/Ratio.hbc
/Users/mike/Compile/yhc-devel/inst/lib/yhc/packages/yhc-base/1.0/Data/Ratio.hbc
Just to clarify that a little bit, the file in question: /Users/mike/Compile/yhc-devel/inst/lib/yhc/packages/yhc-base/1.0/Data/Ratio.hbc ...really doesn't exist, which I suppose means it's a library bug. Mike.

Hi Mike,
On Windows it works fine. The library exists, but it maybe isn't being
made by your makefile?
The source is at yhc-devel\src\packages\yhc-base-1.0\Data, and make
libraries or something should cause it get compiled and put in the
appropriate place.
Thanks
Neil
On 12/18/05, Mike Dodds
Mike Dodds wrote:
ERROR: couldn't find module named 'Data/Ratio' tried: Data/Ratio.hbc
/Users/mike/Compile/yhc-devel/inst/lib/yhc/packages/yhc-base/1.0/Data/Ratio.hbc
Just to clarify that a little bit, the file in question:
/Users/mike/Compile/yhc-devel/inst/lib/yhc/packages/yhc-base/1.0/Data/Ratio.hbc
...really doesn't exist, which I suppose means it's a library bug.
Mike. _______________________________________________ Yhc mailing list Yhc@haskell.org http://haskell.org/mailman/listinfo/yhc

Hi Mike, On Linux, looking at the yhc-devel\src\packages\yhc-base-1.0\Data directory shows Ratio.hi, but not Ratio.hbc. All other modules have both .hi and .hbc. I would blame yhc-devel\src\packages\yhc-base-1.0\Makefile, but its disasterously complex, so I guess Tom will have to figure out whats wrong and patch it. Thanks Neil
On Windows it works fine. The library exists, but it maybe isn't being made by your makefile?
The source is at yhc-devel\src\packages\yhc-base-1.0\Data, and make libraries or something should cause it get compiled and put in the appropriate place.
Thanks
Neil
On 12/18/05, Mike Dodds
wrote: Mike Dodds wrote:
ERROR: couldn't find module named 'Data/Ratio' tried: Data/Ratio.hbc
/Users/mike/Compile/yhc-devel/inst/lib/yhc/packages/yhc-base/1.0/Data/Ratio.hbc
Just to clarify that a little bit, the file in question:
/Users/mike/Compile/yhc-devel/inst/lib/yhc/packages/yhc-base/1.0/Data/Ratio.hbc
...really doesn't exist, which I suppose means it's a library bug.
Mike. _______________________________________________ Yhc mailing list Yhc@haskell.org http://haskell.org/mailman/listinfo/yhc

Neil Mitchell wrote:
On Linux, looking at the yhc-devel\src\packages\yhc-base-1.0\Data directory shows Ratio.hi, but not Ratio.hbc. All other modules have both .hi and .hbc.
I would blame yhc-devel\src\packages\yhc-base-1.0\Makefile, but its disasterously complex, so I guess Tom will have to figure out whats wrong and patch it.
It turns out that the problem is that: ./bootstrap/packages/yhc-base/1.0/Data/Ratio.hbc needs to be copied to: ./inst/lib/yhc/packages/yhc-base/1.0/Data It can be fixed by hand for the moment, but ideally the makefile should do this. I can't work out how to fix it so Tom will have to do it. Mike.
participants (2)
-
Mike Dodds
-
Neil Mitchell