Skip to content

Intel LLVM 2023.2.x msan issue #436

@AlexanderRichert-NOAA

Description

@AlexanderRichert-NOAA

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions