This is likely a similar error to the other issue, but it occurs in a different spot while trying to make the cFS Basecamp on a RPi 32-bit (Bullseye). I'm getting the following error when I try to "make topicids":
[ 68%] Building C object apps/kit_to/CMakeFiles/kit_to.dir/fsw/src/pktmgr.c.o
In file included from /home/pi/cfs-basecamp/apps/app_c_fw/fsw/app_inc/app_c_fw.h:61,
from /home/pi/cfs-basecamp/apps/app_c_fw/fsw/app_inc/initbl.h:34,
from /home/pi/cfs-basecamp/apps/app_c_fw/fsw/app_inc/app_c_fw.h:59,
from /home/pi/cfs-basecamp/apps/kit_to/fsw/src/app_cfg.h:39,
from /home/pi/cfs-basecamp/apps/kit_to/fsw/src/pktmgr.c:49:
/home/pi/cfs-basecamp/apps/kit_to/fsw/src/pktmgr.c: In function ‘PKTMGR_OutputTelemetry’:
/home/pi/cfs-basecamp/apps/app_c_fw/fsw/app_inc/cmdmgr.h:56:49: error: cast increases required alignment of target type [-Werror=cast-align]
#define CMDMGR_PAYLOAD_PTR(buf_ptr, cmd_type) &((const cmd_type*)buf_ptr)->Payload
^
/home/pi/cfs-basecamp/apps/kit_to/fsw/src/pktmgr.c:334:80: note: in expansion of macro ‘CMDMGR_PAYLOAD_PTR’
const KIT_TO_WrappedSbMsgTlm_Payload_t *SbMsgPayload = CMDMGR_PAYLOAD_PTR(&(SbBufPtr->Msg), KIT_TO_WrappedSbMsgTlm_t);
^~~~~~~~~~~~~~~~~~
/home/pi/cfs-basecamp/apps/kit_to/fsw/src/pktmgr.c:336:35: error: cast increases required alignment of target type [-Werror=cast-align]
MsgPtr = (CFE_MSG_Message_t *)SbMsgPayload;
^
cc1: all warnings being treated as errors
make[7]: *** [apps/kit_to/CMakeFiles/kit_to.dir/build.make:89: apps/kit_to/CMakeFiles/kit_to.dir/fsw/src/pktmgr.c.o] Error 1
make[6]: *** [CMakeFiles/Makefile2:2197: apps/kit_to/CMakeFiles/kit_to.dir/all] Error 2
make[5]: *** [Makefile:141: all] Error 2
make[4]: *** [CMakeFiles/native_default_cpu1-install.dir/build.make:57: CMakeFiles/native_default_cpu1-install] Error 2
make[3]: *** [CMakeFiles/Makefile2:823: CMakeFiles/native_default_cpu1-install.dir/all] Error 2
make[2]: *** [CMakeFiles/Makefile2:586: CMakeFiles/mission-install.dir/rule] Error 2
make[1]: *** [Makefile:227: mission-install] Error 2
make: *** [Makefile:135: topicids] Error 2
This is likely a similar error to the other issue, but it occurs in a different spot while trying to make the cFS Basecamp on a RPi 32-bit (Bullseye). I'm getting the following error when I try to "make topicids":
[ 68%] Building C object apps/kit_to/CMakeFiles/kit_to.dir/fsw/src/pktmgr.c.o
In file included from /home/pi/cfs-basecamp/apps/app_c_fw/fsw/app_inc/app_c_fw.h:61,
from /home/pi/cfs-basecamp/apps/app_c_fw/fsw/app_inc/initbl.h:34,
from /home/pi/cfs-basecamp/apps/app_c_fw/fsw/app_inc/app_c_fw.h:59,
from /home/pi/cfs-basecamp/apps/kit_to/fsw/src/app_cfg.h:39,
from /home/pi/cfs-basecamp/apps/kit_to/fsw/src/pktmgr.c:49:
/home/pi/cfs-basecamp/apps/kit_to/fsw/src/pktmgr.c: In function ‘PKTMGR_OutputTelemetry’:
/home/pi/cfs-basecamp/apps/app_c_fw/fsw/app_inc/cmdmgr.h:56:49: error: cast increases required alignment of target type [-Werror=cast-align]
#define CMDMGR_PAYLOAD_PTR(buf_ptr, cmd_type) &((const cmd_type*)buf_ptr)->Payload
^
/home/pi/cfs-basecamp/apps/kit_to/fsw/src/pktmgr.c:334:80: note: in expansion of macro ‘CMDMGR_PAYLOAD_PTR’
const KIT_TO_WrappedSbMsgTlm_Payload_t *SbMsgPayload = CMDMGR_PAYLOAD_PTR(&(SbBufPtr->Msg), KIT_TO_WrappedSbMsgTlm_t);
^~~~~~~~~~~~~~~~~~
/home/pi/cfs-basecamp/apps/kit_to/fsw/src/pktmgr.c:336:35: error: cast increases required alignment of target type [-Werror=cast-align]
MsgPtr = (CFE_MSG_Message_t *)SbMsgPayload;
^
cc1: all warnings being treated as errors
make[7]: *** [apps/kit_to/CMakeFiles/kit_to.dir/build.make:89: apps/kit_to/CMakeFiles/kit_to.dir/fsw/src/pktmgr.c.o] Error 1
make[6]: *** [CMakeFiles/Makefile2:2197: apps/kit_to/CMakeFiles/kit_to.dir/all] Error 2
make[5]: *** [Makefile:141: all] Error 2
make[4]: *** [CMakeFiles/native_default_cpu1-install.dir/build.make:57: CMakeFiles/native_default_cpu1-install] Error 2
make[3]: *** [CMakeFiles/Makefile2:823: CMakeFiles/native_default_cpu1-install.dir/all] Error 2
make[2]: *** [CMakeFiles/Makefile2:586: CMakeFiles/mission-install.dir/rule] Error 2
make[1]: *** [Makefile:227: mission-install] Error 2
make: *** [Makefile:135: topicids] Error 2