Opened on 05/14/19 at 19:48:33
Closed on 05/16/19 at 08:07:40
#3749 closed defect (fixed)
Rtems-libbsd build faiure in SMP configuration
Reported by: | Jonathan Brandmeyer | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | network/libbsd | Version: | 5 |
Severity: | blocker | Keywords: | |
Cc: | shrbek@…, jbrandmeyer@… | Blocked By: | |
Blocking: |
Description
rtems master df8d7bd76f501 introduced an API change to SMP_Multicast_action that changed the number and meaning of this function's arguments. However, RTEMS-libbsd was not updated to use the new API.
Since that time, rtems-libbsd fails to build against an SMP BSP, starting in rtems-kernel-epoch.c line 285 or so.
The RTEMS configuration tested below is based on xilinx-zynq configured with with --disable-networking --enable-cxx --enable-smp --target=arm-rtems5 --enable-posix --enable-rtemsbsp=xilinx_zynq_zedboard BSP_ZYNQ_RAM_LENGTH=1024M
Build failure looks like this:
~/workspace/rtems/rtems-libbsd-git$ python3 ./waf
Waf: Entering directory `/home/sara/workspace/rtems/rtems-libbsd-git/build/arm-rtems5-xilinx_zynq_zedboard-default'
[1591/1883] Compiling rtemsbsd/rtems/rtems-kernel-epoch.c
[1619/1883] Compiling freebsd/sys/dev/usb/serial/ugensa.c
../../rtemsbsd/rtems/rtems-kernel-epoch.c: In function 'epoch_block_handler_preempt':
../../rtemsbsd/rtems/rtems-kernel-epoch.c:285:3: error: too many arguments to function '_SMP_Multicast_action'
_SMP_Multicast_action(sizeof(set), &set, epoch_register_mutex,
In file included from ../../rtemsbsd/rtems/rtems-kernel-epoch.c:44:0:
/opt/rtems_5/arm-rtems5/xilinx_zynq_zedboard/lib/include/rtems/score/smpimpl.h:265:6: note: declared here
void _SMP_Multicast_action(
Waf: Leaving directory `/home/sara/workspace/rtems/rtems-libbsd-git/build/arm-rtems5-xilinx_zynq_zedboard-default'
Change History (2)
comment:1 Changed on 05/14/19 at 21:04:12 by Jonathan Brandmeyer
Cc: | jbrandmeyer@… added |
---|---|
Severity: | normal → blocker |
comment:2 Changed on 05/16/19 at 08:07:40 by Sebastian Huber
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed by [16fa6a4651faaa77ef72c7e03d285c143d6e54fa/rtems-libbsd].