Public bug reported: 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 ** Affects: oprofile Importance: Undecided Status: New ** Affects: oprofile (Ubuntu) Importance: Undecided Status: New ** Also affects: oprofile Importance: Undecided Status: New ** Description changed: 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* + 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: + 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) - | ~~~~~~~~~~~~~~~~^~~ + 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* + 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: + 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) - | ~~~~~~~~~~~~~~~~^~~ + 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* + 349 | size_t section_size = bfd_section_size(abfd, section); + | ^~~~ + | | + | bfd* In file included from bfd_support.h:19, - from bfd_support.cpp:11: + 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) - | ~~~~~~~~~~~~~~~~^~~ + 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 + 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* + 825 | if (pc >= bfd_section_size(abfd, section)) + | ^~~~ + | | + | bfd* In file included from bfd_support.h:19, - from bfd_support.cpp:11: + 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) - | ~~~~~~~~~~~~~~~~^~~ + 1206 | bfd_section_size (const asection *sec) + | ~~~~~~~~~~~~~~~~^~~ make[4]: *** [Makefile:523: bfd_support.o] Error 1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1860650 Title: oprofile ftbfs with binutils 2.34 To manage notifications about this bug go to: https://bugs.launchpad.net/oprofile/+bug/1860650/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs