All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] msgpack: disables tests
@ 2018-11-25  9:50 Fabrice Fontaine
  2018-11-25 10:28 ` Yann E. MORIN
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2018-11-25  9:50 UTC (permalink / raw)
  To: buildroot

tests are enabled if gperf and zlib are found and they fail on:
/home/buildroot/autobuild/run/instance-0/output/build/msgpack-2.1.5/include/msgpack/v1/object.hpp:652:34:
error: 'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'struct msgpack::v2::object' from an array of 'const msgpack_object' {aka 'const struct msgpack_object'} [-Werror=class-memaccess]
     std::memcpy(&o, &v, sizeof(v));

So disable them.

Fixes:
 - http://autobuild.buildroot.org/results/7d7aa9723f02f9bc78dbf6248674be4d402199bf

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/msgpack/msgpack.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/msgpack/msgpack.mk b/package/msgpack/msgpack.mk
index 38df8f53af..abb6e2e214 100644
--- a/package/msgpack/msgpack.mk
+++ b/package/msgpack/msgpack.mk
@@ -9,7 +9,7 @@ MSGPACK_SITE = $(call github,msgpack,msgpack-c,cpp-$(MSGPACK_VERSION))
 MSGPACK_LICENSE = BSL-1.0
 MSGPACK_LICENSE_FILES = COPYING LICENSE_1_0.txt
 MSGPACK_INSTALL_STAGING = YES
-MSGPACK_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF
+MSGPACK_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF -DMSGPACK_BUILD_TESTS=OFF
 
 ifeq ($(BR2_STATIC_LIBS),y)
 MSGPACK_CONF_OPTS += -DMSGPACK_ENABLE_SHARED=OFF
-- 
2.14.1

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

* [Buildroot] [PATCH 1/1] msgpack: disables tests
  2018-11-25  9:50 [Buildroot] [PATCH 1/1] msgpack: disables tests Fabrice Fontaine
@ 2018-11-25 10:28 ` Yann E. MORIN
  2018-11-27 22:38 ` Arnout Vandecappelle
  2018-12-03 21:53 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2018-11-25 10:28 UTC (permalink / raw)
  To: buildroot

Fabrice, All,

On 2018-11-25 10:50 +0100, Fabrice Fontaine spake thusly:
> tests are enabled if gperf and zlib are found and they fail on:
> /home/buildroot/autobuild/run/instance-0/output/build/msgpack-2.1.5/include/msgpack/v1/object.hpp:652:34:
> error: 'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'struct msgpack::v2::object' from an array of 'const msgpack_object' {aka 'const struct msgpack_object'} [-Werror=class-memaccess]
>      std::memcpy(&o, &v, sizeof(v));
> 
> So disable them.
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/7d7aa9723f02f9bc78dbf6248674be4d402199bf
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/msgpack/msgpack.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/msgpack/msgpack.mk b/package/msgpack/msgpack.mk
> index 38df8f53af..abb6e2e214 100644
> --- a/package/msgpack/msgpack.mk
> +++ b/package/msgpack/msgpack.mk
> @@ -9,7 +9,7 @@ MSGPACK_SITE = $(call github,msgpack,msgpack-c,cpp-$(MSGPACK_VERSION))
>  MSGPACK_LICENSE = BSL-1.0
>  MSGPACK_LICENSE_FILES = COPYING LICENSE_1_0.txt
>  MSGPACK_INSTALL_STAGING = YES
> -MSGPACK_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF
> +MSGPACK_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF -DMSGPACK_BUILD_TESTS=OFF
>  
>  ifeq ($(BR2_STATIC_LIBS),y)
>  MSGPACK_CONF_OPTS += -DMSGPACK_ENABLE_SHARED=OFF
> -- 
> 2.14.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 1/1] msgpack: disables tests
  2018-11-25  9:50 [Buildroot] [PATCH 1/1] msgpack: disables tests Fabrice Fontaine
  2018-11-25 10:28 ` Yann E. MORIN
@ 2018-11-27 22:38 ` Arnout Vandecappelle
  2018-12-03 21:53 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2018-11-27 22:38 UTC (permalink / raw)
  To: buildroot



On 25/11/2018 10:50, Fabrice Fontaine wrote:
> tests are enabled if gperf and zlib are found and they fail on:
> /home/buildroot/autobuild/run/instance-0/output/build/msgpack-2.1.5/include/msgpack/v1/object.hpp:652:34:
> error: 'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'struct msgpack::v2::object' from an array of 'const msgpack_object' {aka 'const struct msgpack_object'} [-Werror=class-memaccess]
>      std::memcpy(&o, &v, sizeof(v));
> 
> So disable them.
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/7d7aa9723f02f9bc78dbf6248674be4d402199bf
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 Applied to master, thanks.

 I didn't bother copying the much more verbose commit log from Thomas, since
this one was pretty good already.

 Regards,
 Arnout

> ---
>  package/msgpack/msgpack.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/msgpack/msgpack.mk b/package/msgpack/msgpack.mk
> index 38df8f53af..abb6e2e214 100644
> --- a/package/msgpack/msgpack.mk
> +++ b/package/msgpack/msgpack.mk
> @@ -9,7 +9,7 @@ MSGPACK_SITE = $(call github,msgpack,msgpack-c,cpp-$(MSGPACK_VERSION))
>  MSGPACK_LICENSE = BSL-1.0
>  MSGPACK_LICENSE_FILES = COPYING LICENSE_1_0.txt
>  MSGPACK_INSTALL_STAGING = YES
> -MSGPACK_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF
> +MSGPACK_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF -DMSGPACK_BUILD_TESTS=OFF
>  
>  ifeq ($(BR2_STATIC_LIBS),y)
>  MSGPACK_CONF_OPTS += -DMSGPACK_ENABLE_SHARED=OFF
> 

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

* [Buildroot] [PATCH 1/1] msgpack: disables tests
  2018-11-25  9:50 [Buildroot] [PATCH 1/1] msgpack: disables tests Fabrice Fontaine
  2018-11-25 10:28 ` Yann E. MORIN
  2018-11-27 22:38 ` Arnout Vandecappelle
@ 2018-12-03 21:53 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-12-03 21:53 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > tests are enabled if gperf and zlib are found and they fail on:
 > /home/buildroot/autobuild/run/instance-0/output/build/msgpack-2.1.5/include/msgpack/v1/object.hpp:652:34:
 > error: 'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'struct msgpack::v2::object' from an array of 'const msgpack_object' {aka 'const struct msgpack_object'} [-Werror=class-memaccess]
 >      std::memcpy(&o, &v, sizeof(v));

 > So disable them.

 > Fixes:
 >  - http://autobuild.buildroot.org/results/7d7aa9723f02f9bc78dbf6248674be4d402199bf

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2018.02.x and 2018.08.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2018-12-03 21:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-25  9:50 [Buildroot] [PATCH 1/1] msgpack: disables tests Fabrice Fontaine
2018-11-25 10:28 ` Yann E. MORIN
2018-11-27 22:38 ` Arnout Vandecappelle
2018-12-03 21:53 ` 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.