error: command 'gcc' failed with exit status 1
minygd opened this issue · 7 comments
Hi, I meet an Error while building the Extension in a Server with Titan RTX and OS Ubuntu 18.04(gcc/g++ 5.5.0) machine. My Pytorch vision is 1.0.0 and all dependencies are well prepared.
A lot of message are presented as:
T *grad_input_ptr = grad_input.data_ptr<T>();
../Spherical-Package/ext_modules/include/cpp/mapped_avg_pool.h:98:56: error:expected primary-expression before ‘)’ token
So I think the reference code are in this link
And the final report is: error: command 'gcc' failed with exit status 1
I've updated the readme to show that this needs at least pytorch 1.4.0 or higher.
@meder411 Hi, thank you. After changing to Pytorch 1.5.1, the errors mentioned above have gone. But another error occurs:
../../Spherical-Package/ext_modules/include/core/distortion.h:144:67: error: no matching function for call to ‘host_device_max(double, int)’
abs(rel_step_size * x(1)));
I search for function host_device_max()
, and finally get it in this link. So I have tried to paste it in distortion.h
, but failed to build with the error and also a note
below:(Since I paste it in distortion.h
L#40 and build)
../../Spherical-Package/ext_modules/include/core/distortion.h:41:30: note: candidate: template<class T> T spherical::core::host_device_max(T, T)
__host__ __device__ inline T host_device_max(const T val1, const T val2) {
This is with the Environment(Pytorch 1.5.1 / Cudatoolkit 10.2 / python 3.8), and all requirements are well prepared.
Sorry for the delay. Let me take a look, and I'll see if I can replicate this.
It's fine, THX!
Sorry for the delay. Let me take a look, and I'll see if I can replicate this.
Hi, I still can't implement the Spherical-Package
, do you replicate it?
I just checked everything using the provided Docker setup. There actually was a typo with the Dockerfile, but this was a different error than you are running into. With the changes I just pushed (v.1.0.3), the Docker setup works correctly and all tests pass and examples run.
If you are still running into this issue, I recommend either using the provided Docker setup or simply running the commands from the Dockerfile sequentially to manually install the dependencies. That said, it definitely doesn't look like a dependency issue.
I'm not entirely sure what might be causing your issue. It looks like an include might have been deleted somewhere? You shouldn't have to move that function to distortion.h
. Perhaps do a git pull
or a fresh git clone
?