Undefined symbols for architecture x86_64:
"tensorflow::DEVICE_CPU", referenced from:
__GLOBAL__sub_I_roi_pooling.cc in roi_pooling.o
__GLOBAL__sub_I_roi_pooling_grad.cc in roi_pooling_grad.o
"tensorflow::TensorShape::DestructorOutOfLine()", referenced from:
ComputePosRoiPooling(tensorflow::OpKernelContext*, bool) in roi_pooling.o
ComputePosRoiPoolingGrad(tensorflow::OpKernelContext*, bool) in roi_pooling_grad.o
"tensorflow::TensorShape::TensorShape(tensorflow::gtl::ArraySlice)", referenced from:
ComputePosRoiPooling(tensorflow::OpKernelContext*, bool) in roi_pooling.o
ComputePosRoiPoolingGrad(tensorflow::OpKernelContext*, bool) in roi_pooling_grad.o
"tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper const&)", referenced from:
__GLOBAL__sub_I_roi_pooling.cc in roi_pooling.o
__GLOBAL__sub_I_roi_pooling_grad.cc in roi_pooling_grad.o
"tensorflow::OpDefBuilder::Input(tensorflow::StringPiece)", referenced from:
__GLOBAL__sub_I_roi_pooling.cc in roi_pooling.o
__GLOBAL__sub_I_roi_pooling_grad.cc in roi_pooling_grad.o
"tensorflow::OpDefBuilder::Output(tensorflow::StringPiece)", referenced from:
__GLOBAL__sub_I_roi_pooling.cc in roi_pooling.o
__GLOBAL__sub_I_roi_pooling_grad.cc in roi_pooling_grad.o
"tensorflow::OpDefBuilder::OpDefBuilder(tensorflow::StringPiece)", referenced from:
__GLOBAL__sub_I_roi_pooling.cc in roi_pooling.o
__GLOBAL__sub_I_roi_pooling_grad.cc in roi_pooling_grad.o
"tensorflow::kernel_factory::OpKernelRegistrar::InitInternal(tensorflow::KernelDef const*, tensorflow::StringPiece, tensorflow::OpKernel* ()(tensorflow::OpKernelConstruction))", referenced from:
__GLOBAL__sub_I_roi_pooling.cc in roi_pooling.o
__GLOBAL__sub_I_roi_pooling_grad.cc in roi_pooling_grad.o
"tensorflow::OpKernelContext::CtxFailure(tensorflow::Status)", referenced from:
ComputePosRoiPooling(tensorflow::OpKernelContext*, bool) in roi_pooling.o
ComputePosRoiPoolingGrad(tensorflow::OpKernelContext*, bool) in roi_pooling_grad.o
"tensorflow::OpKernelContext::allocate_output(int, tensorflow::TensorShape const&, tensorflow::Tensor**)", referenced from:
ComputePosRoiPooling(tensorflow::OpKernelContext*, bool) in roi_pooling.o
ComputePosRoiPoolingGrad(tensorflow::OpKernelContext*, bool) in roi_pooling_grad.o
"tensorflow::OpKernelContext::CtxFailureWithWarning(tensorflow::Status)", referenced from:
ComputePosRoiPooling(tensorflow::OpKernelContext*, bool) in roi_pooling.o
ComputePosRoiPoolingGrad(tensorflow::OpKernelContext*, bool) in roi_pooling_grad.o
"tensorflow::OpKernelContext::input(int)", referenced from:
ComputePosRoiPooling(tensorflow::OpKernelContext*, bool) in roi_pooling.o
ComputePosRoiPoolingGrad(tensorflow::OpKernelContext*, bool) in roi_pooling_grad.o
"tensorflow::KernelDefBuilder::Device(char const*)", referenced from:
__GLOBAL__sub_I_roi_pooling.cc in roi_pooling.o
__GLOBAL__sub_I_roi_pooling_grad.cc in roi_pooling_grad.o
"tensorflow::KernelDefBuilder::KernelDefBuilder(char const*)", referenced from:
__GLOBAL__sub_I_roi_pooling.cc in roi_pooling.o
__GLOBAL__sub_I_roi_pooling_grad.cc in roi_pooling_grad.o
"tensorflow::OpDef::~OpDef()", referenced from:
tensorflow::OpDefBuilder::~OpDefBuilder() in roi_pooling.o
tensorflow::OpDefBuilder::~OpDefBuilder() in roi_pooling_grad.o
"tensorflow::Status::Status(tensorflow::error::Code, tensorflow::StringPiece)", referenced from:
tensorflow::Status tensorflow::errors::InvalidArgument<char const*>(char const*) in roi_pooling.o
tensorflow::Status tensorflow::errors::InvalidArgument<char const*>(char const*) in roi_pooling_grad.o
"tensorflow::strings::StrCat(tensorflow::strings::AlphaNum const&)", referenced from:
tensorflow::Status tensorflow::errors::InvalidArgument<char const*>(char const*) in roi_pooling.o
tensorflow::Status tensorflow::errors::InvalidArgument<char const*>(char const*) in roi_pooling_grad.o
"tensorflow::OpKernel::OpKernel(tensorflow::OpKernelConstruction*)", referenced from:
$_0::__invoke(tensorflow::OpKernelConstruction*) in roi_pooling.o
$_0::__invoke(tensorflow::OpKernelConstruction*) in roi_pooling_grad.o
"tensorflow::OpKernel::~OpKernel()", referenced from:
PosRoiPoolingCpu::~PosRoiPoolingCpu() in roi_pooling.o
PosRoiPoolingCpu::~PosRoiPoolingCpu() in roi_pooling.o
PosRoiPoolingCpuGrad::~PosRoiPoolingCpuGrad() in roi_pooling_grad.o
PosRoiPoolingCpuGrad::~PosRoiPoolingCpuGrad() in roi_pooling_grad.o
"tensorflow::internal::LogMessageFatal::LogMessageFatal(char const*, int)", referenced from:
tensorflow::TensorShape::dims() const in roi_pooling.o
tensorflow::KernelDefBuilder::~KernelDefBuilder() in roi_pooling.o
tensorflow::TensorShape::dims() const in roi_pooling_grad.o
tensorflow::KernelDefBuilder::~KernelDefBuilder() in roi_pooling_grad.o
"tensorflow::internal::LogMessageFatal::~LogMessageFatal()", referenced from:
tensorflow::TensorShape::dims() const in roi_pooling.o
tensorflow::KernelDefBuilder::~KernelDefBuilder() in roi_pooling.o
tensorflow::TensorShape::dims() const in roi_pooling_grad.o
tensorflow::KernelDefBuilder::~KernelDefBuilder() in roi_pooling_grad.o
"tensorflow::TensorShape::dim_size(int) const", referenced from:
ComputePosRoiPooling(tensorflow::OpKernelContext*, bool) in roi_pooling.o
ComputePosRoiPoolingGrad(tensorflow::OpKernelContext*, bool) in roi_pooling_grad.o
"tensorflow::Tensor::tensor_data() const", referenced from:
ComputePosRoiPooling(tensorflow::OpKernelContext*, bool) in roi_pooling.o
ComputePosRoiPoolingGrad(tensorflow::OpKernelContext*, bool) in roi_pooling_grad.o
"typeinfo for tensorflow::OpKernel", referenced from:
typeinfo for PosRoiPoolingCpu in roi_pooling.o
typeinfo for PosRoiPoolingCpuGrad in roi_pooling_grad.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm having the same issue. Were you able to resolve it?