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

Build all of Mjolnir with -Werror #3845

Merged
merged 6 commits into from
Nov 25, 2022
Merged

Conversation

dillona
Copy link
Contributor

@dillona dillona commented Nov 24, 2022

No description provided.

@dillona
Copy link
Contributor Author

dillona commented Nov 24, 2022

I tested initially with Ubuntu 20.04 on both amd64 and aarch64. I see the failing macOS test now, so I will get that fixed.

kevinkreiser
kevinkreiser previously approved these changes Nov 25, 2022
CHANGELOG.md Outdated
@@ -3,7 +3,8 @@
* **Bug Fix**
* FIXED: valhalla_run_route was missing config logic.[#3824](https://github.com/valhalla/valhalla/pull/3824)
* FIXED: Handle hexlifying strings with unsigned chars [#3842](https://github.com/valhalla/valhalla/pull/3842)
* FIXED: Valhalla does not build on macOS with clang 14.0.0 [#3846](https://github.com/valhalla/valhalla/issues/3846)
* FIXED: Fix warning as error on macOS with clang 14.0.0 [#3846](https://github.com/valhalla/valhalla/issues/3846)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this is a correct change, as the macOS problem was observed on master before I made any warning as error changes

Copy link
Member

@kevinkreiser kevinkreiser Nov 25, 2022

Choose a reason for hiding this comment

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

If I'm not mistaken the issue was that warnings were already treated as error and that on the arm platform the char was unsigned so the compiler warned that the check for > 0 was meaningless and the build stopped because werror was already on. Are you saying this wasn't the cause? I remember others working around this issue before but i admit it was just my assumption as i dont have an arm mac to verify. I found the message about mac builds being broken a bit vague and wanted to put a better description of the problem in the changelog

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe you're describing #3842, which I was hitting on ARM Linux (Ubuntu 20.04).

For #3846, I was seeing it on x86 macOS. I believe logging.cc was already using -Werror, and the updated compiler issued a new warning for uses of sprintf, which then broke the build. I believe the only reason this hadn't show up in the x86 CI is that CI isn't using the 14.x compiler yet.

So I suppose the updated changelog text was correct; it was just different warning as error changes than the ones I have been working on.

Copy link
Member

Choose a reason for hiding this comment

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

Oops, no worries I'll fix it up in a little bit. Apologies for the mix up!

@dillona
Copy link
Contributor Author

dillona commented Nov 25, 2022

Rebased to latest master in order to get CI to run again (seemed to have some transient error earlier)

@kevinkreiser kevinkreiser merged commit a48bddf into valhalla:master Nov 25, 2022
@dillona dillona deleted the mjolnir-werror branch November 25, 2022 15:51
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.

None yet

2 participants