You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "kabicm (via GitHub)" <gi...@apache.org> on 2024/07/06 20:46:02 UTC

[I] 'boost/numeric/conversion/cast.hpp': No such file or directory [arrow]

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

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   When compiling the latest version (16.1.0) of arrow C++ on macos (M2), I am getting:
   ```
   'boost/numeric/conversion/cast.hpp': No such file or directory
   ```
   The compilation error disappears when inside the file `arrow/cpp/src/parquet/CMakeLists.txt`, `Boost::headers` is added as a depencency e.g. as:
   ```
   list(APPEND PARQUET_SHARED_PRIVATE_LINK_LIBS thrift::thrift Boost::headers)
   list(APPEND PARQUET_STATIC_LINK_LIBS thrift::thrift Boost::headers)
   ```
   This only occurs with the latest (16.1.0) version.
   
   ### 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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] 'boost/numeric/conversion/cast.hpp': No such file or directory [arrow]

Posted by "kabicm (via GitHub)" <gi...@apache.org>.
kabicm commented on issue #43167:
URL: https://github.com/apache/arrow/issues/43167#issuecomment-2236424532

   Works now, thanks!


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] 'boost/numeric/conversion/cast.hpp': No such file or directory [arrow]

Posted by "kabicm (via GitHub)" <gi...@apache.org>.
kabicm commented on issue #43167:
URL: https://github.com/apache/arrow/issues/43167#issuecomment-2211978362

   ```
   FAILED: src/parquet/CMakeFiles/parquet_objlib.dir/types.cc.o
   /opt/homebrew/bin/ccache /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -DARROW_HAVE_NEON -DARROW_WITH_TIMING_TESTS -DHAVE_INTTYPES_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DPARQUET_EXPORTING -DPARQUET_THRIFT_VERSION_MAJOR=0 -DPARQUET_THRIFT_VERSION_MINOR=20 -I/Users/xxxxx/Projects/arrow/cpp/build-debug-gcc/src -I/Users/xxxxx/Projects/arrow/cpp/src -I/Users/xxxxx/Projects/arrow/cpp/src/generated -isystem /Users/xxxxx/Projects/arrow/cpp/build-debug-gcc/xsimd_ep/src/xsimd_ep-install/include -isystem /opt/homebrew/Cellar/thrift/0.20.0/include -fno-aligned-new  -Qunused-arguments -fcolor-diagnostics  -Wall -Wextra -Wdocumentation -Wshorten-64-to-32 -Wno-missing-braces -Wno-unused-parameter -Wno-constant-logical-operand -Wno-return-stack-address -Wdate-time -Wno-unknown-warning-option -Wno-pass-failed -march=armv8-a -w -g -Werror -O0 -ggdb  -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -MD 
 -MT src/parquet/CMakeFiles/parquet_objlib.dir/types.cc.o -MF src/parquet/CMakeFiles/parquet_objlib.dir/types.cc.o.d -o src/parquet/CMakeFiles/parquet_objlib.dir/types.cc.o -c /Users/xxxxx/Projects/arrow/cpp/src/parquet/types.cc
   In file included from /Users/xxxxx/Projects/arrow/cpp/src/parquet/types.cc:31:
   In file included from /Users/xxxxx/Projects/arrow/cpp/src/generated/parquet_types.h:14:
   In file included from /opt/homebrew/Cellar/thrift/0.20.0/include/thrift/TBase.h:24:
   In file included from /opt/homebrew/Cellar/thrift/0.20.0/include/thrift/protocol/TProtocol.h:46:
   In file included from /opt/homebrew/Cellar/thrift/0.20.0/include/thrift/transport/TTransport.h:25:
   /opt/homebrew/Cellar/thrift/0.20.0/include/thrift/transport/TTransportException.h:23:10: fatal error: 'boost/numeric/conversion/cast.hpp' file not found
   #include <boost/numeric/conversion/cast.hpp>
   ```


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] 'boost/numeric/conversion/cast.hpp': No such file or directory [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #43167:
URL: https://github.com/apache/arrow/issues/43167#issuecomment-2212732940

   OK. It seems that `$(brew --prefix thrift)/lib/pkgconfig/thrift.pc` misses `-I${BOOST_INCLUDE_DIR}` in `Cflags`.
   Could you report this to Apache Thrift? https://issues.apache.org/jira/projects/THRIFT/issues/
   
   BTW, does this work?
   
   ```diff
   diff --git a/cpp/cmake_modules/FindThriftAlt.cmake b/cpp/cmake_modules/FindThriftAlt.cmake
   index f3e49021d5..98a706deb9 100644
   --- a/cpp/cmake_modules/FindThriftAlt.cmake
   +++ b/cpp/cmake_modules/FindThriftAlt.cmake
   @@ -191,6 +191,10 @@ if(ThriftAlt_FOUND)
        # thrift/windows/config.h for Visual C++.
        set_target_properties(thrift::thrift PROPERTIES INTERFACE_LINK_LIBRARIES "ws2_32")
      endif()
   +  # Workaround: thrift.pc doesn't have Boost dependency.
   +  if(TARGET Boost::headers)
   +    target_link_libraries(thrift::thrift INTERFACE Boost::headers)
   +  endif()
    
      if(Thrift_COMPILER_FOUND)
        add_executable(thrift::compiler IMPORTED)
   ```


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] 'boost/numeric/conversion/cast.hpp': No such file or directory [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #43167:
URL: https://github.com/apache/arrow/issues/43167#issuecomment-2279485705

   Issue resolved by pull request 43328
   https://github.com/apache/arrow/pull/43328


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] 'boost/numeric/conversion/cast.hpp': No such file or directory [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #43167:
URL: https://github.com/apache/arrow/issues/43167#issuecomment-2237830295

   Great. Could you report this to Apache Thrift?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] 'boost/numeric/conversion/cast.hpp': No such file or directory [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #43167: [C++] 'boost/numeric/conversion/cast.hpp': No such file or directory
URL: https://github.com/apache/arrow/issues/43167


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 'boost/numeric/conversion/cast.hpp': No such file or directory [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #43167:
URL: https://github.com/apache/arrow/issues/43167#issuecomment-2211975991

   Could you show full error log?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org