Skip to content

Undefined symbols for architecture x86_64 #1872

@kirktsao

Description

@kirktsao

My operation is hacktonish OSX 12.
Graphic is GTX960.
Installed Cuda 8 and CLT.
Python version is 2.7
Try the install from the source show error.
How can i fix it?

[ 4%] Linking CXX shared library libTHD.dylib
Undefined symbols for architecture x86_64:
"_state", referenced from:
_THDTensorDescriptor_newFromTHCudaDoubleTensor in TensorDescriptor.cpp.o
_THDTensorDescriptor_newFromTHCudaFloatTensor in TensorDescriptor.cpp.o
_THDTensorDescriptor_newFromTHCudaLongTensor in TensorDescriptor.cpp.o
_THDTensorDescriptor_newFromTHCudaIntTensor in TensorDescriptor.cpp.o
_THDTensorDescriptor_newFromTHCudaShortTensor in TensorDescriptor.cpp.o
_THDTensorDescriptor_newFromTHCudaCharTensor in TensorDescriptor.cpp.o
_THDTensorDescriptor_newFromTHCudaByteTensor in TensorDescriptor.cpp.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libTHD.1.dylib] Error 1
make[1]: *** [CMakeFiles/THD.dir/all] Error 2
make: *** [all] Error 2

sy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions