[Yhc] Can't compile

Isaac isaacdupree at charter.net
Thu Aug 10 07:48:59 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Wilkinson wrote:
> Does this mean the whole thing now builds correctly? What happens when you
> type 'scons test'?

Summary: Yhc built but didn't pass all the tests.

I noticed this warning appearing a couple times while building Yhc:
Warning: The module PreludeBuiltin is called Prelude in its interface
file (inst/lib/yhc/packages/yhc-base/1.0/PreludeBuiltin.hi)

Also some warnings here:
Compiling YHC.Internal     ( src/packages/yhc-base-1.0/YHC/Internal.hs )
Warning: _apply1 is both imported and defined
Warning: _apply2 is both imported and defined
Warning: _apply3 is both imported and defined
Warning: _apply4 is both imported and defined
Warning: _id is both imported and defined
Warning: _eqInteger is both imported and defined
Warning: _eqFloat is both imported and defined
Warning: _eqDouble is both imported and defined
Warning: IO is both imported and defined


Following is the test output. My computer has a minor habit of crashing
compilers randomly (segfault or illegal instruction -- by now it's
happened with gcc 3.3-OSX, gcc-3.4.4, 4.0.3, and 4.1.1, and ghc has
randomly segfaulted too, especially when my whole computer's memory
usage was high... but "memtester" running for several hours didn't find
anything, and it doesn't usually happen very often) so it might be its
fault of compiling yhc incorrectly rather than just compiler-crashing...
and it takes quite a while for ghc+gcc to compile Yhc here on this old
computer, so I don't feel like doing it again (if I had instructions to
set up buildbot then I wouldn't need to feel like doing it again, I
could just set it up as a "nice", automated process in the background...)

Maybe the test output shouldn't (ever) include nonprinting characters?


- -- TEST ( 1/52) - Array/timeLargeArray
ERROR: different stdout
EXPECTED:
11

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST ( 2/52) - Emptydecls
- -- TEST ( 3/52) - Enum/list
ERROR: different stdout
EXPECTED:
[1 % 1]

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST ( 4/52) - Enum/succ
ERROR: different stdout
EXPECTED:
1.0e20

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST ( 5/52) - IO/overwrite
- -- TEST ( 6/52) - Misc/wolfram
ERROR: different stdout
EXPECTED:
[1.0,3.0,5.0,7.0,9.0,11.0,13.0,19.0]

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST ( 7/52) - NewType
- -- TEST ( 8/52) - Queens
- -- TEST ( 9/52) - chr
- -- TEST (10/52) - lex
- -- TEST (11/52) - parsing/literate
- -- TEST (12/52) - ctxsimpl
- -- TEST (13/52) - ctxsimpl/bad
- -- TEST (14/52) - fields/empty
- -- TEST (15/52) - fields/operator
ERROR: different stdout
EXPECTED:
Hash{(#)=3}
Hash{(#)=3}

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (16/52) - fields/showread
ERROR: different stdout
EXPECTED:
(Foo{foo=1,bar=99},Foo{foo=(),bar=99},Foo{foo=True,bar=99})
(Foo{foo=1,bar=99},Foo{foo=(),bar=99},Foo{foo=True,bar=99})

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (17/52) - fields/type
- -- TEST (18/52) - identifiers/qual
- -- TEST (19/52) - identifiers/twiddle
- -- TEST (20/52) - importas
- -- TEST (21/52) - infix/constructor
- -- TEST (22/52) - infix/derived
- -- TEST (23/52) - infix/fndecl
- -- TEST (24/52) - infix/infix
- -- TEST (25/52) - infix/local
ERROR: different stdout
EXPECTED:
11

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (26/52) - infix/minus
ERROR: different stdout
EXPECTED:
- -12

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Main is corrupt! Const table entry 1 is '?'[0x255] in function f

- -- TEST (27/52) - infix/operator
ERROR: different stdout
EXPECTED:
[3]

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (28/52) - layout/bad
- -- TEST (29/52) - layout/case
- -- TEST (30/52) - layout/brace
- -- TEST (31/52) - layout/do
- -- TEST (32/52) - layout/indent
- -- TEST (33/52) - layout/layout
- -- TEST (34/52) - layout/rightbrace
- -- TEST (35/52) - layout/tullsen1
- -- TEST (36/52) - layout/tullsen2
ERROR: different stdout
EXPECTED:
6

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (37/52) - layout/whitespace

ERROR: different stdout
EXPECTED:
True

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (38/52) - listindex
- -- TEST (39/52) - maintype
- -- TEST (40/52) - numbers/floatdouble
ERROR: different stdout
EXPECTED:
(0.12345679,0.12345678912345678)

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (41/52) - numbers/integerdouble
ERROR: different stdout
EXPECTED:
1.23456789e8

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (42/52) - numbers/negliteral
ERROR: different stdout
EXPECTED:
(Negate (FromInteger 2),True)

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (43/52) - numbers/subtract
ERROR: different stdout
EXPECTED:
(0.70470005,0.7047)

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (44/52) - qualifiers
- -- TEST (45/52) - read/1x23
ERROR: different stdout
EXPECTED:
[(1,"x23")]

ACTUAL:

ERROR: different stderr
EXPECTED:

ACTUAL:
Module Prelude is corrupt! Const table entry 3 is ''[0x02] in function
Prelude.Num.Prelude.Integer.signum

- -- TEST (46/52) - read/readex
- -- TEST (47/52) - read/singleconstr
- -- TEST (48/52) - self-print
- -- TEST (49/52) - semicolon
- -- TEST (50/52) - strings/newline
- -- TEST (51/52) - getargs
- -- TEST (52/52) - packedstring
ERROR: different stdout
EXPECTED:
This is string B

ACTUAL:


- -- SUMMARY
Passed: 35
Failed: 17
Total : 52

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE2x0qHgcxvIWYTTURAo70AJ97lN5oHzwpvBG5TdiVAzyFwq9SOQCeJxXl
Lm4tRJPwEXJ4D+QJQpYjEr0=
=PAqD
-----END PGP SIGNATURE-----


More information about the Yhc mailing list