-
Notifications
You must be signed in to change notification settings - Fork 262
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
compilation fail on linux aarch64 ppc64le and s390x because of -Werror=type-limits #249
Comments
i got the same error under GCC arm-linux-gnueabihf |
https://github.com/virtuosonic/loguru/ fixes this |
In the new sed -r -i 's/;?-Werror\b//' CMakeLists.txt test/CMakeLists.txt It’s pretty clear that the warning, while technically correct, is not indicating a real problem here. The patch virtuosonic@e1ffdc4 from the fork linked above does look, at a glance, like a correct way to avoid the warning without changing the code’s behavior across architectures and compilers. |
Actually there no risk if the variable c in the loops is signed or unsigned because it isn't modified, my next step would be to make it const, to make this clear to the compiler. |
You're probably right, when I originally wrote the CMakeLists.txt file I just added a fairly aggressive block of warning flags to ensure I wasn't breaking anything super obvious. I definitely didn't consider the impact that In either case, the default out-of-the-box CMakeLists.txt should definitely not have |
Sure, a CMake option that defaults to disabling |
Hello, I'm trying to package Docling in Nix (NixOS/nixpkgs#353183) and |
Changes: - Provides a workaround for [emilk#249](emilk#249) - Adds an option that can be used to disable compile warnings fork the loguru library. This could be useful for users who just want to build the library and dont care about the warnings. (or they just aren't in a position to fix them anyways). Notes: - The default behaviour remains the same: compiler-warnings are enabled by default when the project is built as a top-level project, and disabled by default when the project is included as a sub-project with either add_subdirectory() or FetchContent()
Changes: - Provides a workaround for [emilk#249](emilk#249) - Adds an option that can be used to disable compile warnings for the loguru library. This could be useful for users who just want to build the library and dont care about the warnings. (or they just aren't in a position to fix them anyways). Notes: - The default behaviour remains the same: compiler-warnings are enabled by default when the project is built as a top-level project, and disabled by default when the project is included as a sub-project with either add_subdirectory() or FetchContent()
Changes: - Provides a workaround for [emilk#249](emilk#249) - Adds an option that can be used to disable compile warnings for the loguru library. This could be useful for users who just want to build the library and dont care about the warnings. (or they just aren't in a position to fix them anyways). Notes: - The default behaviour remains the same: compiler-warnings are enabled by default when the project is built as a top-level project, and disabled by default when the project is included as a sub-project with either add_subdirectory() or FetchContent()
Fixed in nix by adding 2 patches, find the derivation at https://github.com/NixOS/nixpkgs/blob/f6ecda6ad047ca780874895cb98d8643c6890f6f/pkgs/by-name/lo/loguru/package.nix This builds successfully on Linux and Darwin (macos) on aarch64 and x86_64. @emilk would it be possible to cherry pick these patches in the official version? |
See this example log
The text was updated successfully, but these errors were encountered: