Linking error with powerpc/beatnik

Gedare Bloom gedare at rtems.org
Mon Mar 15 20:33:38 UTC 2021


Hi Vijay,

This seems like it could be a problem in the linkcmds, possibly in
some missing KEEP() sections plus LTO? Check/compare the linkcmds
between 6, 5, and 4.10 you might get some ideas.

On Sun, Mar 14, 2021 at 9:27 PM Vijay Kumar Banerjee <vijay at rtems.org> wrote:
>
> Hello,
>
> I'm trying to build EPICS7 with RTEMS 6 and legacy-net stack but I'm getting link errors (posted at the end of the email) from librtemscpu and librtemsbsp. I'm not sure what's wrong but I think this might be related to this ticket: https://devel.rtems.org/ticket/3698
>
> There's also an error with multiple definitions of __getreent and that looks similar to a discussion that happened in 2015: https://lists.rtems.org/pipermail/devel/2015-June/011587.html
>
> I would appreciate any help or suggestions on how to fix these issues.
>
>
> Best regards,
> Vijay
>
> ```
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libdl/rtl-mdreloc-powerpc.c:78: undefined reference to `bsp_section_sdata_libdl_begin'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libdl/rtl-mdreloc-powerpc.c:79: undefined reference to `bsp_section_sdata_libdl_end'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libdl/rtl-mdreloc-powerpc.c:79: undefined reference to `bsp_section_sdata_libdl_end'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/rtems/6/powerpc-rtems6/beatnik/lib/librtemscpu.a(rtl-mdreloc-powerpc.c.63.o): in function `get_sdata_sbss_size':
> /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libdl/rtl-mdreloc-powerpc.c:68: undefined reference to `bsp_section_sdata_begin'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libdl/rtl-mdreloc-powerpc.c:68: undefined reference to `bsp_section_sdata_begin'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libdl/rtl-mdreloc-powerpc.c:69: undefined reference to `bsp_section_sbss_end'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libdl/rtl-mdreloc-powerpc.c:69: undefined reference to `bsp_section_sbss_end'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/rtems/6/powerpc-rtems6/beatnik/lib/librtemscpu.a(rtems_putc.c.70.o): in function `rtems_putc':
> /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libcsupport/src/rtems_putc.c:29: undefined reference to `BSP_output_char'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libcsupport/src/rtems_putc.c:31: undefined reference to `BSP_output_char'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libcsupport/src/rtems_putc.c:34: undefined reference to `BSP_output_char'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: /home/vijay/development/rtems/6/powerpc-rtems6/beatnik/lib/librtemscpu.a(cachealignedalloc.c.70.o): in function `rtems_cache_aligned_malloc':
> /home/vijay/development/kernel/rtems/build/powerpc/beatnik/../../../cpukit/libcsupport/src/cachealignedalloc.c:18: undefined reference to `rtems_cache_get_maximal_line_size'
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: libComTestHarness: hidden symbol `__dso_handle' isn't defined
> /home/vijay/development/rtems/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld: final link failed: bad value
>
> ```
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list