Skip to content

fails to build on Raspbian #21

@CDKnightNASA

Description

@CDKnightNASA

Describe the bug
Building to_lab under Raspbian (a Debian variant for Raspberry Pi SBC's) fails due to alignment issues.

/home/pi/cFS/apps/to_lab/fsw/src/to_lab_app.c:408:25: error: cast increases required alignment of target type [-Werror=cast-align]
     CFE_SB_TimeStampMsg((CFE_SB_Msg_t *) &to_hk_status);
                         ^
/home/pi/cFS/apps/to_lab/fsw/src/to_lab_app.c:409:20: error: cast increases required alignment of target type [-Werror=cast-align]
     CFE_SB_SendMsg((CFE_SB_Msg_t *)&to_hk_status);
                    ^

To Reproduce
Build on Raspbian.

Expected behavior
No compiler errors.

Code snips
If applicable, add references to the software.

System observed on:
Raspberry Pi Zero W

Additional context
Add any other context about the problem here.

Reporter Info
Christopher.D.Knight@nasa.gov

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions