WillAyd opened a new issue, #47039:
URL: https://github.com/apache/arrow/issues/47039

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   When compiling the project with gcc 14.2, the compiler throws an error when 
including the RapidJSON dependency:
   
   ```
   [160/473] Compiling C++ object 
src/arrow/libarrow.so.p/integration_json_integration.cc.o
   FAILED: src/arrow/libarrow.so.p/integration_json_integration.cc.o 
   c++ -Isrc/arrow/libarrow.so.p -Isrc/arrow -I../src/arrow -Isrc -I../src 
-I../thirdparty/hadoop/include -I../thirdparty/flatbuffers/include 
-fvisibility=hidden -fdiagnostics-color=always -fsanitize=address,undefined 
-fno-omit-frame-pointer -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall 
-Winvalid-pch -Wextra -std=c++17 -O0 -g -Wno-unused-parameter -Wno-array-bounds 
-Wno-stringop-overflow -Wno-aggressive-loop-optimizations -Wno-nonnull -fPIC 
-pthread -isystem../subprojects/rapidjson-1.1.0/include -DARROW_EXPORTING -MD 
-MQ src/arrow/libarrow.so.p/integration_json_integration.cc.o -MF 
src/arrow/libarrow.so.p/integration_json_integration.cc.o.d -o 
src/arrow/libarrow.so.p/integration_json_integration.cc.o -c 
../src/arrow/integration/json_integration.cc
   In file included from ../src/arrow/integration/json_internal.h:26,
                    from ../src/arrow/integration/json_integration.cc:27:
   ../subprojects/rapidjson-1.1.0/include/rapidjson/document.h: In member 
function ‘arrow::rapidjson::GenericStringRef<CharType>& 
arrow::rapidjson::GenericStringRef<CharType>::operator=(const 
arrow::rapidjson::GenericStringRef<CharType>&)’:
   ../subprojects/rapidjson-1.1.0/include/rapidjson/document.h:319:82: error: 
assignment of read-only member 
‘arrow::rapidjson::GenericStringRef<CharType>::length’
     319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = 
rhs.s; length = rhs.length; }
         |                                                                      
     ~~~~~~~^~~~~~~~~~~~
   ```
   
   This looks to be a long standing issue upstream (see 
https://github.com/Tencent/rapidjson/issues/2277) that was fixed some time ago, 
but RapidJSON has not had a release in quite some time.
   
   It looks like the CMake version uses git hash 
232389d4f1012dddec4ef84861face2d2ba85709 so we should probably bump the Meson 
configuration to use that as well
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to