Hi,
I have compiled the ghc 2.05 on our OSF1 alphaserver.
It seems to work, but...
If I run the ghc script on any program it gives:
/bin/ld:
Unresolved:
_PrelBase_Z91Z93_closure
_PrelBase_IZh_static_info
_PrelBase_CZh_static_info
_PrelBase_False_inregs_info
_PrelBase_True_inregs_info
_STBase_SZh_static_info
_DEBUG_REGS
I have removed the following lines (-) from the ghc script and everything
seems to work fine.
--- ghc-bak Thu Aug 21 23:09:36 1997
+++ ghc Thu Aug 21 23:11:02 1997
@@ -1275,15 +1275,6 @@
unshift(@Ld_flags,
(($Ld_main) ? ( '-u', "${uscore}Main_" . $Ld_main . '_closure' ) : ()));
- unshift(@Ld_flags,
- ( '-u', "${uscore}PrelBase_Z91Z93_closure" # i.e., []
- ,'-u', "${uscore}PrelBase_IZh_static_info"
- ,'-u', "${uscore}PrelBase_CZh_static_info"
- ,'-u', "${uscore}PrelBase_False_inregs_info"
- ,'-u', "${uscore}PrelBase_True_inregs_info"
- ,'-u', "${uscore}STBase_SZh_static_info"
- ,'-u', "${uscore}DEBUG_REGS"
- ));
if ($TargetPlatform =~ /^powerpc-|^rs6000-/) {
# sometimes we have lots of toc entries...
# unshift(@Ld_flags, ('-Xlinker -bbigtoc -Xlinker -bnoquiet'));
I now get executable programs that just work fine.
But I am a bit worried about removing those lines. What where they
supposed to do?
Thanks,
Mark Wielaard
PS1: Yes, I need the 2.05 version, because I want to use do notation with
lists. Which now works, thanks.