[GHC] #8790: rts: unrust 'libbfd' debug symbols parser

GHC ghc-devs at haskell.org
Sat Feb 15 19:55:39 UTC 2014


#8790: rts: unrust 'libbfd' debug symbols parser
------------------------------------+-------------------------------------
       Reporter:  slyfox            |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 For quite a long while you might have seen such ./configure output:

 {{{
 checking bfd.h usability... yes
 checking bfd.h presence... yes
 checking for bfd.h... yes
 ...
 checking for bfd_uncompress_section_contents in -lbfd... no
 }}}

 which means very interesting debug bit in rts (+RTS -Di) is disabled.
 It's because most of functions in bfd.h are actually macros, thus test
 fails:
 config.log:
 {{{
 configure:9545: checking for bfd_uncompress_section_contents in -lbfd
 configure:9570: x86_64-pc-linux-gnu-gcc -o conftest -march=corei7-avx
 -mtune=corei7-avx -O2 -pipe -fdiagnostics-show-option -frecord-gcc-
 switches -ggdb3 -march=corei7-avx -march=corei7-avx -m
 tune=corei7-avx -mtune=corei7-avx -ggdb3 -fno-stack-protector -Wa,--
 noexecstack -Wa,--noexecstack -fno-stack-protector  -Wl,-O1 -Wl,--as-
 needed -Wl,--hash-style=gnu -Wl,--hash-size=31 -Wl,--r
 educe-memory-overheads conftest.c -lbfd  -liberty  >&5
 /tmp/portage/dev-lang/ghc-7.6.3-r1/temp/ccCEvDZ7.o: In function `main':
 /tmp/portage/dev-lang/ghc-7.6.3-r1/work/ghc-7.6.3/conftest.c:99: undefined
 reference to `bfd_uncompress_section_contents'
 }}}

 We don't use that function anyways, thus i've picked '''bfd_init'''.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8790>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list