libbsd fails to link on i386
Joel Sherrill
joel at rtems.org
Wed Aug 17 21:23:51 UTC 2022
Hi
I think the wrong bus.h must be being included somewhere. These are static
inline methods on the i386. Hopefully a simple patch for someone who knows
what to do:
[1992/2039] Linking build/i386-rtems6-pc386-default/ftpd01.exe
/home/joel/rtems-work/tools/6/lib/gcc/i386-rtems6/12.1.1/../../../../i386-rtems6/bin/ld:
./libbsd.a(rtems-kernel-bus-dma.c.20.o): in function
`_bsd_bus_dmamem_alloc':
/home/joel/rtems-work/rtems-libbsd/build/i386-rtems6-pc386-default/../../rtemsbsd/rtems/rtems-kernel-bus-dma.c:264:
undefined reference to `bsp_bus_space_write_1'
collect2: error: ld returned 1 exit status
/home/joel/rtems-work/tools/6/lib/gcc/i386-rtems6/12.1.1/../../../../i386-rtems6/bin/ld:
./libbsd.a(rtems-kernel-bus-dma.c.20.o): in function
`_bsd_bus_dmamem_alloc':
/home/joel/rtems-work/rtems-libbsd/build/i386-rtems6-pc386-default/../../rtemsbsd/rtems/rtems-kernel-bus-dma.c:264:
undefined reference to `bsp_bus_space_write_1'
collect2: error: ld returned 1 exit status
/home/joel/rtems-work/tools/6/lib/gcc/i386-rtems6/12.1.1/../../../../i386-rtems6/bin/ld:
./libbsd.a(rtems-kernel-bus-dma.c.20.o): in function
`_bsd_bus_dmamem_alloc':
/home/joel/rtems-work/rtems-libbsd/build/i386-rtems6-pc386-default/../../rtemsbsd/rtems/rtems-kernel-bus-dma.c:264:
undefined reference to `bsp_bus_space_write_1'
collect2: error: ld returned 1 exit status
/home/joel/rtems-work/tools/6/lib/gcc/i386-rtems6/12.1.1/../../../../i386-rtems6/bin/ld:
./libbsd.a(rtems-kernel-bus-dma.c.20.o): in function
`_bsd_bus_dmamem_alloc':
/home/joel/rtems-work/rtems-libbsd/build/i386-rtems6-pc386-default/../../rtemsbsd/rtems/rtems-kernel-bus-dma.c:264:
undefined reference to `bsp_bus_space_write_1'
collect2: error: ld returned 1 exit status
/home/joel/rtems-work/tools/6/lib/gcc/i386-rtems6/12.1.1/../../../../i386-rtems6/bin/ld:
./libbsd.a(rtems-kernel-bus-dma.c.20.o): in function
`_bsd_bus_dmamem_alloc':
/home/joel/rtems-work/rtems-libbsd/build/i386-rtems6-pc386-default/../../rtemsbsd/rtems/rtems-kernel-bus-dma.c:264:
undefined reference to `bsp_bus_space_write_1'
collect2: error: ld returned 1 exit status
/home/joel/rtems-work/tools/6/lib/gcc/i386-rtems6/12.1.1/../../../../i386-rtems6/bin/ld:
./libbsd.a(rtems-kernel-bus-dma.c.20.o): in function
`_bsd_bus_dmamem_alloc':
/home/joel/rtems-work/rtems-libbsd/build/i386-rtems6-pc386-default/../../rtemsbsd/rtems/rtems-kernel-bus-dma.c:264:
undefined reference to `bsp_bus_space_write_1'
collect2: error: ld returned 1 exit status
/home/joel/rtems-work/tools/6/lib/gcc/i386-rtems6/12.1.1/../../../../i386-rtems6/bin/ld:
./libbsd.a(rtems-kernel-bus-dma.c.20.o): in function
`_bsd_bus_dmamem_alloc':
/home/joel/rtems-work/rtems-libbsd/build/i386-rtems6-pc386-default/../../rtemsbsd/rtems/rtems-kernel-bus-dma.c:264:
undefined reference to `bsp_bus_space_write_1'
collect2: error: ld returned 1 exit status
/home/joel/rtems-work/tools/6/lib/gcc/i386-rtems6/12.1.1/../../../../i386-rtems6/bin/ld:
./libbsd.a(rtems-kernel-bus-dma.c.20.o): in function
`_bsd_bus_dmamem_alloc':
/home/joel/rtems-work/rtems-libbsd/build/i386-rtems6-pc386-default/../../rtemsbsd/rtems/rtems-kernel-bus-dma.c:264:
undefined reference to `bsp_bus_space_write_1'
collect2: error: ld returned 1 exit status
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20220817/81efbe0d/attachment.htm>
More information about the devel
mailing list