Libbsd Undefined References When Running FACE Conformance Tests

Joel Sherrill joel at rtems.org
Mon Mar 30 13:33:13 UTC 2020


Hi

Jeff has been setting up the FACE Conformance Test Suite to test
RTEMS+libbsd against the FACE General Purpose Profile. He has results for
arm/xilinx_zynq_a9_qemu which fail for 37 symbols that should be satisfied
from libbsd.


=========================
#include <net/if.h>

int main()
{
struct if_nameindex ** var0 = {0};
if_freenameindex(*var0);
return 0;
}
  =========================

The Conformance Test Suite is setup to compile the above file and then link
it. This is the link line.  This error occurred 37 times.

I apologize if the copy and paste is wonky. The report is in PDF.

command: /home/mayes/dev/rtems/5/bin/arm-rtems5-gcc Test000001.o
/home/mayes/face/CTS_3.1.0/sample/typesGoldLib.a -lm -lbsd
-lrtemsdefaultconfig -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard
-mtune=cortex-a9 -O0 -g
-B/home/mayes/rtems-arm/arm-rtems5/xilinx_zynq_a9_qemu/lib/ -specs bsp_specs
-qrtems -lm -lbsd -lrtemsdefaultconfig -o Test000001.exe
return code: 1
output:
/home/mayes/dev/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
/home/mayes/rtems-arm/arm-rtems5/xilinx_zynq_a9_qemu/lib/libbsd.a(uipc_mbuf.c.1
8.o): in function `m_unmappedtouio':
/home/mayes/dev/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../..
/freebsd/sys/kern/uipc_mbuf.c:1813: undefined reference to `PHYS_TO_VM_PAGE'
/home/mayes/dev/rtems/5/lib/gcc/arm-rtems5/7.5.0/../../../../arm-rtems5/bin/ld:
/home/mayes/dev/rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-default/../..
/freebsd/sys/kern/uipc_mbuf.c:1814: undefined reference to
`uiomove_fromphys'
collect2: error: ld returned 1 exit status

Checking the source code, the line number looks like the code is different
from the master than 5-freebsd-12. It also looks like Jeff is testing
against the master. This leads to a few simple questions:

+ Should Jeff be testing using the 5-freebsd-12 branch?

+ Why isn't the master in sync enough to pass this simple test?

+ What's the relationship between the master and 5-freebsd-12?

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200330/c9beeb86/attachment.html>


More information about the devel mailing list