ghc threaded1 test-cases under Solaris

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

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
participants (1)
-
Christian Maeder