Skip to content

Linking fails with AOCC-5.0.0 compilers #13181

Open
@bourdin

Description

@bourdin

Thank you for taking the time to submit an issue!

Background information

What version of Open MPI are you using? (e.g., v4.1.6, v5.0.1, git branch name and hash, etc.)

v5.0.7

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

Trying to build from source.

If you are building/installing from a git clone, please copy-n-paste the output from git submodule status.

Please describe the system on which you are running

rockylinux 9.5 (RHEL 9.5)


Details of the problem

Running configure with the following options:

./configure --prefix=/2/sw/HPC/openmpi/5.0.7 CC=clang FC=flang CXX=clang++ --with-slurm

I get the following error message while trying to link libmpi.so:

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __extendhfsf2
>>> referenced by ../../../ompi/.libs/libmpi.so

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __truncsfhf2
>>> referenced by ../../../ompi/.libs/libmpi.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1478: ompi_info] Error 1
make[2]: Leaving directory '/2/sw/HPC/src/openmpi-5.0.7/ompi/tools/ompi_info'
make[1]: *** [Makefile:2710: all-recursive] Error 1
make[1]: Leaving directory '/2/sw/HPC/src/openmpi-5.0.7/ompi'
make: *** [Makefile:1539: all-recursive] Error 1

Full report is at https://macdrive.mcmaster.ca/f/5879ebda7cfe49c283fe/

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