Skip to content

[email protected] build fails with [email protected]: ld: ../libopenblas_skylakex-r0.3.23.so: undefined reference to `dgetrf_single' #38631

@eugeneswalker

Description

@eugeneswalker

Steps to reproduce the issue

[email protected] is failing build using:

  • spack@develop (3ccc527 from Wed Jun 28 17:23:50 2023 -0500)
  • GNU Make 4.4.1
  • GCC 11.1.0
  • Ubuntu 20.04, x86_64

The problem seems to have been introduced as a result of

Concretization:

$> spack spec -I openblas
Input spec
--------------------------------
 -   openblas

Concretized
--------------------------------
 -   [email protected]%[email protected]~bignuma~consistent_fpcsr+fortran~ilp64+locking+pic+shared build_system=makefile symbol_suffix=none threads=none arch=linux-ubuntu20.04-cascadelake
[+]      ^[email protected]%[email protected]+cpanm+open+shared+threads build_system=generic arch=linux-ubuntu20.04-cascadelake
[+]          ^[email protected]%[email protected]+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-ubuntu20.04-cascadelake
[+]          ^[email protected]%[email protected]~debug~pic+shared build_system=generic arch=linux-ubuntu20.04-cascadelake
[+]              ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-cascadelake
[+]                  ^[email protected]%[email protected] build_system=autotools libs=shared,static arch=linux-ubuntu20.04-cascadelake
[+]          ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-cascadelake
[+]              ^[email protected]%[email protected] build_system=autotools patches=bbf97f1 arch=linux-ubuntu20.04-cascadelake
[+]                  ^[email protected]%[email protected]~symlinks+termlib abi=none build_system=autotools arch=linux-ubuntu20.04-cascadelake
[+]                      ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-cascadelake
[+]          ^[email protected]%[email protected]+optimize+pic+shared build_system=makefile arch=linux-ubuntu20.04-cascadelake

Error:

$> spack install openblas
...
==> Installing openblas-0.3.23-cebezofwmpascso2mko6r4gqxampxod3
==> No binary for openblas-0.3.23-cebezofwmpascso2mko6r4gqxampxod3 found: installing from source
==> Using cached archive: /spack/var/spack/cache/_source-cache/archive/5d/5d9491d07168a5d00116cdc068a40022c3455bf9293c7cb86a65b1054d7e5114.tar.gz
==> No patches needed for openblas
==> openblas: Executing phase: 'edit'
==> openblas: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j32' '-s' 'CC=/spack/lib/spack/env/gcc/gcc' 'FC=/spack/lib/spack/env/gcc/gfortran' 'MAKE_NB_JOBS=0' 'ARCH=x86_64' 'TARGET=SKYLAKEX' 'USE_LOCKING=1' 'USE_OPENMP=0' 'USE_THREAD=0' 'RANLIB=ranlib' 'libs' 'netlib' 'shared'

7 errors found in build log:
     2578    ar: `u' modifier ignored since `D' is the default (see `U')
     2579    ar: `u' modifier ignored since `D' is the default (see `U')
     2580    ar: `u' modifier ignored since `D' is the default (see `U')
     2581    ar: `u' modifier ignored since `D' is the default (see `U')
     2582    ar: `u' modifier ignored since `D' is the default (see `U')
     2583    ar: `u' modifier ignored since `D' is the default (see `U')
  >> 2584    /usr/bin/ld: ../libopenblas_skylakex-r0.3.23.so: undefined reference to `cgetrf_single'
  >> 2585    /usr/bin/ld: ../libopenblas_skylakex-r0.3.23.so: undefined reference to `sgetrf_single'
  >> 2586    /usr/bin/ld: ../libopenblas_skylakex-r0.3.23.so: undefined reference to `zgetrf_single'
  >> 2587    /usr/bin/ld: ../libopenblas_skylakex-r0.3.23.so: undefined reference to `dgetrf_single'
  >> 2588    collect2: error: ld returned 1 exit status
  >> 2589    make[1]: *** [Makefile:196: ../libopenblas_skylakex-r0.3.23.so] Error 1
  >> 2590    make: *** [Makefile:132: shared] Error 2

Error message

Error message
... see above

Information on your system

  • Spack: 0.21.0.dev0 (3ccc527)
  • Python: 3.8.10
  • Platform: linux-ubuntu20.04-cascadelake
  • Concretizer: clingo

Additional information

spack-build-env.txt
spack-build-out.txt

@sethrj @wspear

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions