All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Support for lapack
@ 2023-08-06 21:36 Andreas
  2023-08-06 21:58 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas @ 2023-08-06 21:36 UTC (permalink / raw)
  To: buildroot


[-- Attachment #1.1: Type: text/plain, Size: 2679 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3207 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-07 14:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-06 21:36 [Buildroot] Support for lapack Andreas
2023-08-06 21:58 ` Thomas Petazzoni via buildroot
2023-08-07 13:41   ` Andreas
2023-08-07 14:06     ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.