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

Ctest failure on ARM64 #560

Open
ccassidy-maxar opened this issue Dec 4, 2024 · 2 comments
Open

Ctest failure on ARM64 #560

ccassidy-maxar opened this issue Dec 4, 2024 · 2 comments

Comments

@ccassidy-maxar
Copy link

ccassidy-maxar commented Dec 4, 2024

Trying to compile on ARM64 and ctest is throwing an error on a single test with v2.0.0, while x86 works fine. Is than an expected outcome for ARM64 tests? Thanks!

ARM64 log:

24: Test command: /NCEPLIBS-g2c-2.0.0/build/tests/tst_io
24: Working Directory: /NCEPLIBS-g2c-2.0.0/build/tests
24: Test timeout computed to be: 1500
24: Testing g2c I/O functions.
24: Testing simple calls with 4-byte ints...ok!
24: Testing template calls with 4-byte ints...ok!
24: Testing template calls with 1-byte ints...
24/42 Test #24: tst_io ...........................***Failed    0.00 sec

x86 log:

24: Test command: /NCEPLIBS-g2c-2.0.0/build/tests/tst_io
24: Working Directory: /NCEPLIBS-g2c-2.0.0/build/tests
24: Test timeout computed to be: 1500
24: Testing g2c I/O functions.
24: Testing simple calls with 4-byte ints...ok!
24: Testing template calls with 4-byte ints...ok!
24: Testing template calls with 1-byte ints...ok!
24: Testing template calls with 2-byte ints...ok!
24: Testing template calls with 8-byte ints...uval_in 1844674407370955161
24: val_in -922337203685477580
24: ok!
24: SUCCESS!
24/42 Test #24: tst_io ...........................   Passed    0.00 sec
@ccassidy-maxar ccassidy-maxar changed the title Ctest failure on ARM Ctest failure on ARM64 Dec 4, 2024
@edwardhartnett
Copy link
Contributor

@EricEngle-NOAA
Copy link
Contributor

We have experience this same failure with the g2c builds for conda-forge (https://github.com/conda-forge/g2clib-
feedstock/pull/42). The culprit is the reading of the 2nd value for 1-byte ints

if ((ret = g2c_file_io_byte(f, G2C_FILE_READ, &val_in)))

A value of -120 is written to file as char, but when read from the file into a char, I am seeing a value of -8 in my testing on my local Ubuntu Linux Arm VM.

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

No branches or pull requests

3 participants