All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 4.8
@ 2020-09-19 10:01 Fabrice Fontaine
  2020-09-21  8:59 ` Chris Packham
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2020-09-19 10:01 UTC (permalink / raw)
  To: buildroot

micropython uses -Wfloat-conversion since version 1.13 and
https://github.com/micropython/micropython/commit/30840ebc9925bb8ef025dbc2d5982b1bfeb75f1b

This will result in the following build failure with gcc 4.8:
arm-none-linux-gnueabi-gcc: error: unrecognized command line option '-Wfloat-conversion'

To avoid this build failure, set CWARN to an empty value moreover, while
at it, move some duplicated variables under MICROPYTHON_MAKE_OPTS

Fixes:
 - http://autobuild.buildroot.org/results/6fe5a5ab91a5d235147e74461bb165ec2cfdc967

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/micropython/micropython.mk | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/package/micropython/micropython.mk b/package/micropython/micropython.mk
index 7c83b18b4e..a126b3eeae 100644
--- a/package/micropython/micropython.mk
+++ b/package/micropython/micropython.mk
@@ -23,22 +23,22 @@ endif
 
 # When building from a tarball we don't have some of the dependencies that are in
 # the git repository as submodules
-MICROPYTHON_MAKE_OPTS = MICROPY_PY_BTREE=0
-MICROPYTHON_MAKE_OPTS += MICROPY_PY_USSL=0
+MICROPYTHON_MAKE_OPTS += \
+	MICROPY_PY_BTREE=0 \
+	MICROPY_PY_USSL=0 \
+	CROSS_COMPILE=$(TARGET_CROSS) \
+	CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) \
+	CWARN=
 
 define MICROPYTHON_BUILD_CMDS
 	$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/mpy-cross
 	$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/ports/unix \
-		$(MICROPYTHON_MAKE_OPTS) \
-		CROSS_COMPILE=$(TARGET_CROSS) \
-		CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS)
+		$(MICROPYTHON_MAKE_OPTS)
 endef
 
 define MICROPYTHON_INSTALL_TARGET_CMDS
 	$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/ports/unix \
 		$(MICROPYTHON_MAKE_OPTS) \
-		CROSS_COMPILE=$(TARGET_CROSS) \
-		CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) \
 		DESTDIR=$(TARGET_DIR) \
 		PREFIX=/usr \
 		install
-- 
2.28.0

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

* [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 4.8
  2020-09-19 10:01 [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 4.8 Fabrice Fontaine
@ 2020-09-21  8:59 ` Chris Packham
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Packham @ 2020-09-21  8:59 UTC (permalink / raw)
  To: buildroot

On Sat, 19 Sep 2020, 10:01 PM Fabrice Fontaine, <fontaine.fabrice@gmail.com>
wrote:

> micropython uses -Wfloat-conversion since version 1.13 and
>
> https://github.com/micropython/micropython/commit/30840ebc9925bb8ef025dbc2d5982b1bfeb75f1b
>
> This will result in the following build failure with gcc 4.8:
> arm-none-linux-gnueabi-gcc: error: unrecognized command line option
> '-Wfloat-conversion'
>
> To avoid this build failure, set CWARN to an empty value moreover, while
> at it, move some duplicated variables under MICROPYTHON_MAKE_OPTS
>
> Fixes:
>  -
> http://autobuild.buildroot.org/results/6fe5a5ab91a5d235147e74461bb165ec2cfdc967
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>

Looks good thanks.

Reviewed-by: Chris Packham <judge.packham@gmail.com>

---
>  package/micropython/micropython.mk | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/package/micropython/micropython.mk b/package/micropython/
> micropython.mk
> index 7c83b18b4e..a126b3eeae 100644
> --- a/package/micropython/micropython.mk
> +++ b/package/micropython/micropython.mk
> @@ -23,22 +23,22 @@ endif
>
>  # When building from a tarball we don't have some of the dependencies
> that are in
>  # the git repository as submodules
> -MICROPYTHON_MAKE_OPTS = MICROPY_PY_BTREE=0
> -MICROPYTHON_MAKE_OPTS += MICROPY_PY_USSL=0
> +MICROPYTHON_MAKE_OPTS += \
> +       MICROPY_PY_BTREE=0 \
> +       MICROPY_PY_USSL=0 \
> +       CROSS_COMPILE=$(TARGET_CROSS) \
> +       CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) \
> +       CWARN=
>
>  define MICROPYTHON_BUILD_CMDS
>         $(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/mpy-cross
>         $(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/ports/unix \
> -               $(MICROPYTHON_MAKE_OPTS) \
> -               CROSS_COMPILE=$(TARGET_CROSS) \
> -               CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS)
> +               $(MICROPYTHON_MAKE_OPTS)
>  endef
>
>  define MICROPYTHON_INSTALL_TARGET_CMDS
>         $(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/ports/unix \
>                 $(MICROPYTHON_MAKE_OPTS) \
> -               CROSS_COMPILE=$(TARGET_CROSS) \
> -               CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) \
>                 DESTDIR=$(TARGET_DIR) \
>                 PREFIX=/usr \
>                 install
> --
> 2.28.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200921/e8a31a49/attachment.html>

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

end of thread, other threads:[~2020-09-21  8:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-19 10:01 [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 4.8 Fabrice Fontaine
2020-09-21  8:59 ` Chris Packham

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.