Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7830

Migrate the python setup scripts to use cmake

    XMLWordPrintable

    Details

    • Type: Build Failure
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 4.4.9, 5.0.3, 5.1.0-rc0
    • Component/s: API, Build/compile
    • Labels:
      None
    • Environment:
    • Story Points:
      5
    • Sprint:
      Storage - Ra 2021-07-26, Storage - Ra 2021-08-09

      Description

      Hey, new user here!

      I'm trying to set up WiredTiger in a conda environment (what my team uses for env management). My first attempt looked like this:

      conda create -n wtscratch python=3.9 -c conda-forge
      conda activate wtscratch
      conda install snappy zstd zlib
      export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
      pip install wiredtiger
      

      This fails with the error: "error: WiredTiger requires a 64-bit build." (apparently from here). The OS is 64 bit, but I'm guessing somehow the compiler is only allocating 32 bit pointers? I was unable to figure out how to use CFLAGS to get the compiler to use 64-bit pointers.

      My second attempt was following the full build instructions here:

      conda create -n wtscratch python=3.9 -c conda-forge
      conda activate wtscratch
      conda install snappy zstd zlib
      export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
      git clone git://github.com/wiredtiger/wiredtiger.git
      conda install cmake ninja
      mkdir wiredtiger/build
      cd wiredtiger/build
      cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -G Ninja ../.
      ninja
      ninja install
      

      This seems to succeed, but then I don't have the Python API installed, and when I pip install wiredtiger as above, I run into the same 64-bit issue.

      Is there a way to get around the above issues?

      Thanks for any info!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              chenhao.qu Chenhao Qu
              Reporter:
              michael@predata.com Michael Tartre
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: