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

Add the /bigobj flag to Windows Debug builds. #1009

Merged
merged 1 commit into from
May 11, 2022

Conversation

clalancette
Copy link
Contributor

@clalancette clalancette commented May 11, 2022

Windows debug builds generate a lot more sections, so when
building in debug mode we need to add the /bigobj flag to
avoid failing the build. More details are in the link in
the code comment.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

This should fix the failing Windows Debug builds that have happened the last two nights, like https://ci.ros2.org/view/nightly/job/nightly_win_deb/2354/

Windows debug builds generate a lot more sections, so when
building in debug mode we need to add the /bigobj flag to
avoid failing the build.  More details are in the link in
the code comment.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette clalancette requested a review from a team as a code owner May 11, 2022 13:39
@clalancette clalancette requested review from emersonknapp and hidmic and removed request for a team May 11, 2022 13:39
@clalancette
Copy link
Contributor Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status
  • Windows Debug Build Status

@clalancette
Copy link
Contributor Author

@Blast545 FYI

@Blast545
Copy link
Contributor

@clalancette FYI It only happened on the last nightlies after #968
nightly_win_deb#2353 regression is unrelated.

Copy link
Contributor

@Blast545 Blast545 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current error on the nightlies shows fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj for test_play_services.cpp and test_play.cpp so this LGTM.

@Blast545
Copy link
Contributor

Test failures on linux https://ci.ros2.org/job/ci_linux/16681/ are a known flaky issue reported #862.

@clalancette
Copy link
Contributor Author

CI is mostly green, and have approvals. Merging this in.

@clalancette clalancette merged commit 848e2bb into master May 11, 2022
@clalancette clalancette deleted the clalancette/add-windows-debug-bigobj branch May 11, 2022 17:01
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 this pull request may close these issues.

3 participants