[Buildroot] Support for lapack

Andreas andreasembbuild at gmail.com
Sun Aug 6 21:36:34 UTC 2023


Hi,

How do I configure Fortran properly for lapack? I need it on host for the
python-scikit-learn package. I get the following error.

-- The Fortran compiler identification is unknown
-- The C compiler identification is GNU 8.3.0
CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_Fortran_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
  path to the compiler, or to the compiler name if it is in the PATH.


-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring incomplete, errors occurred!
See also
"/buildroot/output/build/host-lapack-3.10.1/buildroot-build/CMakeFiles/CMakeOutput.log".
See also
"/buildroot/output/build/host-lapack-3.10.1/buildroot-build/CMakeFiles/CMakeError.log".

################################################################################
#
# python-scikit-learn
#
################################################################################

PYTHON_SCIKIT_LEARN_VERSION = 1.3.0
PYTHON_SCIKIT_LEARN_SOURCE =
scikit-learn-$(PYTHON_SCIKIT_LEARN_VERSION).tar.gz
PYTHON_SCIKIT_LEARN_SITE =
https://files.pythonhosted.org/packages/72/cd/4761675df1b3dd93072c89697278f3ed3dc004a60c034cd2603c43ff64b5
PYTHON_SCIKIT_LEARN_SETUP_TYPE = setuptools
PYTHON_SCIKIT_LEARN_LICENSE = BSD-3-Clause
PYTHON_SCIKIT_LEARN_LICENSE_FILES = COPYING
PYTHON_SCIKIT_LEARN_DEPENDENCIES = \
host-python-cython \
host-python-scipy \
python-joblib \
python-threadpoolctl

# disable test execution when cross compiling
PYTHON_SCIKIT_LEARN_ENV = PYTHON_CROSSENV=1

$(eval $(python-package))

################################################################################
#
# lapack
#
################################################################################

LAPACK_VERSION = 3.10.1
LAPACK_LICENSE = BSD-3-Clause
LAPACK_LICENSE_FILES = LICENSE
LAPACK_SITE = $(call github,Reference-LAPACK,lapack,v$(LAPACK_VERSION))
LAPACK_CPE_ID_VENDOR = lapack_project
LAPACK_INSTALL_STAGING = YES
LAPACK_SUPPORTS_IN_SOURCE_BUILD = NO
LAPACK_CONF_OPTS = -DLAPACKE=ON -DCBLAS=ON

ifeq ($(BR2_PACKAGE_LAPACK_COMPLEX),y)
LAPACK_CONF_OPTS += \
-DBUILD_COMPLEX=ON \
-DBUILD_COMPLEX16=ON \
-DLAPACKE_BUILD_COMPLEX=ON \
-DLAPACKE_BUILD_COMPLEX16=ON
else
LAPACK_CONF_OPTS += \
-DBUILD_COMPLEX=OFF \
-DBUILD_COMPLEX16=OFF \
-DLAPACKE_BUILD_COMPLEX=OFF \
-DLAPACKE_BUILD_COMPLEX16=OFF
endif

$(eval $(cmake-package))
$(eval $(host-cmake-package))

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20230806/f5acb4ae/attachment.html>


More information about the buildroot mailing list