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

Bug#1021852: libvma FTBFS: error: ISO C++17 does not allow ‘register’ storage class specifier



Source: libvma
Version: 9.2.2-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/fetch.php?pkg=libvma&arch=amd64&ver=9.2.2-1%2Bb2&stamp=1665870043&raw=0

...
In file included from ../../../../src/utils/asm.h:42,
                 from ../../../../src/utils/rdtsc.h:41,
                 from ../../../../src/vlogger/vlogger.h:49,
                 from ../../../../src/vlogger/main.cpp:36:
../../../../src/utils/asm-x86.h: In function ‘void gettimeoftsc(long long unsigned int*)’:
../../../../src/utils/asm-x86.h:113:27: error: ISO C++17 does not allow ‘register’ storage class specifier [-Werror=register]
  113 |         register uint32_t upper_32, lower_32;
      |                           ^~~~~~~~
../../../../src/utils/asm-x86.h:113:37: error: ISO C++17 does not allow ‘register’ storage class specifier [-Werror=register]
  113 |         register uint32_t upper_32, lower_32;
      |                                     ^~~~~~~~
cc1plus: all warnings being treated as errors
In file included from ../../../../src/utils/asm.h:42,
                 from ../../../../src/utils/rdtsc.h:41,
                 from ../../../../src/vlogger/vlogger.h:49,
                 from ../../../../src/vlogger/vlogger.cpp:34:
../../../../src/utils/asm-x86.h: In function ‘void gettimeoftsc(long long unsigned int*)’:
../../../../src/utils/asm-x86.h:113:27: error: ISO C++17 does not allow ‘register’ storage class specifier [-Werror=register]
  113 |         register uint32_t upper_32, lower_32;
      |                           ^~~~~~~~
../../../../src/utils/asm-x86.h:113:37: error: ISO C++17 does not allow ‘register’ storage class specifier [-Werror=register]
  113 |         register uint32_t upper_32, lower_32;
      |                                     ^~~~~~~~
make[5]: *** [Makefile:451: main.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from ../../../../src/vma/proto/mem_buf_desc.h:39,
                 from ../../../../src/vma/util/utils.h:47,
                 from ../../../../src/vlogger/vlogger.cpp:46:
../../../../src/vma/util/vma_list.h: At global scope:
../../../../src/vma/util/vma_list.h:90:37: error: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Werror=deprecated-declarations]
   90 | class list_iterator_t : public std::iterator<std::random_access_iterator_tag, T, std::ptrdiff_t, T*, T&>
      |                                     ^~~~~~~~
In file included from /usr/include/c++/12/string:45,
                 from /usr/include/c++/12/bits/locale_classes.h:40,
                 from /usr/include/c++/12/bits/ios_base.h:41,
                 from /usr/include/c++/12/ios:42,
                 from /usr/include/c++/12/ostream:38,
                 from /usr/include/c++/12/iostream:39,
                 from ../../../../src/vlogger/vlogger.h:41:
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
cc1plus: all warnings being treated as errors
make[5]: *** [Makefile:467: vlogger.lo] Error 1

Reply to: