Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to build on Raspbian #21

Closed
CDKnightNASA opened this issue Jan 29, 2020 · 4 comments · Fixed by #24
Closed

fails to build on Raspbian #21

CDKnightNASA opened this issue Jan 29, 2020 · 4 comments · Fixed by #24
Assignees

Comments

@CDKnightNASA
Copy link
Contributor

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
[email protected]

@CDKnightNASA CDKnightNASA self-assigned this Jan 29, 2020
@jphickey
Copy link
Contributor

I have fixes for these! These are the same general issue as in nasa/cFE#313. If you want you can assign this to me and just turn off -Wcast-align in your build for now.

@skliper
Copy link
Contributor

skliper commented Apr 8, 2020

@astrogeco Did this get fixed with your last IC? Maybe a link was missed?

@astrogeco
Copy link
Contributor

@astrogeco Did this get fixed with your last IC? Maybe a link was missed?

Yep, we just didn't link it using the "fix" nomenclature. I'll close it.

@astrogeco
Copy link
Contributor

astrogeco commented Apr 8, 2020

Fixed by PR #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants