<div><div>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':</div><div>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'</div><div>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':</div><div>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'</div><div>collect2.exe: error: ld returned 1 exit status</div></div><div><br></div><div>configuration:</div><div><div>[general]</div><div>name = minimal</div><div>extends = default.ini</div><div><br></div><div>[modules]</div><div>crypto_openssl = off</div><div>netinet6 = off</div><div>fdt = off</div><div>dev_nic_fxp = off</div><div>dev_nic_re = off</div><div>dev_nic_smc = off</div><div>dev_usb = off</div><div>dev_usb_controller = off</div><div>dev_usb_controller_bbb = off</div><div>dev_usb_input = off</div><div>dev_usb_net = off</div><div>dev_usb_quirk = off</div><div>dev_usb_serial = off</div><div>dev_usb_storage = off</div><div>tests = off</div><div>usr_sbin_tcpdump = off</div></div><div><br></div><div>I searched the source files, thers is no any reference about intr_event_suspend_handler() and intr_event_resume_handler()</div><div>So I just move #endif from line:902  to line:946 to avoid these errors.</div><div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From:</b> "Sebastian Huber"<sebastian.huber@embedded-brains.de>;</div><div><b>Date:</b> Tue, May 28, 2019 04:20 PM</div><div><b>To:</b> "jameszxj"<jameszxj@gmail.com>;"devel"<devel@rtems.org>;<wbr></div><div></div><div><b>Subject:</b> Re: rtems-libbsd link error.</div></div><div><br></div>On 28/05/2019 10:14, jameszxj wrote:<br>> Hello,<br>>        In file freebsd/sys/kern/kern_intr.c<br>> function intr_handler_barrier() is exclude by<br>> #ifndef __rtems__<br>> ...<br>> #endif<br>><br>> But function intr_event_suspend_handler() <br>> and intr_event_resume_handler()  reference it, this will lead to a <br>> link error.<br><br>What is the build log showing the link error? How did you configure libbsd?<br><br>-- <br>Sebastian Huber, embedded brains GmbH<br><br>Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>Phone   : +49 89 189 47 41-16<br>Fax     : +49 89 189 47 41-09<br>E-Mail  : sebastian.huber@embedded-brains.de<br>PGP     : Public key available on request.<br><br>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br><br></div>