Open yinst2012 opened 7 years ago
When I checked the log of ./make.sh, I found that, g++: error: unrecognized option ‘-R, how could I solve it?
running build_ext cythoning utils/bbox.pyx to utils/bbox.c building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/utils {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/yinst/Public/anaconda2/include/python2.7 -c utils/bbox.c -o build/temp.linux-x86_64-2.7/utils/bbox.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/utils/bbox.o -L/home/yinst/Public/anaconda2/lib -lpython2.7 -o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/utils/cython_bbox.so cythoning utils/nms.pyx to utils/nms.c building 'utils.cython_nms' extension {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/yinst/Public/anaconda2/include/python2.7 -c utils/nms.c -o build/temp.linux-x86_64-2.7/utils/nms.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/utils/nms.o -L/home/yinst/Public/anaconda2/lib -lpython2.7 -o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/utils/cython_nms.so cythoning nms/cpu_nms.pyx to nms/cpu_nms.c building 'nms.cpu_nms' extension creating build/temp.linux-x86_64-2.7/nms {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/yinst/Public/anaconda2/include/python2.7 -c nms/cpu_nms.c -o build/temp.linux-x86_64-2.7/nms/cpu_nms.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/nms/cpu_nms.o -L/home/yinst/Public/anaconda2/lib -lpython2.7 -o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/nms/cpu_nms.so cythoning nms/gpu_nms.pyx to nms/gpu_nms.cpp building 'nms.gpu_nms' extension {'gcc': ['-Wno-unused-function'], 'nvcc': ['-arch=sm_35', '--ptxas-options=-v', '-c', '--compiler-options', "'-fPIC'"]} /usr/local/cuda/bin/nvcc -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c nms/nms_kernel.cu -o build/temp.linux-x86_64-2.7/nms/nms_kernel.o -arch=sm_35 --ptxas-options=-v -c --compiler-options '-fPIC' ptxas info : 0 bytes gmem ptxas info : Compiling entry function '_Z10nms_kernelifPKfPy' for 'sm_35' ptxas info : Function properties for _Z10nms_kernelifPKfPy 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 25 registers, 1280 bytes smem, 344 bytes cmem[0], 8 bytes cmem[2] {'gcc': ['-Wno-unused-function'], 'nvcc': ['-arch=sm_35', '--ptxas-options=-v', '-c', '--compiler-options', "'-fPIC'"]} gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c nms/gpu_nms.cpp -o build/temp.linux-x86_64-2.7/nms/gpu_nms.o -Wno-unused-function cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] In file included from /home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from nms/gpu_nms.cpp:499: /home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] g++ -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/nms/nms_kernel.o build/temp.linux-x86_64-2.7/nms/gpu_nms.o -L/usr/local/cuda/lib64 -L/home/yinst/Public/anaconda2/lib -R/usr/local/cuda/lib64 -lcudart -lpython2.7 -o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/nms/gpu_nms.so g++: error: unrecognized option ‘-R’ error: command 'g++' failed with exit status 1 Compiling roi pooling kernels by nvcc... Including CUDA code. /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling generating /tmp/tmpsiwvUz/_roi_pooling.c running build_ext building '_roi_pooling' extension creating home creating home/yinst creating home/yinst/Desktop creating home/yinst/Desktop/faster_rcnn_pytorch creating home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn creating home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling creating home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c _roi_pooling.c -o ./_roi_pooling.o gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling.c -o ./home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling.o gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling_cuda.c -o ./home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling_cuda.o gcc -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed ./_roi_pooling.o ./home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling.o ./home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling_cuda.o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/cuda/roi_pooling.cu.o -L/home/yinst/Public/anaconda2/lib -lpython2.7 -o ./_roi_pooling.so
I also have this problem when I run the "make.sh". But when I compiled the code last week in another computer, the program ran correctly. I'm not sure whether it is a new bug.
When I checked the log of ./make.sh, I found that, g++: error: unrecognized option ‘-R, how could I solve it?
running build_ext cythoning utils/bbox.pyx to utils/bbox.c building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/utils {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/yinst/Public/anaconda2/include/python2.7 -c utils/bbox.c -o build/temp.linux-x86_64-2.7/utils/bbox.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/utils/bbox.o -L/home/yinst/Public/anaconda2/lib -lpython2.7 -o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/utils/cython_bbox.so cythoning utils/nms.pyx to utils/nms.c building 'utils.cython_nms' extension {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/yinst/Public/anaconda2/include/python2.7 -c utils/nms.c -o build/temp.linux-x86_64-2.7/utils/nms.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/utils/nms.o -L/home/yinst/Public/anaconda2/lib -lpython2.7 -o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/utils/cython_nms.so cythoning nms/cpu_nms.pyx to nms/cpu_nms.c building 'nms.cpu_nms' extension creating build/temp.linux-x86_64-2.7/nms {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/yinst/Public/anaconda2/include/python2.7 -c nms/cpu_nms.c -o build/temp.linux-x86_64-2.7/nms/cpu_nms.o -Wno-cpp -Wno-unused-function gcc -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/nms/cpu_nms.o -L/home/yinst/Public/anaconda2/lib -lpython2.7 -o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/nms/cpu_nms.so cythoning nms/gpu_nms.pyx to nms/gpu_nms.cpp building 'nms.gpu_nms' extension {'gcc': ['-Wno-unused-function'], 'nvcc': ['-arch=sm_35', '--ptxas-options=-v', '-c', '--compiler-options', "'-fPIC'"]} /usr/local/cuda/bin/nvcc -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c nms/nms_kernel.cu -o build/temp.linux-x86_64-2.7/nms/nms_kernel.o -arch=sm_35 --ptxas-options=-v -c --compiler-options '-fPIC' ptxas info : 0 bytes gmem ptxas info : Compiling entry function '_Z10nms_kernelifPKfPy' for 'sm_35' ptxas info : Function properties for _Z10nms_kernelifPKfPy 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 25 registers, 1280 bytes smem, 344 bytes cmem[0], 8 bytes cmem[2] {'gcc': ['-Wno-unused-function'], 'nvcc': ['-arch=sm_35', '--ptxas-options=-v', '-c', '--compiler-options', "'-fPIC'"]} gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c nms/gpu_nms.cpp -o build/temp.linux-x86_64-2.7/nms/gpu_nms.o -Wno-unused-function cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] In file included from /home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from nms/gpu_nms.cpp:499: /home/yinst/Public/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] g++ -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/nms/nms_kernel.o build/temp.linux-x86_64-2.7/nms/gpu_nms.o -L/usr/local/cuda/lib64 -L/home/yinst/Public/anaconda2/lib -R/usr/local/cuda/lib64 -lcudart -lpython2.7 -o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/nms/gpu_nms.so g++: error: unrecognized option ‘-R’ error: command 'g++' failed with exit status 1 Compiling roi pooling kernels by nvcc... Including CUDA code. /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling generating /tmp/tmpsiwvUz/_roi_pooling.c running build_ext building '_roi_pooling' extension creating home creating home/yinst creating home/yinst/Desktop creating home/yinst/Desktop/faster_rcnn_pytorch creating home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn creating home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling creating home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c _roi_pooling.c -o ./_roi_pooling.o gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling.c -o ./home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling.o gcc -pthread -B /home/yinst/Public/anaconda2/compiler_compat -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yinst/Public/anaconda2/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/yinst/Public/anaconda2/include/python2.7 -c /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling_cuda.c -o ./home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling_cuda.o gcc -pthread -shared -B /home/yinst/Public/anaconda2/compiler_compat -L/home/yinst/Public/anaconda2/lib -Wl,-rpath=/home/yinst/Public/anaconda2/lib,--no-as-needed ./_roi_pooling.o ./home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling.o ./home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/roi_pooling_cuda.o /home/yinst/Desktop/faster_rcnn_pytorch/faster_rcnn/roi_pooling/src/cuda/roi_pooling.cu.o -L/home/yinst/Public/anaconda2/lib -lpython2.7 -o ./_roi_pooling.so