ghc threaded1 test-cases under Solaris

Christian Maeder maeder at tzi.de
Thu Nov 9 08:28:36 EST 2006


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. Note that "-L/usr/local/lib" is necessary,
because otherwise the wrong libiberty.a file is found (namely that of
gcc with a missing symbol "unlink_if_ordinary").

I don't know how to build this properly into the compiler (or a
configure script).

Cheers Christian


/home/maeder/haskell/solaris/ghc-6.6/rts/libHSrts_thr_debug.a(Printer.thr_debug_
o): In function `DEBUG_LoadSymbols':

/home/maeder/haskell/solaris/ghc-6.6/rts/Printer.c:997:0:
     undefined reference to `bfd_init'

/home/maeder/haskell/solaris/ghc-6.6/rts/Printer.c:998:0:
     undefined reference to `bfd_openr'

/home/maeder/haskell/solaris/ghc-6.6/rts/Printer.c:1002:0:
     undefined reference to `bfd_check_format_matches'
collect2: ld returned 1 exit status




More information about the Glasgow-haskell-users mailing list