On Mon, 3 Dec 2001, Julian Seward (Intl Vendor) wrote:

> Wierd.  We work with sparc-solaris-2.7 and gcc 2.95.3
> and it all works.
>
> gcc2_compiled is a bogus symbol inserted by gcc into all its
> generated assembly, for no apparent reason.
>
> Suggestion:
> Look in rts/Linker.c in fn ocGetNames_ELF.  Find a comment
> "And the decision is ..." followed by "if (ad != NULL) ...".
> Immediately before the if, add:
>    if (0 == strcmp(nm,"gcc2_compiled.")) ad = NULL;
> which causes these symbols to be ignored.
>
> See if that helps.
>
Yes, it helps.

BUT. Now I get the most puzzling error. When I've compiled ghc and try to
run ghci I get a panic saying: unknown symbol `stg_chk_2'. The thing I do
to try to cure this is to add Sym(stg_chk_2) to RTS_SYMBOLS in Linker.c.
Doing that however makes Linker.c uncompilable, with the following error:

../includes/ClosureMacros.h: In function `get_entry':
../includes/ClosureMacros.h:66: warning: cast increases required alignment
of target type
Linker.c: At top level:
Linker.c:347: `stg_chk_2' redeclared as different kind of symbol
../includes/StgMiscClosures.h:279: previous declaration of `stg_chk_2'

plus a bunch of warnings.

Help appreciated.

        /Josef


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

Reply via email to