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

Fails to build with intel's compiler #106

Open
K20shores opened this issue Jul 22, 2024 · 0 comments
Open

Fails to build with intel's compiler #106

K20shores opened this issue Jul 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@K20shores
Copy link
Contributor

TUVx fails to build with intel's compiler.

I've added a dockerfile to build tuvx with intel in this branch: https://github.com/NCAR/tuv-x/tree/intel_build

On arm-based macs, it must be built like this

docker build --platform=linux/amd64 -t tuvx -f docker/Dockerfile.intel .
docker run --platform=linux/amd64 -it tuvx 

Compiling can only happen when we explicitly disable regression tests. Even with that, we still have three failing regression tests:

The following tests FAILED:
          1 - TUV_5_4 (Failed)
          3 - TUV_5_4_YAML (Failed)
         60 - la_srb_lut (Failed)
         68 - util_config (Failed)

All but one of these have segfaults in libc.so.6 and may be related to interoperability between fortran/c++ with intel's compiler.

root@b8fe0dab331e:/build# ./tuv-x examples/tuv_5_4.json 
 Running TUV-x(0.9.0) without OpenMP support
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
libc.so.6          00007FFFF6CFA520  Unknown               Unknown  Unknown
tuv-x              00000000006AC66D  __intel_ssse3_rep     Unknown  Unknown
tuv-x              000000000045E23C  Unknown               Unknown  Unknown
tuv-x              000000000041B93E  Unknown               Unknown  Unknown
tuv-x              0000000000417463  Unknown               Unknown  Unknown
tuv-x              00000000004149A0  Unknown               Unknown  Unknown
tuv-x              0000000000413E6D  Unknown               Unknown  Unknown
libc.so.6          00007FFFF6CE1D90  Unknown               Unknown  Unknown
libc.so.6          00007FFFF6CE1E40  __libc_start_main     Unknown  Unknown
tuv-x              0000000000413D85  Unknown               Unknown  Unknown
root@b8fe0dab331e:/build# ./tuv-x examples/tuv_5_4.yml 
 Running TUV-x(0.9.0) without OpenMP support
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
libc.so.6          00007FFFF6CFA520  Unknown               Unknown  Unknown
tuv-x              00000000006AC430  __intel_ssse3_rep     Unknown  Unknown
tuv-x              000000000045E23C  Unknown               Unknown  Unknown
tuv-x              000000000041B93E  Unknown               Unknown  Unknown
tuv-x              0000000000417463  Unknown               Unknown  Unknown
tuv-x              00000000004149A0  Unknown               Unknown  Unknown
tuv-x              0000000000413E6D  Unknown               Unknown  Unknown
libc.so.6          00007FFFF6CE1D90  Unknown               Unknown  Unknown
libc.so.6          00007FFFF6CE1E40  Unknown               Unknown  Unknown
tuv-x              0000000000413D85  Unknown               Unknown  Unknown
Inconsistency detected by ld.so: dl-fini.c: 92: _dl_fini: Assertion `ns != LM_ID_BASE || i == nloaded' failed!
root@b8fe0dab331e:/build# ./test_util_config 
forrtl: severe (173): A pointer passed to DEALLOCATE points to an object that cannot be deallocated
Image              PC                Routine            Line        Source             
test_util_config   0000000000428972  Unknown               Unknown  Unknown
test_util_config   000000000041A293  Unknown               Unknown  Unknown
test_util_config   0000000000413517  Unknown               Unknown  Unknown
test_util_config   0000000000412CAD  Unknown               Unknown  Unknown
libc.so.6          00007FFFF6CE1D90  Unknown               Unknown  Unknown
libc.so.6          00007FFFF6CE1E40  __libc_start_main     Unknown  Unknown
test_util_config   0000000000412BC5  Unknown               Unknown  Unknown
root@b8fe0dab331e:/build# ./test_la_srb_lut 
 * interp4 used in rdo2xs.f
 ERROR (Musica-746904813): assertion failed
3
@K20shores K20shores added the bug Something isn't working label Jul 22, 2024
@K20shores K20shores added this to the TUV-x in CAM-SIMA milestone Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant