From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "Guillaume W. Bres" <guillaume.bressaix@gmail.com>
Cc: buildroot@busybox.net, "Yann E. MORIN" <yann.morin.1998@free.fr>
Subject: Re: [Buildroot] [RFC v3 1/2] package/pkg-meson.mk: support fortran cross-compilation
Date: Sun, 7 Aug 2022 00:13:48 +0200 [thread overview]
Message-ID: <20220807001348.351cd42c@windsurf> (raw)
In-Reply-To: <20220805143625.16542-1-guillaume.bressaix@gmail.com>
Hello,
+Yann in Cc, as there is an open issue, see below.
On Fri, 5 Aug 2022 16:36:24 +0200
"Guillaume W. Bres" <guillaume.bressaix@gmail.com> wrote:
> python-scipy is moving to a meson build infrastructure,
> and requires fortran cross-compilation
>
> Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
> ---
> package/pkg-meson.mk | 2 ++
> support/misc/cross-compilation.conf.in | 3 +++
> 2 files changed, 5 insertions(+)
I applied to master... but I went too fast, there were several
incorrect things in this commit.
+ -e "s%@TARGET_FCFLAGS@%$(call make-sq-comma-list,$($(strip $(2))))%g" \
this is wrong: $(2) in PKG_MESON_CROSSCONFIG_SED contains the CXXFLAGS,
not the FCFLAGS. So I changed that to $(4), and passed FCFLAGS as a
fourth argument to this macro.
Also, you were missing setting FCFLAGS in the
PKG_MESON_INSTALL_CROSS_CONF macro.
I fixed this in a follow-up commit:
https://git.buildroot.org/buildroot/commit/?id=cd933d676f210789730ecb25b23d902620d72072.
I hope I got it right.
Now, on to the open issue which explains why I have added Yann in Cc.
We are currently setting the C++ compiler and Fortran compiler path in
Meson's cross-compilation.conf unconditionally... even when the
toolchain has no C++ or Fortran support. So it means we're pointing to
compilers that don't exist.
Ideally, the cross-compilation.conf should be generated with no
reference to a C++ or Fortran compiler, or a /bin/false reference, and
ditto for the CXXFLAGS/FCFLAGS when there is no C++ or Fortran support.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-08-06 22:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-05 14:36 [Buildroot] [RFC v3 1/2] package/pkg-meson.mk: support fortran cross-compilation Guillaume W. Bres
2022-08-05 14:36 ` [Buildroot] [RFC v3 2/2] package/python-scipy: bump version to 1.9.0 Guillaume W. Bres
2022-08-05 14:46 ` Guillaume Bres
2022-08-08 20:58 ` Arnout Vandecappelle
2022-08-08 21:13 ` Thomas Petazzoni via buildroot
2022-08-09 8:37 ` Guillaume Bres
2022-08-27 9:11 ` Guillaume Bres
[not found] ` <CABL7CQjFbqaDd2ULBsPVyKM3cAEjCSHEdnY9vfxA=VMuRbdNjg@mail.gmail.com>
2022-09-01 19:43 ` Guillaume Bres
2022-08-06 22:13 ` Thomas Petazzoni via buildroot [this message]
2022-08-08 19:47 ` [Buildroot] [RFC v3 1/2] package/pkg-meson.mk: support fortran cross-compilation Yann E. MORIN
2022-08-09 16:25 ` Yann E. MORIN
2023-06-26 21:34 ` James Hilliard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220807001348.351cd42c@windsurf \
--to=buildroot@buildroot.org \
--cc=buildroot@busybox.net \
--cc=guillaume.bressaix@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox