LibBSD | powerpc qoriq does not build on 7-freebsd-14 (#78)
Chris Johns (@chris)
gitlab at rtems.org
Sat Mar 28 01:52:48 UTC 2026
Chris Johns created an issue: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/78
Assignee: Chris Johns
## Summary
LibBSD fails to build on `powerpc-rtems7-qoriq_core_0`
Building 7-freebsd-14 I get the following errors:
```/opt/work/rtems/7/lib/gcc/powerpc-rtems7/15.2.0/../../../../powerpc-rtems7/bin/ld:./libbsd.a(vfs_cache.c.23.o): the target (_bsd_
vfs_smr) of a R_PPC_SDAREL16 relocation is in the wrong output section (.data)
/opt/work/aaron/rtems/libbsd/rtems-libbsd/build/powerpc-rtems7-qoriq_core_0-everything/../../freebsd/sys/kern/vfs_cache.c:2722:(.t
ext.nchinit+0x11e): relocation truncated to fit: R_PPC_SDAREL16 against symbol `_bsd_vfs_smr' defined in .data.read_frequently sec
tion in ./libbsd.a(vfs_subr.c.23.o)
/opt/work/rtems/7/lib/gcc/powerpc-rtems7/15.2.0/../../../../powerpc-rtems7/bin/ld: ./libbsd.a(vfs_cache.c.23.o): the target (_bsd_
vfs_smr) of a R_PPC_SDAREL16 relocation is in the wrong output section (.data)
./libbsd.a(vfs_cache.c.23.o): in function `atomic_store_rel_int':
/opt/work/aaron/rtems/libbsd/rtems-libbsd/build/powerpc-rtems7-qoriq_core_0-everything/../../rtemsbsd/include/machine/atomic.h:313
:(.text.cache_fpl_aborted_impl.isra.0+0x8e): relocation truncated to fit: R_PPC_SDAREL16 against symbol `_bsd_vfs_smr' defined in
.data.read_frequently section in ./libbsd.a(vfs_subr.c.23.o)
/opt/work/rtems/7/lib/gcc/powerpc-rtems7/15.2.0/../../../../powerpc-rtems7/bin/ld: ./libbsd.a(vfs_cache.c.23.o): the target (_bsd_
vfs_smr) of a R_PPC_SDAREL16 relocation is in the wrong output section (.data)
/opt/work/aaron/rtems/libbsd/rtems-libbsd/build/powerpc-rtems7-qoriq_core_0-everything/../../rtemsbsd/include/machine/atomic.h:313
:(.text.cache_fplookup_partial_setup.constprop.0+0x66): relocation truncated to fit: R_PPC_SDAREL16 against symbol `_bsd_vfs_smr'
defined in .data.read_frequently section in ./libbsd.a(vfs_subr.c.23.o)
/opt/work/rtems/7/lib/gcc/powerpc-rtems7/15.2.0/../../../../powerpc-rtems7/bin/ld: ./libbsd.a(vfs_cache.c.23.o): the target (_bsd_
vfs_smr) of a R_PPC_SDAREL16 relocation is in the wrong output section (.data)
/opt/work/aaron/rtems/libbsd/rtems-libbsd/build/powerpc-rtems7-qoriq_core_0-everything/../../rtemsbsd/include/machine/atomic.h:313
:(.text.cache_fplookup_dirfd+0x8a): additional relocation overflows omitted from the output
/opt/work/rtems/7/lib/gcc/powerpc-rtems7/15.2.0/../../../../powerpc-rtems7/bin/ld: ./libbsd.a(vfs_cache.c.23.o): the target (_bsd_
vfs_smr) of a R_PPC_SDAREL16 relocation is in the wrong output section (.data)
/opt/work/rtems/7/lib/gcc/powerpc-rtems7/15.2.0/../../../../powerpc-rtems7/bin/ld: ./libbsd.a(vfs_cache.c.23.o): the target (_bsd_
vfs_smr) of a R_PPC_SDAREL16 relocation is in the wrong output section (.data)
...
/opt/work/rtems/7/lib/gcc/powerpc-rtems7/15.2.0/../../../../powerpc-rtems7/bin/ld: ./libbsd.a(vfs_cache.c.23.o): the target (_bsd_vfs_smr) of a R_PPC_SDAREL16 relocation is in the wrong output section (.data)
/opt/work/rtems/7/lib/gcc/powerpc-rtems7/15.2.0/../../../../powerpc-rtems7/bin/ld: ./libbsd.a(vfs_cache.c.23.o): the target (_bsd_vfs_smr) of a R_PPC_SDAREL16 relocation is in the wrong output section (.data)
collect2: error: ld returned 1 exit status
```
## Steps to reproduce
Build a powerpc BSP on LibBSD on 7-freebsd-14
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/78
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260328/dbd1321d/attachment-0001.htm>
More information about the bugs
mailing list