[Yhc] Re: YHC doesn't work on AMD64

Michał Pałka michal.palka at poczta.fm
Thu Nov 24 04:59:08 EST 2005


Do you have access to an AMD64 machine?

I pulled from yhc-devel and the build broke in the same place. This time
the offending definition and declaration were:
IntegerNode* decodeFloat64(Float64 f, Int32* exp);
IntegerNode* decodeFloat64(Float64 f, Int* rExp)

The patches attached.

Thanks,
Michal

On Wed, 2005-11-23 at 16:32 +0000, Neil Mitchell wrote:
> Hi Michał ,
> 
> We're still working on fixing your bug, but you might be interested to
> know there is now a yhc mailing list:
> http://haskell.org/mailman/listinfo/yhc
> 
> If its still breaking in another week start prodding at that list!
> 
> Thanks
> 
> Neil
> 
> On 11/20/05, Michał Pałka <michal.palka at poczta.fm> wrote:
> > Hello,
> >
> > I would like to report a bug of YHC. Here is the description.
> >
> > What I did:
> > 1) darcs get http://www.cs.york.ac.uk/fp/darcs/yhc
> > 2) chmod u+x configure; ./configure
> > 3) make
> > 4) The build broke, so I made a change that is attached and finished the
> > build.
> > 5) I compiled using yhc a hello world module (main = putStrLn "Hello")
> > 6) and tried to run it with yhi and received a segv.
> > 7) After changing the runtime Makefile I compiled it with -g and got
> > this stack trace:
> > Starting program: /home/michal/prg/haskell/yhc/inst/bin/yhi Main
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x000000000040ab10 in run (top=0x2aaaab1c60b0) at mutator.c:79
> > 79          Switch
> > (gdb) bt
> > #0  0x000000000040ab10 in run (top=0x2aaaab1c60b0) at mutator.c:79
> > #1  0x00000000004041f7 in main (argc=2, argv=0x7fffffa132f8) at main.c:113
> >
> > I also got a segfault with the devel branch, but wasn't able to compile
> > it with -g. And it broke when building libraries.
> >
> > Let me know if you need more information.
> >
> > Thanks,
> > Michal
> >
> >
> >
-------------- next part --------------

New patches:

[fix mismatch between declaration and definition of decodeFloat64 on AMD64 (may break on other archs)
Michal Palka <michal.palka at poczta.fm>**20051120203707] {
merger 0.0 (
hunk ./src/runtime/BCKernel/integer.c 174
-IntegerNode* decodeFloat64(Double f, Int* rExp){
+IntegerNode* decodeFloat64(Float64 f, Int* rExp){
hunk ./src/runtime/BCKernel/integer.c 174
-IntegerNode* decodeFloat64(Double f, Int* rExp){
+IntegerNode* decodeFloat64(Float64 f, Int32* rExp){
)
}

[merge my fix of mismatch between declaration and definition of decodeFloat64 on AMD64 with upstream
Michal Palka <michal.palka at poczta.fm>**20051124094715] {
hunk ./src/runtime/BCKernel/integer.c 174
-IntegerNode* decodeFloat64(Double f, Int* rExp){
+IntegerNode* decodeFloat64(Float64 f, Int32* rExp){
}

Context:

[TAG Stable 1
Tom Shackell <shackell at cs.york.ac.uk>**20051123104200] 
Patch bundle hash:
8bdc0f78f0e5082d9a4383a2eb49fc63585b2342


More information about the Yhc mailing list