Trouble building RTEMS LibBSD
Christian Mauderer
christian.mauderer at embedded-brains.de
Fri Mar 29 20:55:54 UTC 2019
----- Ursprüngliche Mail -----
> Von: "Brendan McNally" <brendan at xia.com>
> An: "RTEMS Users" <users at rtems.org>
> Gesendet: Freitag, 29. März 2019 19:40:52
> Betreff: Trouble building RTEMS LibBSD
> 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
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
Hello Brendan,
that is a bug that has been in libbsd for about one day. For some background see
https://lists.rtems.org/pipermail/devel/2019-March/025379.html
That problem should be fixed by that commit:
https://git.rtems.org/rtems-libbsd/commit/?id=9fabaaec3e5100f0dd130bbf8af2705d39cc5ac7
So please just update and try to rebuild.
Best regards
Christian
--
--------------------------------------------
embedded brains GmbH
Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.mauderer at embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax: +49-89-18 94 741 - 08
PGP: Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list