All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/eigen: override Fortran path
@ 2021-08-19 14:25 Matthew Weber via buildroot
  2021-08-19 20:39 ` Thomas Petazzoni
  2021-09-06 12:26 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Matthew Weber via buildroot @ 2021-08-19 14:25 UTC (permalink / raw)
  To: buildroot; +Cc: Matthew Weber

The language detection is falling back to the host system
Fortran compiler. An example of this is in RHEL7.9
(gcc4.8.5 20150623 (Red Hat 4.8.5-44)).

This patch bypasses detection and points to the location
where the compiler would be installed (if present). In the
cases where it doesn't exist, the detection falls through
and leaves Fortran disabled.

Fixes:
http://autobuild.buildroot.net/results/8354da225d1e5e337aa7ea62a7e6524fb5f1135f/

Signed-off-by: Matthew Weber <matthew.weber@collins.com>
---
 package/eigen/eigen.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk
index c9998da357..5c726c9d71 100644
--- a/package/eigen/eigen.mk
+++ b/package/eigen/eigen.mk
@@ -15,6 +15,7 @@ EIGEN_SUPPORTS_IN_SOURCE_BUILD = NO
 
 # Default Eigen CMake installs .pc file in /usr/share/pkgconfig
 # change it to /usr/lib/pkgconfig, to be consistent with other packages.
-EIGEN_CONF_OPTS = -DPKGCONFIG_INSTALL_DIR=/usr/lib/pkgconfig
+EIGEN_CONF_OPTS = -DPKGCONFIG_INSTALL_DIR=/usr/lib/pkgconfig \
+	-DCMAKE_Fortran_COMPILER=${TARGET_FC}
 
 $(eval $(cmake-package))
-- 
2.17.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/eigen: override Fortran path
  2021-08-19 14:25 [Buildroot] [PATCH] package/eigen: override Fortran path Matthew Weber via buildroot
@ 2021-08-19 20:39 ` Thomas Petazzoni
  2021-09-06 12:26 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2021-08-19 20:39 UTC (permalink / raw)
  To: Matthew Weber via buildroot; +Cc: Matthew Weber, buildroot

On Thu, 19 Aug 2021 09:25:58 -0500
Matthew Weber via buildroot <buildroot@busybox.net> wrote:

> The language detection is falling back to the host system
> Fortran compiler. An example of this is in RHEL7.9
> (gcc4.8.5 20150623 (Red Hat 4.8.5-44)).
> 
> This patch bypasses detection and points to the location
> where the compiler would be installed (if present). In the
> cases where it doesn't exist, the detection falls through
> and leaves Fortran disabled.
> 
> Fixes:
> http://autobuild.buildroot.net/results/8354da225d1e5e337aa7ea62a7e6524fb5f1135f/
> 
> Signed-off-by: Matthew Weber <matthew.weber@collins.com>

Thanks for looking into this!

>  # Default Eigen CMake installs .pc file in /usr/share/pkgconfig
>  # change it to /usr/lib/pkgconfig, to be consistent with other packages.
> -EIGEN_CONF_OPTS = -DPKGCONFIG_INSTALL_DIR=/usr/lib/pkgconfig
> +EIGEN_CONF_OPTS = -DPKGCONFIG_INSTALL_DIR=/usr/lib/pkgconfig \
> +	-DCMAKE_Fortran_COMPILER=${TARGET_FC}

We use $(...) to reference make variables, not ${...}. This is reported
by "make check-package". I fixed that and applied to master. Thanks!

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

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

* Re: [Buildroot] [PATCH] package/eigen: override Fortran path
  2021-08-19 14:25 [Buildroot] [PATCH] package/eigen: override Fortran path Matthew Weber via buildroot
  2021-08-19 20:39 ` Thomas Petazzoni
@ 2021-09-06 12:26 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-09-06 12:26 UTC (permalink / raw)
  To: Matthew Weber via buildroot; +Cc: Matthew Weber, buildroot

>>>>> "Matthew" == Matthew Weber via buildroot <buildroot@busybox.net> writes:

 > The language detection is falling back to the host system
 > Fortran compiler. An example of this is in RHEL7.9
 > (gcc4.8.5 20150623 (Red Hat 4.8.5-44)).

 > This patch bypasses detection and points to the location
 > where the compiler would be installed (if present). In the
 > cases where it doesn't exist, the detection falls through
 > and leaves Fortran disabled.

 > Fixes:
 > http://autobuild.buildroot.net/results/8354da225d1e5e337aa7ea62a7e6524fb5f1135f/

 > Signed-off-by: Matthew Weber <matthew.weber@collins.com>

Committed to 2021.02.x and 2021.05.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-09-06 12:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19 14:25 [Buildroot] [PATCH] package/eigen: override Fortran path Matthew Weber via buildroot
2021-08-19 20:39 ` Thomas Petazzoni
2021-09-06 12:26 ` Peter Korsgaard

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.