Trouble building RTEMS LibBSD

Brendan McNally brendan at xia.com
Fri Mar 29 18:40:52 UTC 2019


Hello all -

I have been following along with the RTEMS LibBSD readme
<https://git.rtems.org/rtems-libbsd/tree/README.md>, and I have encountered
an issue building the rtems-libbsd module with waf. Note: I'm building on a
FreeBSD-11.2 dev machine.

I have successfully built and installed the tools (rtems/5), bootstrapped
the sources, and built and installed the BSP (xilinx_zynq_a9_qemu). After
closely following the instructions, I get to step 8, and after configuring
waf I get the following error towards the end of the build process:

[1762/1883] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/commands01.exe
[1764/1883] Linking
build/arm-rtems5-xilinx_zynq_a9_qemu-default/condvar01.exe
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(ip6_output.c.18.o): in function `_bsd_ip6_output':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/ip6_output.c:548:
undefined reference to `_bsd_in6_selectroute_fib'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6.c.18.o): in function `nd6_llinfo_timer':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6.c:881:
undefined reference to `_bsd_nd6_ns_output'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6.c.18.o): in function `nd6_resolve_slow':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6.c:2461:
undefined reference to `_bsd_nd6_ns_output'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6_nbr.c.18.o): in function `nd6_dad_ns_output':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6_nbr.c:1513:
undefined reference to `_bsd_nd6_ns_output'
collect2: error: ld returned 1 exit status

/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(ip6_output.c.18.o): in function `_bsd_ip6_output':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/ip6_output.c:548:
undefined reference to `_bsd_in6_selectroute_fib'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6.c.18.o): in function `nd6_llinfo_timer':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6.c:881:
undefined reference to `_bsd_nd6_ns_output'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6.c.18.o): in function `nd6_resolve_slow':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6.c:2461:
undefined reference to `_bsd_nd6_ns_output'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6_nbr.c.18.o): in function `nd6_dad_ns_output':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6_nbr.c:1513:
undefined reference to `_bsd_nd6_ns_output'
collect2: error: ld returned 1 exit status

/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(ip6_output.c.18.o): in function `_bsd_ip6_output':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/ip6_output.c:548:
undefined reference to `_bsd_in6_selectroute_fib'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6.c.18.o): in function `nd6_llinfo_timer':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6.c:881:
undefined reference to `_bsd_nd6_ns_output'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6.c.18.o): in function `nd6_resolve_slow':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6.c:2461:
undefined reference to `_bsd_nd6_ns_output'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6_nbr.c.18.o): in function `nd6_dad_ns_output':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6_nbr.c:1513:
undefined reference to `_bsd_nd6_ns_output'
collect2: error: ld returned 1 exit status

/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(ip6_output.c.18.o): in function `_bsd_ip6_output':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/ip6_output.c:548:
undefined reference to `_bsd_in6_selectroute_fib'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6.c.18.o): in function `nd6_llinfo_timer':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6.c:881:
undefined reference to `_bsd_nd6_ns_output'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6.c.18.o): in function `nd6_resolve_slow':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6.c:2461:
undefined reference to `_bsd_nd6_ns_output'
/opt/work/bdm/sandbox/rtems-5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
./libbsd.a(nd6_nbr.c.18.o): in function `nd6_dad_ns_output':
/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../../freebsd/sys/netinet6/nd6_nbr.c:1513:
undefined reference to `_bsd_nd6_ns_output'
collect2: error: ld returned 1 exit status

Waf: Leaving directory
`/opt/work/bdm/sandbox/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default'
Build failed
 -> task in 'condvar01.exe' failed with exit status 1 (run with -v to
display more information)
 -> task in 'cdev01.exe' failed with exit status 1 (run with -v to display
more information)
 -> task in 'arphole.exe' failed with exit status 1 (run with -v to display
more information)
 -> task in 'commands01.exe' failed with exit status 1 (run with -v to
display more information)

I'm not quite sure how to proceed. Any guidance would be appreciated!
Thank you,
Brendan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190329/10068967/attachment.html>


More information about the users mailing list