LibBSD 5-freebsd12 branch is not linking for the BBB BSP

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Aug 27 08:36:06 UTC 2019


On 27/08/2019 09:07, Chris Johns wrote:
> configure:19546: arm-rtems5-gcc -o conftest -qrtems
> -B/opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/tmp/sb-chris-staging/arm-rtems5/lib/
> -B/opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/tmp/sb-chris-staging/arm-rtems5/beagleboneblack/lib/
> --specs bsp_specs -mcpu=cortex-a8 -O2 -ffunction-sections -fdata-sections
> -Werror-implicit-function-declaration -Wno-system-headers -isy
> stem
> /opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/tmp/sb-chris-staging/arm-rtems5/beagleboneblack/lib/include
> -L/opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/tmp/sb-chris-staging/arm-rtems5/beagleboneblack/lib
> -L/opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/tmp/sb-chris/ftp/curl/opt/work/cs/water/bbb/lib
> conftest.c -lbsd -lm -lz -lrtemsdefaultconfig >&5

I think this error is not BSP-specific. I always link with 
-Wl,--gc-sections. This is highly recommended for libbsd.

I temporarily removed the -Wl,--gc-sections from the libbsd build and 
disabled all unused functions which pull in unresolved references. I 
hope this fixes your build problem.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list