Ubuntu 22.04 compile issues
developer@roland-u22-04-VirtualBox:~/Projects$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
developer@roland-u22-04-VirtualBox:~/Projects$ gcc --version
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code: Select all
inlined from ‘bool std::equal(_II1, _II1, _II2, _II2) [with _II1 = __gnu_cxx::__normal_iterator<const unsigned char*, std::vector<unsigned char> >; _II2 = __gnu_cxx::__normal_iterator<const unsigned char*, std::vector<unsigned char> >]’ at /usr/include/c++/11/bits/stl_algobase.h:1678:38,
inlined from ‘bool CsString::operator==(const CsString_utf8&, const CsString_utf8&)’ at /home/developer/Projects/cs_build/include/QtCore/cs_string.h:3489:21,
inlined from ‘QTextCodec* createForMib(int)’ at /home/developer/Projects/copperspice/src/core/codecs/qtextcodec.cpp:165:16,
inlined from ‘static QTextCodec* QTextCodec::codecForMib(int)’ at /home/developer/Projects/copperspice/src/core/codecs/qtextcodec.cpp:692:24:
/usr/include/c++/11/bits/stl_algobase.h:105:32: warning: ‘int __builtin_memcmp_eq(const void*, const void*, long unsigned int)’ specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overread]
105 | return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/algorithm:61,
from /home/developer/Projects/copperspice/src/core/global/qglobal.h:45,
from /home/developer/Projects/copperspice/src/core/global/qplatformdefs.h:27,
from /home/developer/Projects/copperspice/src/core/codecs/qtextcodec.cpp:24:
/usr/include/c++/11/bits/stl_iterator.h: In static member function ‘static QTextCodec* QTextCodec::codecForMib(int)’:
/usr/include/c++/11/bits/stl_iterator.h:1011:9: note: source object allocated here
1011 | : _M_current(__i) { }
| ^~~~~~~~~~~~~~~
[148/3841] Building CXX object src/core/CMakeFiles/CsCore.dir/plugin/quuid.cpp.o
In function ‘void _q_uuidToHex(T*&, const uint&, const ushort&, const ushort&, const uchar (&)[8]) [with T = char]’,
inlined from ‘QByteArray QUuid::toByteArray() const’ at /home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:250:16:
/home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:103:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
103 | *dst++ = T('-');
| ~~~~~~~^~~~~~~~
In file included from /home/developer/Projects/copperspice/src/core/tools/qbytearray.h:34,
from /home/developer/Projects/cs_build/include/QtCore/qstring8.h:32,
from /home/developer/Projects/cs_build/include/QtCore/qstring.h:1,
from /home/developer/Projects/copperspice/src/core/plugin/quuid.h:27,
from /home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:24:
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h: In member function ‘QByteArray QUuid::toByteArray() const’:
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset 24 into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
103 | struct QTypedArrayData : QArrayData {
| ^~~~~~~~~~~~~~~
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset 24 into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset 24 into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset 24 into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
In function ‘void _q_uuidToHex(T*&, const uint&, const ushort&, const ushort&, const uchar (&)[8]) [with T = char]’,
inlined from ‘QByteArray QUuid::toByteArray() const’ at /home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:250:16:
/home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:109:9: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
109 | *dst = T('}');
| ~~~~~^~~~~~~~
In file included from /home/developer/Projects/copperspice/src/core/tools/qbytearray.h:34,
from /home/developer/Projects/cs_build/include/QtCore/qstring8.h:32,
from /home/developer/Projects/cs_build/include/QtCore/qstring.h:1,
from /home/developer/Projects/copperspice/src/core/plugin/quuid.h:27,
from /home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:24:
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h: In member function ‘QByteArray QUuid::toByteArray() const’:
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset [37, 52] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
103 | struct QTypedArrayData : QArrayData {
| ^~~~~~~~~~~~~~~
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset [37, 52] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset [37, 52] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset [37, 52] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
[148/3841] Building CXX object src/core/CMakeFiles/CsCore.dir/plugin/quuid.cpp.o
In function ‘void _q_uuidToHex(T*&, const uint&, const ushort&, const ushort&, const uchar (&)[8]) [with T = char]’,
inlined from ‘QByteArray QUuid::toByteArray() const’ at /home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:250:16:
/home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:103:11: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
103 | *dst++ = T('-');
| ~~~~~~~^~~~~~~~
In file included from /home/developer/Projects/copperspice/src/core/tools/qbytearray.h:34,
from /home/developer/Projects/cs_build/include/QtCore/qstring8.h:32,
from /home/developer/Projects/cs_build/include/QtCore/qstring.h:1,
from /home/developer/Projects/copperspice/src/core/plugin/quuid.h:27,
from /home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:24:
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h: In member function ‘QByteArray QUuid::toByteArray() const’:
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset 24 into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
103 | struct QTypedArrayData : QArrayData {
| ^~~~~~~~~~~~~~~
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset 24 into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset 24 into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
/home/developer/Projects/copperspice/src/core/tools/qarraydata.h:103:8: note: at offset 24 into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
In function ‘void _q_uuidToHex(T*&, const uint&, const ushort&, const ushort&, const uchar (&)[8]) [with T = char]’,
inlined from ‘QByteArray QUuid::toByteArray() const’ at /home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:250:16:
/home/developer/Projects/copperspice/src/core/plugin/quuid.cpp:109:9: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
109 | *dst = T('}');
| ~~~~~^~~~~~~~