public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97722] New: undefined symbol: __gcov_indirect_call_callee
@ 2020-11-05  5:13 jongsung.kim at gmail dot com
  2020-11-05  7:41 ` [Bug gcov-profile/97722] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jongsung.kim at gmail dot com @ 2020-11-05  5:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97722

            Bug ID: 97722
           Summary: undefined symbol: __gcov_indirect_call_callee
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jongsung.kim at gmail dot com
  Target Milestone: ---

ARM-crosscompiled a C++ project using g++ with -fprofile-generate option.
Compiled okay, but got an error when I executed the binary:

symbol lookup error: ...: undefinded symbol: __gcov_indirect_call_callee

There are undefined symbol table entries for __gcov_indirect_call_callee in
both symbol tables:

.dynsym
     4: 00000000     0 TLS     GLOBAL DEFAULT  UND __gcov_indirect_call_call
.symtab
 18165: 00000000     0 TLS     GLOBAL DEFAULT  UND __gcov_indirect_call_call

but I can't find any instruction referencing this symbol.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gcov-profile/97722] undefined symbol: __gcov_indirect_call_callee
  2020-11-05  5:13 [Bug c++/97722] New: undefined symbol: __gcov_indirect_call_callee jongsung.kim at gmail dot com
@ 2020-11-05  7:41 ` rguenth at gcc dot gnu.org
  2020-11-05  8:41 ` marxin at gcc dot gnu.org
  2020-11-09  8:24 ` jongsung.kim at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-05  7:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97722

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
          Component|c++                         |gcov-profile
             Target|                            |arm

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think it's supposed to come from libgcov.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gcov-profile/97722] undefined symbol: __gcov_indirect_call_callee
  2020-11-05  5:13 [Bug c++/97722] New: undefined symbol: __gcov_indirect_call_callee jongsung.kim at gmail dot com
  2020-11-05  7:41 ` [Bug gcov-profile/97722] " rguenth at gcc dot gnu.org
@ 2020-11-05  8:41 ` marxin at gcc dot gnu.org
  2020-11-09  8:24 ` jongsung.kim at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-05  8:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97722

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
It seems that you mix objects generated by GCC 9+ and something older.
I changed the variable __gcov_indirect_call_call in:

  r9-3281-g3edbcdbead288664(04 Oct 2018 12:41)(mliska@suse.cz): [took: 0.421s]
result: FAILED (1)
nm: /usr/lib64/libLLVM.so.10: undefined symbol:
_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev, version
GLIBCXX_3.4.26

Fix divergence in indirect profiling (PR gcov-profile/84107).

2018-10-04  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/84107
        * tree-profile.c (init_ic_make_global_vars):
        Remove ic_void_ptr_var and ic_gcov_type_ptr_var.
        Come up with new ic_tuple* variables.  Emit
        __gcov_indirect_call{,_topn} variables.
        (gimple_gen_ic_profiler): Access the variable
        and emit gimple.
        (gimple_gen_ic_func_profiler): Access
        __gcov_indirect_call.callee field.
        (gimple_init_gcov_profiler): Use ptr_type_node.
        * value-prof.c (gimple_ic): Use ptr_type_node.
2018-10-04  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/84107
        * libgcov-profiler.c (__gcov_indirect_call):
        Change type to indirect_call_tuple.
        (struct indirect_call_tuple): New struct.
        (__gcov_indirect_call_topn_profiler): Change type.
        (__gcov_indirect_call_profiler_v2): Use the new
        variables.
        * libgcov.h (struct indirect_call_tuple): New struct
        definition.

From-SVN: r264840

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gcov-profile/97722] undefined symbol: __gcov_indirect_call_callee
  2020-11-05  5:13 [Bug c++/97722] New: undefined symbol: __gcov_indirect_call_callee jongsung.kim at gmail dot com
  2020-11-05  7:41 ` [Bug gcov-profile/97722] " rguenth at gcc dot gnu.org
  2020-11-05  8:41 ` marxin at gcc dot gnu.org
@ 2020-11-09  8:24 ` jongsung.kim at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jongsung.kim at gmail dot com @ 2020-11-09  8:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97722

--- Comment #3 from Jongsung Kim <jongsung.kim at gmail dot com> ---
You are right, Martin Riska. Totally cleaned and rebuilt binary didn't make the
error. Thank you!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-09  8:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05  5:13 [Bug c++/97722] New: undefined symbol: __gcov_indirect_call_callee jongsung.kim at gmail dot com
2020-11-05  7:41 ` [Bug gcov-profile/97722] " rguenth at gcc dot gnu.org
2020-11-05  8:41 ` marxin at gcc dot gnu.org
2020-11-09  8:24 ` jongsung.kim at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).