Skip to content

OpenBLAS does not export xerbla_, causing undefined reference when linking ScaLAPACK #6219

Closed

Description

@wamuriel

Hello OpenBLAS developers,

I have encountered a linking issue when using a custom-compiled OpenBLAS installation together with ScaLAPACK 2.2.3.

The linker reports the following error:

/usr/bin/x86_64-linux-gnu-ld.bfd: ../../lib/libscalapack.so.2.2.3: undefined reference to `xerbla_'

After inspecting the exported symbols in my OpenBLAS shared library, I found the following:

000000000027e570 t xerbla_
0000000000a3c270 T xerbla_array_

The xerbla_ symbol appears as a local symbol (t), whereas xerbla_array_ is exported (T). Consequently, ScaLAPACK cannot resolve the external reference to xerbla_ during linking.

Thank you for your help.

Wilver Muriel

Activity

  1. martin-frbg commented on Nov 3, 2026

    @martin-frbg
    Collaborator

    Oops, sorry, seems this got overlooked when default symbol visibility was changed to hidden in #5577 (shortly after the last release). Should be fixed by #6220 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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