ghc threaded1 test-cases under Solaris

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


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

o): In function `DEBUG_LoadSymbols':

     undefined reference to `bfd_init'

     undefined reference to `bfd_openr'

     undefined reference to `bfd_check_format_matches'
collect2: ld returned 1 exit status

More information about the Glasgow-haskell-users mailing list