Potential fix for Arm Linux testing.#583
Potential fix for Arm Linux testing.#583EricEngle-NOAA wants to merge 0 commit intoNOAA-EMC:developfrom
Conversation
src/grib2_int.h
Outdated
| #include "grib2.h" | ||
|
|
||
| /** Define is system is Arm Linux. */ | ||
| #define IS_ARM_LINUX __aarch64__ &&__linux__ |
There was a problem hiding this comment.
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?
|
@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... |
|
If this is an acceptable PR, can we issue g2c v2.1.1? |
|
If we can agree on a fix, we can merge it and do a release. But I don't want to reintroduce machine-specific macros to g2c. So what is the condition on ARM that is being detected here? |
|
@edwardhartnett the most recent change, f51770c, removes architecture/platform specific defines. In digging deeper, on ARM Linux the default |
|
OK, that's a lot better. Can we have some testing for this code? Perhaps a test which fails with the old code but succeeds with the new code? |
|
I am bit confused with this. What do you mean by old code? It would not exist. Do you mean forcing a failure in the tests? |
|
Yes, I mean a test which passes with your changes, but which would fail without your changes. |
f51770c to
e7e70ea
Compare
e7e70ea to
5f79509
Compare
|
Reset my develop branch. Will open a new PR. |
Potential fix for #560