Skip to content

Is there an option so that libgfortran.a and libquadmath.a can be staticly archived into libopenblas.a when running make?  #2759

Closed

Description

@atesop

Hi all, is there an option so that libgfortran.a and libquadmath.a can be staticly archived into libopenblas.a when running make?

when I run make, I find gfortran is miss. And after run yum install libgfortran, make runs perfert.

But, I try to find out gfortran_concat_string, I get that

# nm libopenblas.a | grep fortran
                 U _gfortran_concat_string

That means gfortran has to been preinstalled when libopenblas.a is needed.

Any suggestion is appreciated. Thanks.

Activity

  1. martin-frbg commented on Aug 6, 2020

    @martin-frbg
    Collaborator

    You could try adding -static-libgfortran to your compile flags, but there is no clean way to do the same for libquadmath. (You'd probably need to hack the makefiles to add libquadmath.a directly - there have been proposals and patches for gfortran to add a -static-libquadmath option but libquadmath appears to be under a less permissive license for historical reasons.)
    If you can be sure that you will only ever use BLAS functions and no LAPACK, the easiest solution is to build with NOFORTRAN=1 or NO_LAPACK=1 as Fortran is only used in the LAPACK parts (which are mostly a direct copy of the "netlib"
    reference implementation).

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