Fail to compile 5.04.3 on Solaris

Simon Peyton-Jones simonpj at microsoft.com
Mon Apr 14 08:54:18 EDT 2003


Strange.

The only things I can think of are

a) you haven't done 'make clean' first and you still have leftover .hi
files from an earlier version of GHC. With GHC's new binary .hi-file
format, version changes can give rise to strange behaviour.  (A very
unsavoury fact.)

b) you haven't done a 'make boot' in hslibs.

Apart from that, I can't explain what you are seeing.  Try with -v to
see what's going on?

SImon

| -----Original Message-----
| From: glasgow-haskell-bugs-admin at haskell.org
[mailto:glasgow-haskell-bugs-admin at haskell.org] On
| Behalf Of Josef Svenningsson
| Sent: 14 April 2003 11:16
| To: glasgow-haskell-bugs at haskell.org
| 
| Hi!
| 
| I've tried to compile 5.04.3 on Solaris some time now but I can't make
it
| work. Compiling the compiler works fine. The problem is when trying to
| compile the libraries. Compiling GHC/Handle always fails with either
Bus
| error or Segmentation fault. Like this:
| 
| rm -f GHC/Handle.o; if [ ! -d GHC/Handle_split ]; then mkdir
| GHC/Handle_split; else /usr/bin/find GHC/Handle_split -name '*.o' |
xargs
| rm -f __rm_food; fi;
| ../../ghc/compiler/ghc-inplace -ldl -fglasgow-exts -cpp -Iinclude
| -funbox-strict-fields -package-name base -O -Rghc-timing  -split-objs
| -c GHC/Handle.hs -o GHC/Handle.o
| Bus Error
| <<ghc: 486170608 bytes, 1662 GCs, 5862901/9509368 avg/max bytes
residency
| (13 samples), 26M in use, 0.01 INIT (0.02 elapsed), 11.98 MUT (30.24
| elapsed), 8.40 GC (8.76 elapsed) :ghc>>
| 
| The funny thing is though that if I cd into the libraries directory
and do
| `make` afterwards it works fine. Problems show up again when I do
`make`
| in hslibs. Then I get:
| rm -f ByteArray.o; if [ ! -d ByteArray_split ]; then mkdir
| ByteArray_split; else /usr/bin/find ByteArray_split -name '*.o' |
xargs rm
| -f __rm_food; fi;
| ../../ghc/compiler/ghc-inplace -ldl -cpp -fglasgow-exts -Icbits
-imonads
| -package-name lang -O -Rghc-timing  -split-objs    -c ByteArray.lhs -o
| ByteArray.o
| 
| ByteArray.lhs:34:
|     failed to load interface for `PrelByteArr':
|         Could not find interface file for `PrelByteArr'
| <<ghc: 10332428 bytes, 4 GCs, 9760/9760 avg/max bytes residency (1
| samples), 7M in use, 0.02 INIT (0.01 elapsed), 0.26 MUT (0.52
elapsed),
| 0.09 GC (0.15 elapsed) :ghc>>
| 
| I guess that the make process isn't quite made for restarting in the
| middle of everything...
| Any hints are welcome.
| 
| I'm using ghc 5.04 to compile the compiler.
| 
| > uname -a
| SunOS 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-80
| > gcc --version
| 2.95.3
| 
| The linker is Sun's own linker.
| 
| 
| Cheers,
| 
| 	/Josef
| 
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs





More information about the Glasgow-haskell-bugs mailing list