Public bug reported: During compilation of unit tests the following error arised:
``` cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test/unittest && /usr/bin/c++ -I/<<PKGBUILDDIR>>/include -isystem /usr/src/gtest/include -isystem /usr/src/gtest -g -O3 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/rapidjson-1.1.0+dfsg2-7.3 -Wdate-time -D_FORTIFY_SOURCE=3 -march=native -Wall -Wextra -Werror -Werror -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal -DRAPIDJSON_HAS_STDSTRING=1 -DGTEST_HAS_PTHREAD=1 -MD -MT test/unittest/CMakeFiles/unittest.dir/itoatest.cpp.o -MF CMakeFiles/unittest.dir/itoatest.cpp.o.d -o CMakeFiles/unittest.dir/itoatest.cpp.o -c /<<PKGBUILDDIR>>/test/unittest/itoatest.cpp In function ‘u32toa_naive(unsigned int, char*)’, inlined from ‘i32toa_naive(int, char*)’ at /<<PKGBUILDDIR>>/test/unittest/itoatest.cpp:115:17, inlined from ‘VerifyValue<int>(int, void (*)(int, char*), char* (*)(int, char*))void [clone .constprop.0]’ at /<<PKGBUILDDIR>>/test/unittest/itoatest.cpp:62:6: /<<PKGBUILDDIR>>/test/unittest/itoatest.cpp:103:19: error: writing 16 bytes into a region of size 12 [-Werror=stringop-overflow=] 103 | *buffer++ = *--p; | ~~~~~~~~~~^~~~~~ ``` This seems to occur in the latest version of upstream when using gcc-14_14.2.0-8ubuntu1, due to unit tests being built with the `-Werror` option, and a `stringop-overflow` warning being raised in `test/unittest/itoatest.cpp`. Upstream GCC has received multiple reports on spurious `stringop- overflow` warnings (e.g. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101134) and this has already been reported to the upstream rapidjson project as well (https://github.com/Tencent/rapidjson/issues/2003). Given that both projects are aware of the issue and that this is an issue in the code for the unit tests, I think it makes sense to disable this specific warning when building the test suite. ** Affects: rapidjson (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2089274 Title: rapidjson fails to build from source on plucky due to `-Werror=stringop-overflow` in unittests To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rapidjson/+bug/2089274/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs