All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mongrel2: fix build with gcc 4.8
@ 2022-02-09 19:20 Fabrice Fontaine
  2022-02-14 20:46 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-02-09 19:20 UTC (permalink / raw)
  To: buildroot; +Cc: Lionel Orry, Fabrice Fontaine

Fix the following build failure raised since bump to version 1.13.0 in
commit b0a7bffad9e041d9920171802621b67903f9389e:

arm-none-linux-gnueabi-gcc: error: unrecognized command line option '-Wimplicit-fallthrough=0'

Fixes:
 - http://autobuild.buildroot.org/results/de324b733e09057c87352220069fe65f6e535eb8

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .../0003-fix-build-with-gcc-4.8.patch         | 60 +++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 package/mongrel2/0003-fix-build-with-gcc-4.8.patch

diff --git a/package/mongrel2/0003-fix-build-with-gcc-4.8.patch b/package/mongrel2/0003-fix-build-with-gcc-4.8.patch
new file mode 100644
index 0000000000..eebfce0487
--- /dev/null
+++ b/package/mongrel2/0003-fix-build-with-gcc-4.8.patch
@@ -0,0 +1,60 @@
+From cc2dd3995dc9a9e6f0e705e11e791f3f3c7d7326 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 18 Jan 2022 22:41:36 +0100
+Subject: [PATCH] fix build with gcc 4.8
+
+Drop "-Wno-unused-const-variable -Wimplicit-fallthrough=0" as
+"-Wno-implicit-fallthrough -Wno-unused-const-variable" is already set in
+CFLAGS. This will avoid the following build failure with gcc 4.8 raised
+since version 1.13.0 and
+https://github.com/mongrel2/mongrel2/commit/725209578599bd7784753d86aee34f6441ff78a5:
+
+arm-none-linux-gnueabi-gcc: error: unrecognized command line option '-Wimplicit-fallthrough=0'
+
+Fixes:
+ - http://autobuild.buildroot.org/results/de324b733e09057c87352220069fe65f6e535eb8
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/mongrel2/mongrel2/pull/354]
+---
+ Makefile            | 1 -
+ tools/m2sh/Makefile | 4 ++--
+ 2 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index f6627ed..fb8d028 100644
+--- a/Makefile
++++ b/Makefile
+@@ -22,7 +22,6 @@ all: bin/mongrel2 tests m2sh procer
+ 
+ ${OBJECTS_NOEXT}: CFLAGS += ${NOEXTCFLAGS}
+ ${OBJECTS}: | builddirs
+-$(RAGEL_OBJECTS): CFLAGS += -Wno-unused-const-variable -Wimplicit-fallthrough=0
+ 
+ .PHONY: builddirs
+ builddirs:
+diff --git a/tools/m2sh/Makefile b/tools/m2sh/Makefile
+index 83e7ae4..86364af 100644
+--- a/tools/m2sh/Makefile
++++ b/tools/m2sh/Makefile
+@@ -10,7 +10,7 @@ LIB_SRC=$(filter-out src/m2sh.c,${SOURCES})
+ LIB_OBJ=$(filter-out src/m2sh.o,${OBJECTS})
+ RAGEL_OBJECTS=src/lexer.o src/cli.o
+ 
+-$(RAGEL_OBJECTS): CFLAGS += -Wno-unused-const-variable -Wimplicit-fallthrough=0 -Wno-unused-parameter
++$(RAGEL_OBJECTS): CFLAGS += -Wno-unused-parameter
+ 
+ all: ../lemon/lemon tests build/m2sh
+ 
+@@ -20,7 +20,7 @@ dev: all
+ install: build/m2sh
+ 	install build/m2sh ${DESTDIR}${PREFIX}/bin
+ 
+-src/parser.o: CFLAGS += -Wno-unused-const-variable -Wno-unused-parameter
++src/parser.o: CFLAGS += -Wno-unused-parameter
+ 
+ build/libm2sh.a: ${LIB_OBJ}
+ 	mkdir -p build
+-- 
+2.34.1
+
-- 
2.34.1

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

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

* Re: [Buildroot] [PATCH 1/1] package/mongrel2: fix build with gcc 4.8
  2022-02-09 19:20 [Buildroot] [PATCH 1/1] package/mongrel2: fix build with gcc 4.8 Fabrice Fontaine
@ 2022-02-14 20:46 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-02-14 20:46 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: Lionel Orry



On 09/02/2022 20:20, Fabrice Fontaine wrote:
> Fix the following build failure raised since bump to version 1.13.0 in
> commit b0a7bffad9e041d9920171802621b67903f9389e:
> 
> arm-none-linux-gnueabi-gcc: error: unrecognized command line option '-Wimplicit-fallthrough=0'
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/de324b733e09057c87352220069fe65f6e535eb8
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   .../0003-fix-build-with-gcc-4.8.patch         | 60 +++++++++++++++++++
>   1 file changed, 60 insertions(+)
>   create mode 100644 package/mongrel2/0003-fix-build-with-gcc-4.8.patch
> 
> diff --git a/package/mongrel2/0003-fix-build-with-gcc-4.8.patch b/package/mongrel2/0003-fix-build-with-gcc-4.8.patch
> new file mode 100644
> index 0000000000..eebfce0487
> --- /dev/null
> +++ b/package/mongrel2/0003-fix-build-with-gcc-4.8.patch
> @@ -0,0 +1,60 @@
> +From cc2dd3995dc9a9e6f0e705e11e791f3f3c7d7326 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Tue, 18 Jan 2022 22:41:36 +0100
> +Subject: [PATCH] fix build with gcc 4.8
> +
> +Drop "-Wno-unused-const-variable -Wimplicit-fallthrough=0" as
> +"-Wno-implicit-fallthrough -Wno-unused-const-variable" is already set in
> +CFLAGS. This will avoid the following build failure with gcc 4.8 raised
> +since version 1.13.0 and
> +https://github.com/mongrel2/mongrel2/commit/725209578599bd7784753d86aee34f6441ff78a5:
> +
> +arm-none-linux-gnueabi-gcc: error: unrecognized command line option '-Wimplicit-fallthrough=0'
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/de324b733e09057c87352220069fe65f6e535eb8
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: https://github.com/mongrel2/mongrel2/pull/354]
> +---
> + Makefile            | 1 -
> + tools/m2sh/Makefile | 4 ++--
> + 2 files changed, 2 insertions(+), 3 deletions(-)
> +
> +diff --git a/Makefile b/Makefile
> +index f6627ed..fb8d028 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -22,7 +22,6 @@ all: bin/mongrel2 tests m2sh procer
> +
> + ${OBJECTS_NOEXT}: CFLAGS += ${NOEXTCFLAGS}
> + ${OBJECTS}: | builddirs
> +-$(RAGEL_OBJECTS): CFLAGS += -Wno-unused-const-variable -Wimplicit-fallthrough=0
> +
> + .PHONY: builddirs
> + builddirs:
> +diff --git a/tools/m2sh/Makefile b/tools/m2sh/Makefile
> +index 83e7ae4..86364af 100644
> +--- a/tools/m2sh/Makefile
> ++++ b/tools/m2sh/Makefile
> +@@ -10,7 +10,7 @@ LIB_SRC=$(filter-out src/m2sh.c,${SOURCES})
> + LIB_OBJ=$(filter-out src/m2sh.o,${OBJECTS})
> + RAGEL_OBJECTS=src/lexer.o src/cli.o
> +
> +-$(RAGEL_OBJECTS): CFLAGS += -Wno-unused-const-variable -Wimplicit-fallthrough=0 -Wno-unused-parameter
> ++$(RAGEL_OBJECTS): CFLAGS += -Wno-unused-parameter
> +
> + all: ../lemon/lemon tests build/m2sh
> +
> +@@ -20,7 +20,7 @@ dev: all
> + install: build/m2sh
> + 	install build/m2sh ${DESTDIR}${PREFIX}/bin
> +
> +-src/parser.o: CFLAGS += -Wno-unused-const-variable -Wno-unused-parameter
> ++src/parser.o: CFLAGS += -Wno-unused-parameter
> +
> + build/libm2sh.a: ${LIB_OBJ}
> + 	mkdir -p build
> +--
> +2.34.1
> +
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-02-14 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09 19:20 [Buildroot] [PATCH 1/1] package/mongrel2: fix build with gcc 4.8 Fabrice Fontaine
2022-02-14 20:46 ` Arnout Vandecappelle

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.