tblis: develop branch: Build failure when configure-plugin on Apple Silicon

Hello, I’m experiencing many difficulties building the develop branch of TBLIS, mainly regarding it’s linkage to BLIS. First attempt I tried to let TBLIS download its own version of BLIS:

./configure \
--prefix=/Users/jeremymartinon/Documents/FAU/Research/tblis_dev/tblis/tblis-install \
  CC=gcc-14 \
  CXX=g++-14 

But I got this error:

checking for blis... no
checking for blis... downloading BLIS 15d36b1e from https://github.com/flame/blis
Cloning into 'blis'...
remote: Enumerating objects: 52470, done.
remote: Counting objects: 100% (16066/16066), done.
remote: Compressing objects: 100% (1544/1544), done.
remote: Total 52470 (delta 15167), reused 14526 (delta 14522), pack-reused 36404 (from 2)
Receiving objects: 100% (52470/52470), 49.92 MiB | 25.17 MiB/s, done.
Resolving deltas: 100% (42574/42574), done.
configure: error: an error occurred downloading BLIS

Then I tried to manually link a copy of BLIS:

./configure \
  --prefix=/Users/jeremymartinon/Documents/FAU/Research/tblis_dev/tblis/tblis-install \
  CC=gcc-14 \
  CXX=g++-14 \
  --with-blis-dir=/Users/jeremymartinon/Documents/FAU/Research/blis/blis-install

Leading to this error:

checking for blis... no
checking for blis... not found
configure: error: Could not find BLIS in the specified location

Note that here I provided the install directory of BLIS (blis-install) but if I provide the source directory the problem remains the same. I’ve been able to overcome this difficulty by manually exporting PKG_CONFIG_PATH to point at the matching blis.pc:

export PKG_CONFIG_PATH=/Users/jeremymartinon/Documents/FAU/Research/blis/blis-install/share/pkgconfig:$PKG_CONFIG_PATH
./configure \
  --prefix=/Users/jeremymartinon/Documents/FAU/Research/tblis_dev/tblis/tblis-install \
  CC=gcc-14 \
  CXX=g++-14

Now the configure works.

checking for blis... yes
checking for blis... /Users/jeremymartinon/Documents/FAU/Research/blis/blis-install
checking build system type... arm-apple-darwin24.5.0
checking host system type... arm-apple-darwin24.5.0

However during the compilation I have this plugin error:

make-j11
[...]
configure-plugin: reading configuration registry.../Users/jeremymartinon/Documents/FAU/Research/blis/blis-install/share/blis/configure-plugin: line 597: ./src/plugin/config_registry: No such file or directory
done.
configure-plugin: checking configuration against contents of 'config_registry'.
configure-plugin: 'user-specified configuration '' is NOT registered!
configure-plugin: 
configure-plugin: *** Cannot continue with unregistered configuration ''. ***
configure-plugin: 
make[2]: *** [src/plugin/Makefile] Error 1

I haven’t been able to overcome this issue. It seems that configure-plugin is executed from blis-install/share/blis and hard codes ./src/plugin/config_registry. But this path doesn’t exist in blis-install/share/blis. This path only exists in the TBLIS source tree but the script still uses the install prefix returned by pkg-config, so the lookup happens in the wrong place.

Any ideas on how to fix this ? Thank you so much for your wonderful work !

Environment:

  • macbook pro M3 Pro 11-cores
  • macOS 15.5
  • gcc-14.2.0 (Homebrew)
  • BLIS version 1.1 (latest main branch as of 06/06/25)
  • TBLIS develop branch (latest as of 06/06/25)

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 16 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@JMartinon I just pushed what will hopefully be the final 2.0 version to the develop branch. Please give it a try!