Staging instance, all changes can be removed at any time

Skip to content
Snippets Groups Projects

orcxx-rs error

The snippet can be accessed without any authentication.
Authored by David Douard
Edited
7.67 KiB
 ddouard  (e) swh-3.11   fix-build  ~/s/o/orcxx  101  cargo build
   Compiling orcxx v0.4.2 (/home/ddouard/src/orcxx-rs/orcxx)
The following warnings were emitted during compilation:

warning: orcxx@0.4.2: /home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc: In function ‘int64_t orc::orc$cxxbridge1$Int128$getHighBits(const Int128&)’:
warning: orcxx@0.4.2: /home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc:12:59: error: cannot convert ‘int64_t (orc::Int128::*)()’ {aka ‘long int (orc::Int128::*)()’} to ‘int64_t (orc::Int128::*)() const’ {aka ‘long int (orc::Int128::*)() const’} in initialization
warning: orcxx@0.4.2:    12 |   ::std::int64_t (::orc::Int128::*getHighBits$)() const = &::orc::Int128::getHighBits;
warning: orcxx@0.4.2:       |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: orcxx@0.4.2: /home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc: In function ‘uint64_t orc::orc$cxxbridge1$Int128$getLowBits(const Int128&)’:
warning: orcxx@0.4.2: /home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc:17:59: error: cannot convert ‘uint64_t (orc::Int128::*)()’ {aka ‘long unsigned int (orc::Int128::*)()’} to ‘uint64_t (orc::Int128::*)() const’ {aka ‘long unsigned int (orc::Int128::*)() const’} in initialization
warning: orcxx@0.4.2:    17 |   ::std::uint64_t (::orc::Int128::*getLowBits$)() const = &::orc::Int128::getLowBits;
warning: orcxx@0.4.2:       |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~

error: failed to run custom build command for `orcxx v0.4.2 (/home/ddouard/src/orcxx-rs/orcxx)`

Caused by:
  process didn't exit successfully: `/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-79e6d2b41b487bea/build-script-build` (exit status: 1)
  --- stdout
  -- No build type selected, default to ReleaseWithDebugInfo
  -- compiler GNU version 12.2.0
  -- Disable the metrics collection
  -- BUILD_ENABLE_AVX512: OFF
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/orc
  [ 12%] Built target protobuf_ep
  [ 17%] Built target snappy_ep
  [ 26%] Built target lz4_ep
  [ 35%] Built target zlib_ep
  [ 43%] Built target zstd_ep
  [ 52%] Built target libhdfspp_ep
  [100%] Built target orc
  cargo:CXXBRIDGE_PREFIX=orcxx
  cargo:CXXBRIDGE_DIR0=/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/include
  cargo:CXXBRIDGE_DIR1=/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/crate
  TARGET = Some("x86_64-unknown-linux-gnu")
  OPT_LEVEL = Some("0")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CXX_x86_64-unknown-linux-gnu
  CXX_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXX_x86_64_unknown_linux_gnu
  CXX_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXX
  HOST_CXX = None
  cargo:rerun-if-env-changed=CXX
  CXX = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/include" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/crate" "-I" "src" "-I" "/home/ddouard/src/orcxx-rs/orcxx/orc/c++/include/" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/../orc/c++/include/" "-Wall" "-Wextra" "-o" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/dda5b3001b94130a-kind.rs.o" "-c" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/kind.rs.cc"
  exit status: 0
  running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/include" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/crate" "-I" "src" "-I" "/home/ddouard/src/orcxx-rs/orcxx/orc/c++/include/" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/../orc/c++/include/" "-Wall" "-Wextra" "-o" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/dda5b3001b94130a-int128.rs.o" "-c" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc"
  cargo:warning=/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc: In function ‘int64_t orc::orc$cxxbridge1$Int128$getHighBits(const Int128&)’:

  cargo:warning=/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc:12:59: error: cannot convert ‘int64_t (orc::Int128::*)()’ {aka ‘long int (orc::Int128::*)()’} to ‘int64_t (orc::Int128::*)() const’ {aka ‘long int (orc::Int128::*)() const’} in initialization

  cargo:warning=   12 |   ::std::int64_t (::orc::Int128::*getHighBits$)() const = &::orc::Int128::getHighBits;

  cargo:warning=      |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~

  cargo:warning=/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc: In function ‘uint64_t orc::orc$cxxbridge1$Int128$getLowBits(const Int128&)’:

  cargo:warning=/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc:17:59: error: cannot convert ‘uint64_t (orc::Int128::*)()’ {aka ‘long unsigned int (orc::Int128::*)()’} to ‘uint64_t (orc::Int128::*)() const’ {aka ‘long unsigned int (orc::Int128::*)() const’} in initialization

  cargo:warning=   17 |   ::std::uint64_t (::orc::Int128::*getLowBits$)() const = &::orc::Int128::getLowBits;

  cargo:warning=      |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~

  exit status: 1

  --- stderr

  CXX include path:
    /home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/include
    /home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/crate


  error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/include" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/crate" "-I" "src" "-I" "/home/ddouard/src/orcxx-rs/orcxx/orc/c++/include/" "-I" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/../orc/c++/include/" "-Wall" "-Wextra" "-o" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/dda5b3001b94130a-int128.rs.o" "-c" "/home/ddouard/src/orcxx-rs/target/debug/build/orcxx-cb050cfa87f2a1f9/out/cxxbridge/sources/orcxx/src/int128.rs.cc" with args "c++" did not execute successfully (status code exit status: 1).
  • For the record this is using ORC revision 542353d38daec11cdd632e5b999884ea0a7e3539 (head of 1.9 branch).

    Also applying this seems to fix the compilation issues:

    
    diff --git a/c++/include/orc/Int128.hh b/c++/include/orc/Int128.hh
    index 81cee0538..7c88e49c8 100644
    --- a/c++/include/orc/Int128.hh
    +++ b/c++/include/orc/Int128.hh
    @@ -325,14 +325,14 @@ namespace orc {
         /**
          * Get the high bits of the twos complement representation of the number.
          */
    -    int64_t getHighBits() {
    +    int64_t getHighBits() const {
           return highbits;
         }
     
         /**
          * Get the low bits of the twos complement representation of the number.
          */
    -    uint64_t getLowBits() {
    +    uint64_t getLowBits() const {
           return lowbits;
         }
     
    diff --git a/c++/include/orc/MemoryPool.hh b/c++/include/orc/MemoryPool.hh
    index e9df39052..89d0dd17d 100644
    --- a/c++/include/orc/MemoryPool.hh
    +++ b/c++/include/orc/MemoryPool.hh
    @@ -64,7 +64,7 @@ namespace orc {
           return buf;
         }
     
    -    uint64_t size() {
    +    uint64_t size() const {
           return currentSize;
         }
     
    
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment