Building GHC 5.02 on Solaris x86

Ian Lynagh igloo at earth.li
Sat Oct 27 07:51:47 EDT 2001


Doh, I have several times got further than I thought but didn't realise
it as I didn't notice it had made a ghc-5.02 binary!

Here's my latest problem, anyway - I don't suppose it could be caused by
the hc files being generated under a different OS with different magic
numbers could it?

m99igl at booth33:rts$
LD_LIBRARY_PATH=/auto/ecslab/m99igl/scratch/local/readline/lib truss -o
truss.out ../../ghc/compiler/ghc-inplace -optc-O -optc-O2
-optc-fomit-frame-pointer -optc-Wall -optc-W -optc-Wstrict-prototypes
-optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline
-optc-Waggregate-return -optc-Wbad-function-cast -optc-Wcast-align
-optc-DCOMPILING_RTS -ldl -I../includes -I. -Iparallel -O2
-DCOMPILING_RTS -static    -c Adjustor.c -o Adjustor.o
inappropriate type
Action: hFileSize
Handle:
{loc=/tmp/foo/ghc-5.02/ghc/driver/package.conf.inplace,type=readable,binary=False,buffering=block
(8192)}
Reason: not a regular file
File:
/tmp/foo/ghc-5.02/ghc/driver/package.conf.inplace
m99igl at booth33:rts$ 

-rw-------   1 m99igl       7270 Oct 26 23:40
/tmp/foo/ghc-5.02/ghc/driver/package.conf.inplace


truss says:

[...]
xstat(2, "/tmp/foo/ghc-5.02/package.conf", 0x500BB020) Err#2 ENOENT
xstat(2, "", 0x500BB0B8)            = 0
open("/tmp/foo/ghc-5.02/ghc/driver/package.conf.inplace",
O_RDONLY|O_CREAT|O_NOCTTY, 0666) = 3 
fcntl(3, F_GETFL, 0x000001B6)           = 0
fstat64(3, 0x0804569C)              = 0
fstat64(3, 0x0804569C)              = 0
fcntl(3, F_SETFL, 0x00000800)           = 0
fxstat(2, 3, 0x500BB190)            = 0
ioctl(3, TCGETA, 0x0804575C)            Err#25 ENOTTY
fxstat(2, 3, 0x500BB1F0)            = 0
write(2, " i", 1)               = 1
write(2, " n", 1)               = 1
[spells out "appropriate type" etc]


Thanks
Ian





More information about the Glasgow-haskell-bugs mailing list