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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Error messages would be like: 
   
   ```
   D:/a/arrow/arrow/cpp/src/arrow/array/data.h:530:15: warning: 'bool 
arrow::internal::IsNullRunEndEncoded(const arrow::ArrayData&, int64_t)' 
redeclared without dllimport attribute after being referenced with dll linkage
     530 |   friend bool internal::IsNullRunEndEncoded(const ArrayData& span, 
int64_t i);
         |               ^~~~~~~~
   [122/131] Linking CXX shared library release\libparquet.dll
   [123/131] Linking CXX shared library release\libarrow_dataset.dll
   [124/131] Linking CXX shared library release\libarrow_substrait.dll
   [125/131] Building CXX object 
src/gandiva/CMakeFiles/gandiva_shared.dir/Unity/unity_4_cxx.cxx.obj
   In file included from D:/a/arrow/arrow/cpp/src/arrow/array/array_base.h:26,
                    from D:/a/arrow/arrow/cpp/src/arrow/array.h:41,
                    from D:/a/arrow/arrow/cpp/src/gandiva/arrow.h:23,
                    from D:/a/arrow/arrow/cpp/src/gandiva/simple_arena.h:27,
                    from 
D:/a/arrow/arrow/cpp/src/gandiva/execution_context.h:22,
                    from D:/a/arrow/arrow/cpp/src/gandiva/interval_holder.h:27,
                    from D:/a/arrow/arrow/cpp/src/gandiva/interval_holder.cc:18,
                    from 
D:/a/arrow/arrow/build/cpp/src/gandiva/CMakeFiles/gandiva_shared.dir/Unity/unity_4_cxx.cxx:3:
   D:/a/arrow/arrow/cpp/src/arrow/array/data.h:530:15: warning: 'bool 
arrow::internal::IsNullRunEndEncoded(const arrow::ArrayData&, int64_t)' 
redeclared without dllimport attribute after being referenced with dll linkage
     530 |   friend bool internal::IsNullRunEndEncoded(const ArrayData& span, 
int64_t i);
         |               ^~~~~~~~
   In file included from 
D:/a/arrow/arrow/build/cpp/src/gandiva/CMakeFiles/gandiva_shared.dir/Unity/unity_4_cxx.cxx:5:
   D:/a/arrow/arrow/cpp/src/gandiva/llvm_generator.cc: In member function 
'arrow::Status gandiva::LLVMGenerator::CodeGenExprValue(gandiva::DexPtr, int, 
gandiva::FieldDescriptorPtr, int, std::string&, 
gandiva::SelectionVector::Mode)':
   D:/a/arrow/arrow/cpp/src/gandiva/llvm_generator.cc:362:27: warning: 
'selection_vector_type' may be used uninitialized [-Wmaybe-uninitialized]
     362 |         builder->CreateGEP(selection_vector_type, 
arg_selection_vector, loop_var);
         |         
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   D:/a/arrow/arrow/cpp/src/gandiva/llvm_generator.cc:282:15: note: 
'selection_vector_type' was declared here
     282 |   llvm::Type* selection_vector_type;
         |               ^~~~~~~~~~~~~~~~~~~~~
   ```
   
   See 
https://github.com/apache/arrow/actions/runs/4935627139/jobs/8822177881?pr=35520
 and 
https://github.com/apache/arrow/actions/runs/4926681476/jobs/8802598792?pr=35428
   
   Personally I guess it was introduced in 
https://github.com/apache/arrow/commit/fde31ed1cb1de1a0d2b9ade257e66104160d31bb 
   
   ### Component(s)
   
   C++, Continuous Integration


-- 
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