#3580: ghc-6.12.1rc1 on Nix: ghci does not work
------------------------------+---------------------------------------------
Reporter: kosmikus | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.11
Severity: normal | Resolution:
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: x86
------------------------------+---------------------------------------------
Comment (by kosmikus):
I have investigated a bit. The error message puts the error in HSffi.o. I
compared that file with
the file in the binary distribution for Linux, and they are indeed
different.
In my build, the output of {{{objdump -sx}}} is:
{{{
/nix/store/nkg79yilgrdcfpkrfvr15jrg2v49svrn-
ghc-6.12.0.20091010/lib/ghc-6.12.0.20091010/HSffi.o: file format
elf32-i386
/nix/store/nkg79yilgrdcfpkrfvr15jrg2v49svrn-
ghc-6.12.0.20091010/lib/ghc-6.12.0.20091010/HSffi.o
architecture: i386, flags 0x00000000:
start address 0x00000000
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000000 00000000 00000000 00000034 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000000 00000000 00000000 00000034 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .bss 00000000 00000000 00000000 00000034 2**2
ALLOC
3 .comment 00000012 00000000 00000000 00000034 2**0
CONTENTS, READONLY
4 .note.GNU-stack 00000000 00000000 00000000 00000046 2**0
CONTENTS, READONLY
SYMBOL TABLE:
no symbols
Contents of section .comment:
0000 00474343 3a202847 4e552920 342e332e .GCC: (GNU) 4.3.
0010 3300 3.
}}}
In the precompiled 32-bit Linux binary I get:
{{{
libffi/HSffi.o: file format elf32-i386
libffi/HSffi.o
architecture: i386, flags 0x00000010:
HAS_SYMS
start address 0x00000000
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000000 00000000 00000000 00000034 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000000 00000000 00000000 00000034 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .bss 00000000 00000000 00000000 00000034 2**2
ALLOC
3 .comment 0000002d 00000000 00000000 00000034 2**0
CONTENTS, READONLY
4 .note.GNU-stack 00000000 00000000 00000000 00000061 2**0
CONTENTS, READONLY
SYMBOL TABLE:
00000000 l df *ABS* 00000000 empty.c
00000000 l d .text 00000000 .text
00000000 l d .data 00000000 .data
00000000 l d .bss 00000000 .bss
00000000 l d .note.GNU-stack 00000000 .note.GNU-stack
00000000 l d .comment 00000000 .comment
Contents of section .comment:
0000 00474343 3a202847 4e552920 342e332e .GCC: (GNU) 4.3.
0010 30203230 30383034 32382028 52656420 0 20080428 (Red
0020 48617420 342e332e 302d3829 00 Hat 4.3.0-8).
}}}
Replacing the file HSffi.o in my build with the one from the binary
distribution actually
makes GHCi start up correctly.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3580#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs