Skip to content

build.sh error #1

Description

@JosephBoyd

I get the following when running src/lib/build.sh

-- Install configuration: "Release"
-- The C compiler identification is Clang 13.0.1
-- The CXX compiler identification is Clang 13.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/joe/quicklisp/local-projects/claw-torch/src/lib/build/clawed
[ 50%] Building CXX object CMakeFiles/torch.clawed.dir/adapter.x86_64-pc-linux-gnu.cxx.o
/home/joe/quicklisp/local-projects/claw-torch/src/lib/adapter.x86_64-pc-linux-gnu.cxx:31:24: error: non-const lvalue reference to type 'torch::Tensor' cannot bind to a value of unrelated type 'int'
clawed::TensorToString(data, dst, len);
^~~~~
/home/joe/quicklisp/local-projects/claw-torch/src/lib/../clawed.h:9:38: note: passing argument to parameter 'data' here
void TensorToString(torch::Tensor& data, char
dst, size_t len) {
^
1 error generated.
gmake[2]: *** [CMakeFiles/torch.clawed.dir/build.make:76: CMakeFiles/torch.clawed.dir/adapter.x86_64-pc-linux-gnu.cxx.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/torch.clawed.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions