rtems-libbsd link error.

jameszxj jameszxj at gmail.com
Tue May 28 09:39:10 UTC 2019


d:/msys64/opt/rtems/5.1/bin/../lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld.exe: D:/msys64/opt/rtems/5.1/arm-rtems5/xilinx_zynq_nsaboard/lib\libbsd.a(kern_intr.c.16.o): in function `_bsd_intr_event_suspend_handler':
D:\msys64\home\ZXJ\rtems-develop\rtems-libbsd\build\arm-rtems5-xilinx_zynq_nsaboard-minimal/../../freebsd/sys/kern/kern_intr.c:918: undefined reference to `intr_handler_barrier'
d:/msys64/opt/rtems/5.1/bin/../lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld.exe: D:/msys64/opt/rtems/5.1/arm-rtems5/xilinx_zynq_nsaboard/lib\libbsd.a(kern_intr.c.16.o): in function `_bsd_intr_event_resume_handler':
D:\msys64\home\ZXJ\rtems-develop\rtems-libbsd\build\arm-rtems5-xilinx_zynq_nsaboard-minimal/../../freebsd/sys/kern/kern_intr.c:942: undefined reference to `intr_handler_barrier'
collect2.exe: error: ld returned 1 exit status



configuration:
[general]
name = minimal
extends = default.ini


[modules]
crypto_openssl = off
netinet6 = off
fdt = off
dev_nic_fxp = off
dev_nic_re = off
dev_nic_smc = off
dev_usb = off
dev_usb_controller = off
dev_usb_controller_bbb = off
dev_usb_input = off
dev_usb_net = off
dev_usb_quirk = off
dev_usb_serial = off
dev_usb_storage = off
tests = off
usr_sbin_tcpdump = off



I searched the source files, thers is no any reference about intr_event_suspend_handler() and intr_event_resume_handler()
So I just move #endif from line:902  to line:946 to avoid these errors.
------------------ Original ------------------
From: "Sebastian Huber"<sebastian.huber at embedded-brains.de>;
Date: Tue, May 28, 2019 04:20 PM
To: "jameszxj"<jameszxj at gmail.com>;"devel"<devel at rtems.org>;

Subject: Re: rtems-libbsd link error.



On 28/05/2019 10:14, jameszxj wrote:
> Hello,
>        In file freebsd/sys/kern/kern_intr.c
> function intr_handler_barrier() is exclude by
> #ifndef __rtems__
> ...
> #endif
>
> But function intr_event_suspend_handler() 
> and intr_event_resume_handler()  reference it, this will lead to a 
> link error.

What is the build log showing the link error? How did you configure libbsd?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190528/ddbce308/attachment-0002.html>


More information about the devel mailing list