bkmgit edited a comment on issue #11706:
URL: https://github.com/apache/arrow/issues/11706#issuecomment-972792563


   @dantrim 
   Initial attempt to reproduce this error on Linux using
   ```
   export CC=clang
   export CXX=clang++
   cmake -DCMAKE_BUILD_TYPE=Debug -DARROW_BUILD_TESTS=ON 
-DCMAKE_CXX_FLAGS="-Wshadow -Werror" -DARROW_COMPUTE=ON -DARROW_PARQUET=ON  ..
   make
   ```
   indicates that RE2 has this error also
   ```
   -- stderr output is:
   In file included from 
/home/arrow/cpp/build/re2_ep-prefix/src/re2_ep/re2/compile.cc:22:
   /home/arrow/cpp/build/re2_ep-prefix/src/re2_ep/re2/walker-inl.h:172:13: 
error: declaration shadows a local variable [-Werror,-Wshadow]
       Regexp* re = s->re;
               ^
   /home/arrow/cpp/build/re2_ep-prefix/src/re2_ep/re2/walker-inl.h:157:64: 
note: previous declaration is here
   template<typename T> T Regexp::Walker<T>::WalkInternal(Regexp* re, T top_arg,
   ```
   Trying
   ```
   cmake -DCMAKE_BUILD_TYPE=Release -DARROW_BUILD_TESTS=OFF 
-DCMAKE_CXX_FLAGS="-Wshadow -Werror" -DARROW_COMPUTE=OFF -DARROW_PARQUET=ON  
-DARROW_WITH_RE2=OFF ..
   ```
   Gives a similar problem with Thrift. The project uses Jira for issue 
tracking and can raise this there, though fixes in dependencies may take more 
time to get included since the latest versions are not used in the releases.


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