Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error #20

Closed
willfu opened this issue May 7, 2019 · 2 comments
Closed

make error #20

willfu opened this issue May 7, 2019 · 2 comments

Comments

@willfu
Copy link

willfu commented May 7, 2019

will@will-pc:~/dirt/build$ make
[ 28%] Building CUDA object CMakeFiles/rasterise.dir/rasterise_egl.cu.o
In file included from /usr/local/lib/python2.7/dist-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/util/ConfigureVectorization.h:384:0,
from /usr/local/lib/python2.7/dist-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/Core:22,
from /usr/local/lib/python2.7/dist-packages/tensorflow/include/unsupported/Eigen/CXX11/Tensor:14,
from /usr/local/lib/python2.7/dist-packages/tensorflow/include/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
from /usr/local/lib/python2.7/dist-packages/tensorflow/include/tensorflow/core/framework/tensor.h:21,
from /home/will/dirt/csrc/rasterise_egl.cu:5:
/usr/local/cuda-10.0/bin/../targets/x86_64-linux/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda
^
/home/will/dirt/csrc/rasterise_egl.cu:9:0: warning: "CUDA_AXIS_KERNEL_LOOP" redefined
#define CUDA_AXIS_KERNEL_LOOP(i, n, axis)
^
In file included from /home/will/dirt/csrc/rasterise_egl.cu:6:0:
/usr/local/lib/python2.7/dist-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h:30:0: note: this is the location of the previous definition
#define CUDA_AXIS_KERNEL_LOOP(i, n, axis)
^
/usr/local/lib/python2.7/dist-packages/tensorflow/include/absl/strings/string_view.h(496): error: constexpr function return is non-constant

/usr/local/lib/python2.7/dist-packages/tensorflow/include/google/protobuf/arena_impl.h(55): warning: integer conversion resulted in a change of sign

/usr/local/lib/python2.7/dist-packages/tensorflow/include/google/protobuf/arena_impl.h(309): warning: integer conversion resulted in a change of sign

/usr/local/lib/python2.7/dist-packages/tensorflow/include/google/protobuf/arena_impl.h(310): warning: integer conversion resulted in a change of sign

1 error detected in the compilation of "/tmp/tmpxft_0000110d_00000000-6_rasterise_egl.cpp1.ii".
CMakeFiles/rasterise.dir/build.make:75: recipe for target 'CMakeFiles/rasterise.dir/rasterise_egl.cu.o' failed
make[2]: *** [CMakeFiles/rasterise.dir/rasterise_egl.cu.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/rasterise.dir/all' failed
make[1]: *** [CMakeFiles/rasterise.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

build env ubuntu1604, python 2.7, cuda 10.1, tensorflow-gpu 1.13.1
it reported /usr/local/lib/python2.7/dist-packages/tensorflow/include/absl/strings/string_view.h(496): error: constexpr function return is non-constant

could anyone give some advice? thanks.

@pmh47
Copy link
Owner

pmh47 commented May 8, 2019

Closing as this is a duplicate of #6, with workarounds described here. In short, either define NDEBUG, or manually edit /usr/local/lib/python2.7/dist-packages/tensorflow/include/absl/strings/string_view.h, changing line 496 from return ABSL_ASSERT(len <= kMaxSize), len; to just return len;

@Eby-123
Copy link

Eby-123 commented Nov 14, 2019

Closing as this is a duplicate of #6, with workarounds described here. In short, either define NDEBUG, or manually edit /usr/local/lib/python2.7/dist-packages/tensorflow/include/absl/strings/string_view.h, changing line 496 from return ABSL_ASSERT(len <= kMaxSize), len; to just return len;

Great!
DIRT can be install successfully after doing"manually edit /usr/local/lib/python2.7/dist-packages/tensorflow/include/absl/strings/string_view.h, changing line 496 from return ABSL_ASSERT(len <= kMaxSize), len; to just return len;"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants