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

Intel LLVM 2023.2.x msan issue #436

Open
AlexanderRichert-NOAA opened this issue Sep 12, 2023 · 0 comments
Open

Intel LLVM 2023.2.x msan issue #436

AlexanderRichert-NOAA opened this issue Sep 12, 2023 · 0 comments

Comments

@AlexanderRichert-NOAA
Copy link

In recent versions of IntelLLVM (2023.2.x or so), using '-check all' can cause issues. When I went to install pfunit 4.7.3 using external fargparse 1.5.0 with intel oneapi 2023.2.0, I got error that looked like the following during the pfunit build:

/tmp/user/spack-stage/spack-stage-fargparse-1.5.0-5qkahh4tiiyqxjuoy4ralefmfyr6gy7j/spack-src/src/StoreFalseAction.F90:54: undefined reference to `__msan_warning_with_origin_noreturn'
/tmp/user/spack-stage/spack-stage-fargparse-1.5.0-5qkahh4tiiyqxjuoy4ralefmfyr6gy7j/spack-src/src/StoreFalseAction.F90:54: undefined reference to `__msan_chain_origin'
/tmp/user/spack-stage/spack-stage-fargparse-1.5.0-5qkahh4tiiyqxjuoy4ralefmfyr6gy7j/spack-src/src/StoreFalseAction.F90:54: undefined reference to `__msan_chain_origin'
/tmp/user/spack-stage/spack-stage-fargparse-1.5.0-5qkahh4tiiyqxjuoy4ralefmfyr6gy7j/spack-src/src/StoreFalseAction.F90:54: undefined reference to `__msan_chain_origin'
/tmp/user/spack-stage/spack-stage-fargparse-1.5.0-5qkahh4tiiyqxjuoy4ralefmfyr6gy7j/spack-src/src/StoreFalseAction.F90:54: undefined reference to `__msan_warning_with_origin_noreturn'
/tmp/user/spack-stage/spack-stage-fargparse-1.5.0-5qkahh4tiiyqxjuoy4ralefmfyr6gy7j/spack-src/src/StoreFalseAction.F90:54: undefined reference to `__msan_warning_with_origin_noreturn'
/tmp/user/spack-stage/spack-stage-fargparse-1.5.0-5qkahh4tiiyqxjuoy4ralefmfyr6gy7j/spack-src/src/StoreFalseAction.F90:54: undefined reference to `__msan_warning_with_origin_noreturn'

As with other codes where I've run into this, I can make this go away by adding '-check nouninit' after '-check all'. For example, in my spack-based installation, I added the following patch for fargparse and pfunit:

    def patch(self):
        filter_file(r'set.check_all "-check all".', r'set(check_all "-check all -check nouninit")', "cmake/IntelLLVM.cmake")
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

2 participants
@AlexanderRichert-NOAA and others