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

            Bug ID: 114941
           Summary: libbacktrace build is broken for FDPIC uclibc targets
                    by gcc-14-5173-g2b64e4a54042
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libbacktrace
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jcmvbkbc at gcc dot gnu.org
                CC: ian at gcc dot gnu.org
  Target Milestone: ---

A fix for the https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111315 turned on the
use of the dl_iterate_phdr interface in the libbacktrace, but since the type of
the dl_phdr_info::dlpi_addr on FDPIC targets using uclibc is not compatible
with uintptr_t the libstdc++-v3 build breaks for these targets with the
following message:

elf.c:7372:62: error: incompatible type for argument 6 of ‘elf_add’
 7372 |   if (elf_add (pd->state, filename, descriptor, NULL, 0,
info->dlpi_addr,
      |                                                         
~~~~^~~~~~~~~~~
      |                                                              |
      |                                                              struct
elf32_fdpic_loadaddr
elf.c:6504:20: note: expected ‘uintptr_t’ {aka ‘unsigned int’} but argument is
of type ‘struct elf32_fdpic_loadaddr’

Reply via email to