Hi I am trying to build rtems-libbsd for xilinx_zynq_a9_qemu using tools and RTEMS built from their master branches. Both the master and 5-freebsd-12 branch fail to build with this error:
In file included from ../../rtemsbsd/rtems/rtems-kernel-thread.c:56:0: /home/joel/rtems-class/tools/5/bsp-install/arm-rtems5/xilinx_zynq_a9_qemu/lib/include/rtems/score/objectimpl.h: In function '_Objects_Free': /home/joel/rtems-class/tools/5/bsp-install/arm-rtems5/xilinx_zynq_a9_qemu/lib/include/rtems/score/objectimpl.h:937:17: error: 'Objects_Information {aka struct Objects_Information}' has no member named '_bsd_free' ( *information->free )( information, the_object ); I think the solution is that the structure member free needs to be renamed. 61357479 (Sebastian Huber 2019-12-16 14:50:59 +0100 213) void ( *free )( Objects_Information *, Objects_Control * ); FWIW I was looking at the MISRA C/C++ rules earlier this week and this is a violation of one of them. You should not have variables, methods, structure members, etc that use the same name as standard library entiries. --joel
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel