installing ghc on Solaris without gcc

2002-04-03 Thread Sven Eric Panitz

after having used ghc on linux and win32 for quite a while now
I am stuck with installing the binary distribution on Solaris.

The Solaris machine does not have a gcc installed. This is correctly
detected by ./configure.

However the eventually installed ghc still calls gcc instead of
just cc.

Eventually I made a symbolic link 
  ln -s cc gcc
just to see if this might work. 

Unfortunately  this gives linker errors:

bash-2.04$ ghc Main.hs
compilation IS NOT required
Undefined   first referenced
 symbol in file
PrelIOBase_heapOverflow_closure (command line)
PrelInt_I16zh_static_info   (command line)
PrelPack_unpackCString_closure  /usr/local/lib/ghc-5.02.2/libHSrts.a(RtsAPI.o)
PrelFloat_Dzh_con_info  /usr/local/lib/ghc-5.02.2/libHSrts.a(RtsAPI.o)
PrelWord_W64zh_con_info /usr/local/lib/ghc-5.02.2/libHSrts.a(RtsAPI.o)
PrelStable_StablePtr_static_info/usr/local/lib/ghc-5.02.2/libHSrts.a(RtsAPI.o)
...


Is ghc supposed to work with cc instead of gcc? If this is so,
what am I doing wrongly?

thanks

Sven Eric

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



RE: installing ghc on Solaris without gcc

2002-04-03 Thread Simon Marlow


 after having used ghc on linux and win32 for quite a while now
 I am stuck with installing the binary distribution on Solaris.
 
 The Solaris machine does not have a gcc installed. This is correctly
 detected by ./configure.

You really need gcc, sorry.

I don't know what might have caused the link errors you saw, but it may
be an artifact of doing linking through Solaris's cc rather gcc
(actually I'm surprised it got that far). 

Cheers,
Simon
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users