oprofile ftbfs with binutils 2.34

Bug #1860650 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oprofile
New
Undecided
Unassigned
oprofile (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

oprofile ftbfs with binutils 2.34.

https://sourceforge.net/p/oprofile/bugs/292/

x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wall -fno-common -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -MT bfd_support.o -MD -MP -MF .deps/bfd_support.Tpo -c -o bfd_support.o bfd_support.cpp
bfd_support.cpp: In function ‘bool {anonymous}::get_build_id(bfd*, unsigned char*)’:
bfd_support.cpp:140:53: error: cannot convert ‘bfd*’ to ‘const asection*’ {aka ‘const bfd_section*’}
  140 | bfd_size_type buildid_sect_size = bfd_section_size(ibfd, sect);
      | ^~~~
      | |
      | bfd*
In file included from bfd_support.h:19,
                 from bfd_support.cpp:11:
/usr/include/bfd.h:1206:35: note: initializing argument 1 of ‘bfd_size_type bfd_section_size(const asection*)’
 1206 | bfd_section_size (const asection *sec)
      | ~~~~~~~~~~~~~~~~^~~
bfd_support.cpp: In function ‘bool {anonymous}::get_debug_link_info(bfd*, std::string&, long unsigned int&)’:
bfd_support.cpp:191:50: error: cannot convert ‘bfd*’ to ‘const asection*’ {aka ‘const bfd_section*’}
  191 | bfd_size_type debuglink_size = bfd_section_size(ibfd, sect);
      | ^~~~
      | |
      | bfd*
In file included from bfd_support.h:19,
                 from bfd_support.cpp:11:
/usr/include/bfd.h:1206:35: note: initializing argument 1 of ‘bfd_size_type bfd_section_size(const asection*)’
 1206 | bfd_section_size (const asection *sec)
      | ~~~~~~~~~~~~~~~~^~~
bfd_support.cpp: In function ‘void {anonymous}::fixup_linenr(bfd*, asection*, asymbol**, const string&, bfd_vma, const char**, unsigned int*)’:
bfd_support.cpp:349:41: error: cannot convert ‘bfd*’ to ‘const asection*’ {aka ‘const bfd_section*’}
  349 | size_t section_size = bfd_section_size(abfd, section);
      | ^~~~
      | |
      | bfd*
In file included from bfd_support.h:19,
                 from bfd_support.cpp:11:
/usr/include/bfd.h:1206:35: note: initializing argument 1 of ‘bfd_size_type bfd_section_size(const asection*)’
 1206 | bfd_section_size (const asection *sec)
      | ~~~~~~~~~~~~~~~~^~~
bfd_support.cpp: In function ‘const linenr_info find_nearest_line(const bfd_info&, const op_bfd_symbol&, bfd_vma, bool)’:
bfd_support.cpp:822:7: error: ‘bfd_get_section_flags’ was not declared in this scope; did you mean ‘bfd_set_section_flags’?
  822 | if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
      | ^~~~~~~~~~~~~~~~~~~~~
      | bfd_set_section_flags
bfd_support.cpp:825:29: error: cannot convert ‘bfd*’ to ‘const asection*’ {aka ‘const bfd_section*’}
  825 | if (pc >= bfd_section_size(abfd, section))
      | ^~~~
      | |
      | bfd*
In file included from bfd_support.h:19,
                 from bfd_support.cpp:11:
/usr/include/bfd.h:1206:35: note: initializing argument 1 of ‘bfd_size_type bfd_section_size(const asection*)’
 1206 | bfd_section_size (const asection *sec)
      | ~~~~~~~~~~~~~~~~^~~
make[4]: *** [Makefile:523: bfd_support.o] Error 1

Matthias Klose (doko)
description: updated
Matthias Klose (doko)
Changed in oprofile (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.