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

--- Comment #6 from Waldemar Brodkorb <wbx at openadk dot org> ---
When trying to build Blackfin FDPIC toolchain:
/home/wbx/openadk/toolchain_build_sim-bfin_uclibc-ng_bf512_fdpic/w-gcc-6.1.0-1/gcc-6.1.0/libgcc/unwind-dw2-fde-dip.c:
In function '_Unwind_IteratePhdrCallback':
/home/wbx/openadk/toolchain_build_sim-bfin_uclibc-ng_bf512_fdpic/w-gcc-6.1.0-1/gcc-6.1.0/libgcc/unwind-dw2-fde-dip.c:189:13:
error: incompatible types when assigning to type '_Unwind_Ptr {aka unsigned
int}' from type 'struct elf32_fdpic_loadaddr'
   load_base = info->dlpi_addr;
             ^
In file included from
/home/wbx/openadk/target_sim-bfin_uclibc-ng_bf512_fdpic/usr/include/link.h:78:0,
                 from
/home/wbx/openadk/toolchain_build_sim-bfin_uclibc-ng_bf512_fdpic/w-gcc-6.1.0-1/gcc-6.1.0/libgcc/unwind-dw2-fde-dip.c:87:
/home/wbx/openadk/toolchain_build_sim-bfin_uclibc-ng_bf512_fdpic/w-gcc-6.1.0-1/gcc-6.1.0/libgcc/unwind-dw2-fde-dip.c:274:6:
error: request for member 'map' in something not a structure or union
      __RELOC_POINTER (phdr->p_vaddr, load_base);
      ^
/home/wbx/openadk/toolchain_build_sim-bfin_uclibc-ng_bf512_fdpic/w-gcc-6.1.0-1/gcc-6.1.0/libgcc/unwind-dw2-fde-dip.c:323:5:
error: request for member 'map' in something not a structure or union
     __RELOC_POINTER (p_eh_frame_hdr->p_vaddr, load_base);
     ^
make[8]: *** [unwind-dw2-fde-dip.o] Error 1

Full build log here:
http://debug.openadk.org/bfin/make.log

Just changing __FRV_FDPIC__ into __FDPIC__ results in:
/home/wbx/bfin-c++/toolchain_build_sim-bfin_uclibc-ng_bf512_fdpic/w-gcc-6.1.0-1/gcc-6.1.0/libgcc/unwind-dw2-fde-dip.c:
In function '_Unwind_IteratePhdrCallback':
/home/wbx/bfin-c++/toolchain_build_sim-bfin_uclibc-ng_bf512_fdpic/w-gcc-6.1.0-1/gcc-6.1.0/libgcc/unwind-dw2-fde-dip.c:221:15:
error: incompatible types when assigning to type 'struct elf32_fdpic_loadaddr'
from type '_Unwind_Ptr {aka unsigned int}'
     load_base = cache_entry->load_base;
               ^
/home/wbx/bfin-c++/toolchain_build_sim-bfin_uclibc-ng_bf512_fdpic/w-gcc-6.1.0-1/gcc-6.1.0/libgcc/unwind-dw2-fde-dip.c:309:39:
error: incompatible types when assigning to type '_Unwind_Ptr {aka unsigned
int}' from type 'struct elf32_fdpic_loadaddr'
       frame_hdr_cache_head->load_base = load_base;
                                       ^
make[8]: *** [unwind-dw2-fde-dip.o] Error 1

Reply via email to