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

Error while compiling 1.10.1 unrecognized command-line option #15

Open
108851027 opened this issue Jun 1, 2022 · 0 comments
Open

Error while compiling 1.10.1 unrecognized command-line option #15

108851027 opened this issue Jun 1, 2022 · 0 comments

Comments

@108851027
Copy link

I am using MacBook M1 to compile pytorch in Parrell virtual machine. Almost done but this error occurs:

....
...
...

copying caffe2/proto/hsm_pb2.py -> build/lib.linux-aarch64-3.9/caffe2/proto
running build_ext
-- Building with NumPy bindings
-- Not using cuDNN
-- Not using CUDA
-- Not using MKLDNN
-- Not using NCCL
-- Building with distributed package:
-- USE_TENSORPIPE=True
-- USE_GLOO=True
-- USE_MPI=False

Copying extension caffe2.python.caffe2_pybind11_state
Copying caffe2.python.caffe2_pybind11_state from torch/lib/python3.9/site-packages/caffe2/python/caffe2_pybind11_state.cpython-39-aarch64-linux-gnu.so to /media/psf/Home/Documents/git/pytorch/build/lib.linux-aarch64-3.9/caffe2/python/caffe2_pybind11_state.cpython-39-aarch64-linux-gnu.so
building 'torch._C' extension
gcc -pthread -B /home/parallels/anaconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/parallels/anaconda3/include -I/home/parallels/anaconda3/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/parallels/anaconda3/include -fPIC -I/home/parallels/anaconda3/include/python3.9 -c torch/csrc/stub.c -o build/temp.linux-aarch64-3.9/torch/csrc/stub.o -Wall -Wextra -Wno-strict-overflow -Wno-unused-parameter -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-deprecated-declarations -fno-strict-aliasing -Wno-missing-braces
gcc: error: unrecognized command-line option ‘-n1’; did you mean ‘-n’?
gcc: error: unrecognized command-line option ‘-n1’; did you mean ‘-n’?
error: command '/usr/local/bin/gcc' failed with exit code 1

--- gcc version is
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/aarch64-unknown-linux-gnu/11.2.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: ../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (GCC)

--- Linux version is
uname -ar
Linux ubuntu-linux-20-04-desktop 5.13.0-25-generic #26~20.04.1-Ubuntu SMP Sat Jan 8 18:05:46 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

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