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

LLVM Flang Build error in unit test #141

Open
mathomp4 opened this issue May 7, 2024 · 0 comments
Open

LLVM Flang Build error in unit test #141

mathomp4 opened this issue May 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mathomp4
Copy link
Collaborator

mathomp4 commented May 7, 2024

After using @scivision 's nice "build LLVM Flang" script to build LLVM Flang on bucy, the usual build test of GFE failed.

Steps to reproduce:

ml comp/llvm-flang/2024-05-06 mpi/openmpi/5.0.2/llvm-flang-2024-05-06

cmake -B build-Flang-Debug -S . --install-prefix=$(pwd)/install-Flang-Debug -DSKIP_OPENMP=ON -DENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build build-Flang-Debug --target install

cmake -B build-Flang-Debug -S . --install-prefix=$(pwd)/install-Flang-Debug -DSKIP_OPENMP=ON -DENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build build-Flang-Debug --target install

This is our usual two-step process as the first build builds pFUnit and the second build then sees pFUnit to build the unit tests.

When you do so you get a couple types of failures. Many of the first type, and a couple of the second:

[ 70%] Building Fortran object fArgParse/tests/CMakeFiles/fargparse_tests.dir/Test_ArgParser.F90.o
error: Semantic errors in /home/mathomp4/GFE-Flang/GFE/build-Flang-Debug/fArgParse/tests/Test_ArgParser.F90
/home/mathomp4/GFE-Flang/GFE/build-Flang-Debug/fArgParse/tests/Test_ArgParser.F90:25:17: error: No specific function of generic 'parse_args' matches the actual arguments
        options = p%parse_args(arguments)
                  ^^^^^^^^^^^^^^^^^^^^^^^
...
/home/mathomp4/GFE-Flang/GFE/fArgParse/tests/Test_ArgParser.pf:629:7: error: No specific subroutine of generic 'cast' matches the actual arguments
        call cast(options%at('potential'), p_vals)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
@mathomp4 mathomp4 added the bug Something isn't working label May 7, 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

2 participants