Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

error: command 'gcc' failed with exit status 1 #1257

Closed
Alan-D-Chen opened this issue Jun 24, 2020 · 1 comment
Closed

error: command 'gcc' failed with exit status 1 #1257

Alan-D-Chen opened this issue Jun 24, 2020 · 1 comment

Comments

@Alan-D-Chen
Copy link

Alan-D-Chen commented Jun 24, 2020

❓ Questions and Help

thanks to facebook-maskrcnn_benchmark

go to Alan.D.Chen

I get a problem 'error: command 'gcc' failed with exit status 1', when I go with:

install apex

cd $INSTALL_DIR
git clone https://github.com/NVIDIA/apex.git
cd apex

python setup.py install --cuda_ext --cpp_ext

the last lines cannot go throught

..........
/home/alanc/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:10:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return VA_ARGS();
^~~~~~~~~~~
csrc/mlp.cpp:123:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
AT_DISPATCH_FLOATING_TYPES_AND_HALF(inputs[0].type(), "mlp_backward", [&] {
^
csrc/mlp.cpp:149:37: error: expected primary-expression before ‘>’ token
work_space.data_ptr<scalar_t>(),
^
csrc/mlp.cpp:123:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
AT_DISPATCH_FLOATING_TYPES_AND_HALF(inputs[0].type(), "mlp_backward", [&] {
^
csrc/mlp.cpp:149:39: error: expected primary-expression before ‘)’ token
work_space.data_ptr<scalar_t>(),
^
/home/alanc/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:10:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return VA_ARGS();
^~~~~~~~~~~
csrc/mlp.cpp:123:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
AT_DISPATCH_FLOATING_TYPES_AND_HALF(inputs[0].type(), "mlp_backward", [&] {
^
error: command 'gcc' failed with exit status 1
'

Python 3.7.6
pytorch 1.4.0 py3.7_cuda10.0.130_cudnn7.6.3_0 pytorch
pytorch-nightly 1.0.0.dev20190328 py3.7_cuda10.0.130_cudnn7.4.2_0 pytorch
torchvision 0.5.0 py37_cu100 pytorch
gcc version 7.3.0 (GCC)

@Alan-D-Chen
Copy link
Author

Alan-D-Chen commented Jun 24, 2020

You can fix it with:
'git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0'
for more information

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

No branches or pull requests

1 participant