* [Buildroot] [PATCH 1/1] package/multipath-tools: disable -Werror
@ 2021-01-08 17:06 Fabrice Fontaine
2021-01-09 15:01 ` Peter Korsgaard
2021-01-12 17:22 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2021-01-08 17:06 UTC (permalink / raw)
To: buildroot
Set the new WARNFLAGS to "" which has been added since version 0.8.5 and
https://github.com/opensvc/multipath-tools/commit/82f1b164cb21c9632b3c73f865d97777c7a61e0d
Otherwise, -Werror will raise the following build failure:
/srv/storage/autobuild/run/instance-3/output-1/host/bin/mipsel-linux-gcc --std=gnu99 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -D_FORTIFY_SOURCE=1 -Werror -Wall -Wextra -Wformat=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-security -Wno-clobbered -Wno-error=clobbered -Werror=cast-qual -Werror=discarded-qualifiers -pipe -DBIN_DIR=\"/sbin\" -DLIB_STRING=\"lib\" -DRUN_DIR=\"run\" -MMD -MP -fPIC -I.. -I../../libmultipath/nvme -Wp,-D_FORTIFY_SOURCE=2 -c -o nvme.o nvme.c
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
Fixes:
- http://autobuild.buildroot.org/results/71f7661e7d26ca8608e902eee9f2a92376b00601
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/multipath-tools/multipath-tools.mk | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/package/multipath-tools/multipath-tools.mk b/package/multipath-tools/multipath-tools.mk
index d5cca7ba57..7fe9033a15 100644
--- a/package/multipath-tools/multipath-tools.mk
+++ b/package/multipath-tools/multipath-tools.mk
@@ -9,7 +9,12 @@ MULTIPATH_TOOLS_SITE = $(call github,opensvc,multipath-tools,$(MULTIPATH_TOOLS_V
MULTIPATH_TOOLS_LICENSE = LGPL-2.0
MULTIPATH_TOOLS_LICENSE_FILES = COPYING
MULTIPATH_TOOLS_DEPENDENCIES = lvm2 json-c readline udev liburcu libaio host-pkgconf
-MULTIPATH_TOOLS_MAKE_OPTS = LIB="lib" RUN="run" OPTFLAGS="" STACKPROT=""
+MULTIPATH_TOOLS_MAKE_OPTS = \
+ LIB="lib" \
+ RUN="run" \
+ OPTFLAGS="" \
+ STACKPROT="" \
+ WARNFLAGS=""
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
MULTIPATH_TOOLS_DEPENDENCIES += systemd
--
2.29.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/multipath-tools: disable -Werror
2021-01-08 17:06 [Buildroot] [PATCH 1/1] package/multipath-tools: disable -Werror Fabrice Fontaine
@ 2021-01-09 15:01 ` Peter Korsgaard
2021-01-12 17:22 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-01-09 15:01 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Set the new WARNFLAGS to "" which has been added since version 0.8.5 and
> https://github.com/opensvc/multipath-tools/commit/82f1b164cb21c9632b3c73f865d97777c7a61e0d
> Otherwise, -Werror will raise the following build failure:
> /srv/storage/autobuild/run/instance-3/output-1/host/bin/mipsel-linux-gcc
> --std=gnu99 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -D_FORTIFY_SOURCE=1 -Werror -Wall -Wextra
> -Wformat=2 -Werror=implicit-int -Werror=implicit-function-declaration
> -Werror=format-security -Wno-clobbered -Wno-error=clobbered
> -Werror=cast-qual -Werror=discarded-qualifiers -pipe
> -DBIN_DIR=\"/sbin\" -DLIB_STRING=\"lib\" -DRUN_DIR=\"run\" -MMD -MP
> -fPIC -I.. -I../../libmultipath/nvme -Wp,-D_FORTIFY_SOURCE=2 -c -o
> nvme.o nvme.c
> <command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
Ideally we should fix the package to not set _FORTIFY_SOURCE (so our
BR2_FORTIFY_* settings are used), but Ok - Disabling Werror is good
anyway, so committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/multipath-tools: disable -Werror
2021-01-08 17:06 [Buildroot] [PATCH 1/1] package/multipath-tools: disable -Werror Fabrice Fontaine
2021-01-09 15:01 ` Peter Korsgaard
@ 2021-01-12 17:22 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-01-12 17:22 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Set the new WARNFLAGS to "" which has been added since version 0.8.5 and
> https://github.com/opensvc/multipath-tools/commit/82f1b164cb21c9632b3c73f865d97777c7a61e0d
> Otherwise, -Werror will raise the following build failure:
> /srv/storage/autobuild/run/instance-3/output-1/host/bin/mipsel-linux-gcc
> --std=gnu99 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -D_FORTIFY_SOURCE=1 -Werror -Wall -Wextra
> -Wformat=2 -Werror=implicit-int -Werror=implicit-function-declaration
> -Werror=format-security -Wno-clobbered -Wno-error=clobbered
> -Werror=cast-qual -Werror=discarded-qualifiers -pipe
> -DBIN_DIR=\"/sbin\" -DLIB_STRING=\"lib\" -DRUN_DIR=\"run\" -MMD -MP
> -fPIC -I.. -I../../libmultipath/nvme -Wp,-D_FORTIFY_SOURCE=2 -c -o
> nvme.o nvme.c
> <command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
> Fixes:
> - http://autobuild.buildroot.org/results/71f7661e7d26ca8608e902eee9f2a92376b00601
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2020.11.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-12 17:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08 17:06 [Buildroot] [PATCH 1/1] package/multipath-tools: disable -Werror Fabrice Fontaine
2021-01-09 15:01 ` Peter Korsgaard
2021-01-12 17:22 ` 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.