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

Fix #2218, add -fno-common to arch build flags #2219

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Dec 1, 2022

Checklist (Please check before submitting)

Describe the contribution
Add -fno-common to arch_build_custom_native.cmake so the CI workflows will all build with this option. This is not the default in the version of gcc/binutils used in ubuntu 20.04 on which the workflows run.

Fixes #2218

Testing performed
Build and run all tests

Expected behavior changes
Duplicate global symbol names will trigger errors, rather than being silently merged on some versions of the tools (consistent behavior).

System(s) tested on
Ubuntu 22.04 and 20.04 (workflows)

Additional context
no-common is the default in newer versions of the tools, but was not the default in the versions used in 20.04. The CFE/CFS builds should not require/rely on the use of a common section.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Add -fno-common to arch_build_custom_native.cmake so the CI workflows
will all build with this option.  This is not the default in the version
of gcc/binutils used in ubuntu 20.04 on which the workflows run.
@dzbaker dzbaker added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Dec 6, 2022
dzbaker added a commit to nasa/cFS that referenced this pull request Dec 6, 2022
*Combines:*

osal v6.0.0-rc4+dev173
cFE v7.0.0-rc4+dev229

**Includes:**

*cFS*
- #622
- #625
- #626
- #582

*osal*
- nasa/osal#1342
- nasa/osal#1341
- nasa/osal#1321

*cFE*
- nasa/cFE#2215
- nasa/cFE#2219
- nasa/cFE#2217
- nasa/cFE#2222

Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored by: Daniel Knutsen <dmknutsen@users.noreply.github.com>
Co-authored by: Avi Weiss: <thnkslprpt@users.noreply.github.com>
@dzbaker dzbaker merged commit 5529578 into nasa:main Dec 6, 2022
dzbaker added a commit to nasa/cFS that referenced this pull request Dec 6, 2022
*Combines:*

osal v6.0.0-rc4+dev173
cFE v7.0.0-rc4+dev229

**Includes:**

*cFS*
- #622
- #625
- #626
- #582

*osal*
- nasa/osal#1342
- nasa/osal#1341
- nasa/osal#1321

*cFE*
- nasa/cFE#2215
- nasa/cFE#2219
- nasa/cFE#2217
- nasa/cFE#2222

Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored by: Daniel Knutsen <dmknutsen@users.noreply.github.com>
Co-authored by: Avi Weiss: <thnkslprpt@users.noreply.github.com>
@dmknutsen dmknutsen added this to the Draco milestone Jan 18, 2023
@jphickey jphickey deleted the fix-2218-no-common branch February 1, 2023 15:26
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:FastTrack CCB:Ready Ready for discussion at the Configuration Control Board (CCB) draco-rc4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use -fno-common in CI workflow builds
4 participants