libbsd fails to link on i386
Joel Sherrill
joel at rtems.org
Thu Aug 18 18:34:25 UTC 2022
On Thu, Aug 18, 2022, 1:09 PM <Jan.Sommer at dlr.de> wrote:
> Hi Joel,
>
>
>
> I remember I spent some time fiddling with the bus.h include order.
>
> I can try to have a look at it some time next week.
>
Thanks.
>
> Best regards,
>
>
>
> Jan
>
>
>
> *From:* devel <devel-bounces at rtems.org> *On Behalf Of *Joel Sherrill
> *Sent:* Wednesday, August 17, 2022 11:24 PM
> *To:* rtems-devel at rtems.org <devel at rtems.org>
> *Subject:* libbsd fails to link on i386
>
>
>
> 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/20220818/e07046c2/attachment.htm>
More information about the devel
mailing list