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

Chris Johns chrisj at
Tue Aug 27 08:40:28 UTC 2019

On 27/8/19 6:36 pm, Sebastian Huber wrote:
> 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.

Awesome and thanks. I will update and test soon.

By the way I have a patch for the tools as plus one for the kernel and I hope
libbsd. I also have a base64 checksum patch and I am testing a change to fix
emailing a single report when building a BSP.


More information about the devel mailing list