Ticket #2313 (closed bug: fixed)

Opened 6 months ago

Last modified 5 months ago

libHSrts_thr_debug linked against non-existing bfd library

Reported by: kgardas Assigned to: igloo
Priority: normal Milestone: 6.10.1
Component: Runtime System Version: 6.9
Severity: normal Keywords:
Cc: Difficulty: Unknown
Test Case: Operating System: Solaris
Architecture: x86_64 (amd64)

Description (Last modified by igloo)

It seems there is a bug in RTS somewhere which makes libHSrts_thr_debug in a way it's including some symbols from the bfd library. The bug shows itself as a lot of testsuite tests failing with undefined symbols which originates in the BFD library. Example:

=====> cg013(threaded1)
cd ./codeGen/should_run && '/buildbot/ghc/kgardas/build/compiler/stage2/ghc-inplace' -no-recomp -dcore-lint -dcmm-lint -Di386_unknown_solaris2  -o cg013 cg013.hs -threaded -debug   >cg013.comp.stderr 2>&1
Compile failed (status 256) errors were:
Undefined                       first referenced
 symbol                             in file
bfd_openr                           /buildbot/ghc/kgardas/build/rts/libHSrts_thr_debug.a(Printer.thr_debug_o)
bfd_init                            /buildbot/ghc/kgardas/build/rts/libHSrts_thr_debug.a(Printer.thr_debug_o)
bfd_check_format_matches            /buildbot/ghc/kgardas/build/rts/libHSrts_thr_debug.a(Printer.thr_debug_o)
ld: fatal: Symbol referencing errors. No output written to cg013
collect2: ld returned 1 exit status

Attachments

patch.bundle (186.2 kB) - added by kgardas on 05/28/08 03:00:13.

Change History

05/28/08 03:00:13 changed by kgardas

  • attachment patch.bundle added.

05/28/08 03:03:09 changed by kgardas

I've fixed the issue by adding HAVE_LIBBFD ifdef to the RtsConfig?.h. I've rerun testsuite and got to 94 unexpected failures from original 521 unexpected failures.

05/28/08 03:03:20 changed by kgardas

  • owner changed from kgardas to igloo.

07/02/08 04:33:59 changed by igloo

  • status changed from new to closed.
  • difficulty set to Unknown.
  • resolution set to fixed.
  • description changed.
  • milestone set to 6.10.1.

Patch applied, thanks!