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

Potential fix for Arm Linux testing. #583

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

EricEngle-NOAA
Copy link
Contributor

Potential fix for #560

This time I have commented out shifting bits when writing a
1-byte negative number (signed char).
Take 2 was successful except for a docs generation error

error: Member IS_ARM_LINUX (macro definition) of file grib2_int.h
is not documented. (warning treated as error, aborting now).
Cleaned up with clang-format.
@EricEngle-NOAA EricEngle-NOAA marked this pull request as ready for review January 17, 2025 20:16
src/grib2_int.h Outdated
@@ -27,6 +27,9 @@

#include "grib2.h"

/** Define is system is Arm Linux. */
#define IS_ARM_LINUX __aarch64__ &&__linux__
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't want this define.

Is there a way to detect whatever is happening on ARM and handle it without having platform specific defines?

@EricEngle-NOAA
Copy link
Contributor Author

@edwardhartnett After thinking about this, and looking at the output, it is not writing in accordance with the GRIB2 standard for negative values. So 63116bb despite passing the checks is not correct. Continuing to work on this...

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.

2 participants