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

* Re: [Buildroot] Support for lapack
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-06 21:58 UTC (permalink / raw)
  To: Andreas; +Cc: buildroot

Hello Andreas,

On Sun, 6 Aug 2023 23:36:34 +0200
Andreas <andreasembbuild@gmail.com> wrote:

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

Please look at the patch series at:

  https://patchwork.ozlabs.org/project/buildroot/list/?series=314036

for python-scikit-learn.

Note: this is difficult stuff to package, you're now starting with easy
stuff :-)

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] Support for lapack
  2023-08-06 21:58 ` Thomas Petazzoni via buildroot
@ 2023-08-07 13:41   ` Andreas
  2023-08-07 14:06     ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas @ 2023-08-07 13:41 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: buildroot


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

Hi Thomas,

Thanks for the hint. I followed this patch. I think from the errors I saw
my problem is most likely the toolchain. This dependency
respectively depends on BR2_TOOLCHAIN_HAS_FORTRAN # python-scipy. Since I
am migrating from an old buildroot to a recent version of it might also be
part of the problem. I know the toolchain menu in the menu config but like
to set it programatically in the build config. But I don't know how exactly
and which options depend on what. Basically I think I need a toolchain with
support for c++, wchar, threads, fortran, openblas and arch. I found this
resource:
http://underpop.online.fr/b/buildroot/en/dependencies-target-toolchain-options.htm.gz
but
still don't know how to set it properly in the config. Can you point me to
an example?

Thanks,
Andreas


Am So., 6. Aug. 2023 um 23:58 Uhr schrieb Thomas Petazzoni <
thomas.petazzoni@bootlin.com>:

> Hello Andreas,
>
> On Sun, 6 Aug 2023 23:36:34 +0200
> Andreas <andreasembbuild@gmail.com> wrote:
>
> > How do I configure Fortran properly for lapack? I need it on host for the
> > python-scikit-learn package. I get the following error.
>
> Please look at the patch series at:
>
>   https://patchwork.ozlabs.org/project/buildroot/list/?series=314036
>
> for python-scikit-learn.
>
> Note: this is difficult stuff to package, you're now starting with easy
> stuff :-)
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
>

[-- Attachment #1.2: Type: text/html, Size: 2482 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

* Re: [Buildroot] Support for lapack
  2023-08-07 13:41   ` Andreas
@ 2023-08-07 14:06     ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-07 14:06 UTC (permalink / raw)
  To: Andreas; +Cc: buildroot

Hello,

On Mon, 7 Aug 2023 15:41:53 +0200
Andreas <andreasembbuild@gmail.com> wrote:

> Thanks for the hint. I followed this patch. I think from the errors I saw
> my problem is most likely the toolchain. This dependency
> respectively depends on BR2_TOOLCHAIN_HAS_FORTRAN # python-scipy. Since I
> am migrating from an old buildroot to a recent version of it might also be
> part of the problem. I know the toolchain menu in the menu config but like
> to set it programatically in the build config.

Not sure to understand what you mean here by "set it programmatically".

> But I don't know how exactly
> and which options depend on what. Basically I think I need a toolchain with
> support for c++, wchar, threads, fortran, openblas and arch.

Then use a toolchain that provides all of this, or ask Buildroot to
build its own toolchain with those features enabled.

> I found this
> resource:
> http://underpop.online.fr/b/buildroot/en/dependencies-target-toolchain-options.htm.gz

Not sure why you go to some random website. This content comes from the
Buildroot manual, see section 18.2.4 at
https://buildroot.org/downloads/manual/manual.html.

> but
> still don't know how to set it properly in the config. Can you point me to
> an example?

I don't quite understand what problem you're trying to solve, so it's
quite difficult to help.

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
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.