PyTorch4M1 icon indicating copy to clipboard operation
PyTorch4M1 copied to clipboard

make: *** [all] Error 2

Open davidkong0987 opened this issue 3 years ago • 4 comments

When I run python setup.py build

[ 20%] Built target libprotoc
[ 20%] Built target fbgemm_avx2
[ 20%] Built target fbgemm_generic
make: *** [all] Error 2

davidkong0987 avatar Feb 23 '22 14:02 davidkong0987

See: "build fbgemm failed #33410" https://github.com/pytorch/pytorch/issues/33410

IAMAl avatar Mar 19 '22 15:03 IAMAl

I have the same error

[ 56%] Built target all_microkernels
[ 56%] Built target fbgemm_generic
gmake: *** [Makefile:146: all] Error 2

In that discussion, concludes that it needs gcc higher version than 5,

I have gcc version 12

gcc version 12.2.1 20221121 (Red Hat 12.2.1-4) (GCC)

Is there a procedure to fix this?

Odin234 avatar Feb 10 '23 23:02 Odin234

I have tried to rerun the build again, always produce this output

gmake[1]: *** [CMakeFiles/Makefile2:2631: third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Odin234 avatar Feb 10 '23 23:02 Odin234

I have tried to rerun the build again, always produce this output

gmake[1]: *** [CMakeFiles/Makefile2:2631: third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

have you reached at solution? I face the same error.

rezajahadi avatar Jun 11 '24 19:06 rezajahadi