[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#973799: libnop FTBFS on 32bit: test/serializer_tests.cpp fails to build



Source: libnop
Version: 0.0~git20200728.45dfe0f-1
Severity: important
Tags: ftbfs
Forwarded: https://github.com/google/libnop/issues/19
Control: affects -1 src:tensorpipe

https://buildd.debian.org/status/logs.php?pkg=libnop&ver=0.0~git20200728.45dfe0f-2

...
test/serializer_tests.cpp: In member function ‘virtual void Serializer_size_t_Test::TestBody()’:
test/serializer_tests.cpp:2970:19: error: conversion from ‘long long unsigned int’ to ‘std::size_t’ {aka ‘unsigned int’} changes value from ‘4294967296’ to ‘0’ [-Werror=overflow]
 2970 |     value = (1LLU << 32);
      |             ~~~~~~^~~~~~
test/serializer_tests.cpp:2978:13: error: conversion from ‘long long unsigned int’ to ‘std::size_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Werror=overflow]
 2978 |     value = 0xffffffffffffffffLLU;
      |             ^~~~~~~~~~~~~~~~~~~~~
...
cc1plus: all warnings being treated as errors
make[1]: *** [build/host-executable.mk:17: out/host-obj/test/test/serializer_tests.o] Error 1

Reply to: