ghc threaded1 test-cases under Solaris

Christian Maeder maeder at tzi.de
Fri Nov 10 10:56:00 EST 2006


Christian Maeder schrieb:
> Hi,
> 
> when running the test-suite I get plenty of the link errors (below).
> In order to resolve the missing symbols in Printer.thr_debug_o I was
> able to add
> 
> -optl-L/usr/local/lib -optl-lbfd -optl-liberty
> 
> to the ghc-6.6 command line.

These linker option are only necessary for "-threaded" with "-debug" and
can be added to the 'threaded1' field of config.way_flags in
testsuite/config/ghc.

On our Sparc machines these flags - if used globally - don't work with
"--interactive":

Loading object (dynamic) bfd ... failed.
Dynamic linker error message was:
   ld.so.1: ghc-6.6: fatal: relocation error: file
/usr/local/lib/libbfd.so: symbol _sch_istable: referenced symbol not found

On our AMDs with Solaris 10 also "-lintl" (i.e. '-optl-lintl') must be
added and "--interactive" makes no problems.

Cheers Christian

P.S.
http://hackage.haskell.org/trac/ghc/ticket/993
should be easily fixed now by suitably changing SMP.h



More information about the Glasgow-haskell-users mailing list