Subject: bug#79223: closed (Re: rapidjson-1.1.0-1.949c771.drv failed (⇒ py-pyqt, sane-backends, and wine fail))

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 13 Aug 2025 16:11:02 +0000

Your bug report

#79223: rapidjson-1.1.0-1.949c771.drv failed (⇒ py-pyqt, sane-backends, and wine fail)

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
79223: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79223
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: rapidjson-1.1.0-1.949c771.drv failed (⇒ py-pyqt, sane-backends, and wine fail)
From: Andreas Enge <[email-masked]>
To: "Dr. Arne Babenhauserheide" <[email-masked]>
Cc: [email-masked]
Date: Wed, 13 Aug 2025 18:10:38 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

this is the same as
   https://codeberg.org/guix/guix/issues/1850
since wine even on x86_64 uses the i686 flavour of rapidjson.

Closing here.

Andreas

Subject: rapidjson-1.1.0-1.949c771.drv failed (⇒py-pyqt, sane-backends, and wine fail)
From: "Dr. Arne Babenhauserheide" <[email-masked]>
To: [email-masked]
Date: Tue, 12 Aug 2025 09:49:14 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

rapidjson  can’t be built on my system: I get a build error during
update. This prevents building py-pyqt, sane-backends, and wine.

Error 1:
cc1plus: all warnings being treated as errors
make[2]: *** [test/unittest/CMakeFiles/unittest.dir/build.make:264: test/unittest/CMakeFiles/unittest.dir/pointertest.cpp.o] Error 1

End of the log (complete log attached):

In member function ‘rapidjson::GenericPointer<ValueType, Allocator>::Ch* rapidjson::GenericPointer<ValueType, Allocator>::CopyFromRaw(const rapidjson::GenericPointer<ValueType, Allocator>&, std::size_t, std::size_t) [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’,
    inlined from ‘rapidjson::GenericPointer<ValueType, Allocator>& rapidjson::GenericPointer<ValueType, Allocator>::operator=(const rapidjson::GenericPointer<ValueType, Allocator>&) [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:185:28,
    inlined from ‘rapidjson::GenericPointer<ValueType, Allocator>& rapidjson::GenericPointer<ValueType, Allocator>::operator=(const rapidjson::GenericPointer<ValueType, Allocator>&) [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:174:21,
    inlined from ‘virtual void Pointer_Append_Test::TestBody()’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/test/unittest/pointertest.cpp:572:26:
/tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:890:24: error: ‘void* memcpy(void*, const void*, size_t)’ specified bound 4294967272 exceeds maximum object size 2147483647 [-Werror=stringop-overflow=]
  890 |             std::memcpy(nameBuffer_, rhs.nameBuffer_, nameBufferSize * sizeof(Ch));
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In member function ‘rapidjson::GenericPointer<ValueType, Allocator>::Ch* rapidjson::GenericPointer<ValueType, Allocator>::CopyFromRaw(const rapidjson::GenericPointer<ValueType, Allocator>&, std::size_t, std::size_t) [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’,
    inlined from ‘rapidjson::GenericPointer<ValueType, Allocator>& rapidjson::GenericPointer<ValueType, Allocator>::operator=(const rapidjson::GenericPointer<ValueType, Allocator>&) [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:185:28,
    inlined from ‘rapidjson::GenericPointer<ValueType, Allocator>& rapidjson::GenericPointer<ValueType, Allocator>::operator=(const rapidjson::GenericPointer<ValueType, Allocator>&) [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:174:21,
    inlined from ‘virtual void Pointer_Append_Test::TestBody()’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/test/unittest/pointertest.cpp:582:40:
/tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:890:24: error: ‘void* memcpy(void*, const void*, size_t)’ specified bound 4294967272 exceeds maximum object size 2147483647 [-Werror=stringop-overflow=]
  890 |             std::memcpy(nameBuffer_, rhs.nameBuffer_, nameBufferSize * sizeof(Ch));
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In member function ‘rapidjson::GenericPointer<ValueType, Allocator> rapidjson::GenericPointer<ValueType, Allocator>::Append(const Token&, Allocator*) const [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’,
    inlined from ‘rapidjson::GenericPointer<ValueType, Allocator> rapidjson::GenericPointer<ValueType, Allocator>::Append(const Ch*, rapidjson::SizeType, Allocator*) const [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:255:39,
    inlined from ‘rapidjson::GenericPointer<ValueType, Allocator> rapidjson::GenericPointer<ValueType, Allocator>::Append(const std::__cxx11::basic_string<typename ValueType::Ch>&, Allocator*) const [with ValueType = rapidjson::GenericValue<rapidjson::UTF8<> >; Allocator = rapidjson::CrtAllocator]’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:278:82,
    inlined from ‘virtual void Pointer_Append_Test::TestBody()’ at /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/test/unittest/pointertest.cpp:591:48:
/tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include/rapidjson/pointer.h:239:20: error: ‘void* memcpy(void*, const void*, size_t)’ specified bound 4294967284 exceeds maximum object size 2147483647 [-Werror=stringop-overflow=]
  239 |         std::memcpy(p, token.name, (token.length + 1) * sizeof(Ch));
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 86%] Building CXX object test/unittest/CMakeFiles/unittest.dir/regextest.cpp.o
cd /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/build/test/unittest && /gnu/store/q1zwahf2sbc299rn1jn4qd2rm9dffmvn-gcc-14.3.0/bin/c++  -I/tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include -Wno-free-nonheap-object  -Wall -Wextra -Werror -DRAPIDJSON_HAS_STDSTRING=1 -O2 -g -DNDEBUG -std=gnu++11 -fdiagnostics-color=always -Weffc++ -Wswitch-default -Wfloat-equal -Wconversion -Wsign-conversion -MD -MT test/unittest/CMakeFiles/unittest.dir/regextest.cpp.o -MF CMakeFiles/unittest.dir/regextest.cpp.o.d -o CMakeFiles/unittest.dir/regextest.cpp.o -c /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/test/unittest/regextest.cpp
[ 88%] Building CXX object test/unittest/CMakeFiles/unittest.dir/schematest.cpp.o
cd /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/build/test/unittest && /gnu/store/q1zwahf2sbc299rn1jn4qd2rm9dffmvn-gcc-14.3.0/bin/c++  -I/tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include -Wno-free-nonheap-object  -Wall -Wextra -Werror -DRAPIDJSON_HAS_STDSTRING=1 -O2 -g -DNDEBUG -std=gnu++11 -fdiagnostics-color=always -Weffc++ -Wswitch-default -Wfloat-equal -Wconversion -Wsign-conversion -MD -MT test/unittest/CMakeFiles/unittest.dir/schematest.cpp.o -MF CMakeFiles/unittest.dir/schematest.cpp.o.d -o CMakeFiles/unittest.dir/schematest.cpp.o -c /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/test/unittest/schematest.cpp
[ 89%] Building CXX object test/unittest/CMakeFiles/unittest.dir/simdtest.cpp.o
cd /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/build/test/unittest && /gnu/store/q1zwahf2sbc299rn1jn4qd2rm9dffmvn-gcc-14.3.0/bin/c++  -I/tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/include -Wno-free-nonheap-object  -Wall -Wextra -Werror -DRAPIDJSON_HAS_STDSTRING=1 -O2 -g -DNDEBUG -std=gnu++11 -fdiagnostics-color=always -Weffc++ -Wswitch-default -Wfloat-equal -Wconversion -Wsign-conversion -MD -MT test/unittest/CMakeFiles/unittest.dir/simdtest.cpp.o -MF CMakeFiles/unittest.dir/simdtest.cpp.o.d -o CMakeFiles/unittest.dir/simdtest.cpp.o -c /tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/source/test/unittest/simdtest.cpp
cc1plus: all warnings being treated as errors
make[2]: *** [test/unittest/CMakeFiles/unittest.dir/build.make:264: test/unittest/CMakeFiles/unittest.dir/pointertest.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:1989: test/unittest/CMakeFiles/unittest.dir/all] Error 2
make[1]: Leaving directory '/tmp/guix-build-rapidjson-1.1.0-1.949c771.drv-0/build'
make: *** [Makefile:149: all] Error 2

error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "cmake" arguments: ("--build" "." "-j" "4" "--" "-l" "32") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 67.3 seconds
command "cmake" "--build" "." "-j" "4" "--" "-l" "32" failed with status 2
build process 18 exited with status 256

Best wishes,
Arne

PS: you can use ansi-color-apply-on-region from the Emacs ansi-color
    package to make the log easier to read (need to disable
    read-only-mode first).
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de