The version of GCC I use is 7.5,however the version in requirements of INSTALL.md is GCC >=4.9,<6.0.
when install Pytorch Detection , run command "python setup.py build develop --no-deps",the error occured.
running build
running build_py
copying fcos_core/layers/init.py -> build/lib.linux-x86_64-3.7/fcos_core/layers
running egg_info
writing fcos.egg-info/PKG-INFO
writing dependency_links to fcos.egg-info/dependency_links.txt
writing requirements to fcos.egg-info/requires.txt
writing top-level names to fcos.egg-info/top_level.txt
reading manifest file 'fcos.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fcos.egg-info/SOURCES.txt'
running build_ext
building 'fcos_core._C' extension
gcc -pthread -B /home/xing.yue/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/TH -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/THC -I/home/xing.yue/anaconda3/envs/FCOS/include/python3.7m -c fcos_core/csrc/vision.cpp -o build/temp.linux-x86_64-3.7/fcos_core/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/xing.yue/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/TH -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/THC -I/home/xing.yue/anaconda3/envs/FCOS/include/python3.7m -c fcos_core/csrc/cpu/ROIAlign_cpu.cpp -o build/temp.linux-x86_64-3.7/fcos_core/csrc/cpu/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9:0,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from fcos_core/csrc/cpu/vision.h:3,
from fcos_core/csrc/cpu/ROIAlign_cpu.cpp:2:
fcos_core/csrc/cpu/ROIAlign_cpu.cpp: In lambda function:
/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:150:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations]
at::ScalarType _st = ::detail::scalar_type(the_type); \
^
fcos_core/csrc/cpu/ROIAlign_cpu.cpp:242:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
AT_DISPATCH_FLOATING_TYPES(input.type(), "ROIAlign_forward", [&] {
^~~~~~
/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:78:23: note: declared here
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) {
^~~
gcc -pthread -B /home/xing.yue/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/TH -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/THC -I/home/xing.yue/anaconda3/envs/FCOS/include/python3.7m -c fcos_core/csrc/cpu/nms_cpu.cpp -o build/temp.linux-x86_64-3.7/fcos_core/csrc/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9:0,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from fcos_core/csrc/cpu/vision.h:3,
from fcos_core/csrc/cpu/nms_cpu.cpp:2:
fcos_core/csrc/cpu/nms_cpu.cpp: In lambda function:
/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:150:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations]
at::ScalarType _st = ::detail::scalar_type(the_type); \
^
fcos_core/csrc/cpu/nms_cpu.cpp:71:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
AT_DISPATCH_FLOATING_TYPES(dets.type(), "nms", [&] {
^~~~~~
/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:78:23: note: declared here
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) {
^~~
/usr/bin/nvcc -DWITH_CUDA -Ifcos_core/csrc -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/TH -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/THC -I/home/xing.yue/anaconda3/envs/FCOS/include/python3.7m -c fcos_core/csrc/cuda/ml_nms.cu -o build/temp.linux-x86_64-3.7/fcos_core/csrc/cuda/ml_nms.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
nvcc fatal : Path to libdevice library not specified
error: command '/usr/bin/nvcc' failed with exit status 1
The version of GCC I use is 7.5,however the version in requirements of INSTALL.md is GCC >=4.9,<6.0. when install Pytorch Detection , run command "python setup.py build develop --no-deps",the error occured.
running build running build_py copying fcos_core/layers/init.py -> build/lib.linux-x86_64-3.7/fcos_core/layers running egg_info writing fcos.egg-info/PKG-INFO writing dependency_links to fcos.egg-info/dependency_links.txt writing requirements to fcos.egg-info/requires.txt writing top-level names to fcos.egg-info/top_level.txt reading manifest file 'fcos.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'fcos.egg-info/SOURCES.txt' running build_ext building 'fcos_core._C' extension gcc -pthread -B /home/xing.yue/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/TH -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/THC -I/home/xing.yue/anaconda3/envs/FCOS/include/python3.7m -c fcos_core/csrc/vision.cpp -o build/temp.linux-x86_64-3.7/fcos_core/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -B /home/xing.yue/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/TH -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/THC -I/home/xing.yue/anaconda3/envs/FCOS/include/python3.7m -c fcos_core/csrc/cpu/ROIAlign_cpu.cpp -o build/temp.linux-x86_64-3.7/fcos_core/csrc/cpu/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9:0, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from fcos_core/csrc/cpu/vision.h:3, from fcos_core/csrc/cpu/ROIAlign_cpu.cpp:2: fcos_core/csrc/cpu/ROIAlign_cpu.cpp: In lambda function: /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:150:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations] at::ScalarType _st = ::detail::scalar_type(the_type); \ ^ fcos_core/csrc/cpu/ROIAlign_cpu.cpp:242:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "ROIAlign_forward", [&] { ^
~~~~~/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:78:23: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) { ^~~gcc -pthread -B /home/xing.yue/anaconda3/envs/FCOS/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -Ifcos_core/csrc -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/TH -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/THC -I/home/xing.yue/anaconda3/envs/FCOS/include/python3.7m -c fcos_core/csrc/cpu/nms_cpu.cpp -o build/temp.linux-x86_64-3.7/fcos_core/csrc/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9:0, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from fcos_core/csrc/cpu/vision.h:3, from fcos_core/csrc/cpu/nms_cpu.cpp:2: fcos_core/csrc/cpu/nms_cpu.cpp: In lambda function: /home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:150:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations] at::ScalarType _st = ::detail::scalar_type(the_type); \ ^ fcos_core/csrc/cpu/nms_cpu.cpp:71:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(dets.type(), "nms", [&] { ^~~~~~/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:78:23: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) { ^~~/usr/bin/nvcc -DWITH_CUDA -Ifcos_core/csrc -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/TH -I/home/xing.yue/anaconda3/envs/FCOS/lib/python3.7/site-packages/torch/include/THC -I/home/xing.yue/anaconda3/envs/FCOS/include/python3.7m -c fcos_core/csrc/cuda/ml_nms.cu -o build/temp.linux-x86_64-3.7/fcos_core/csrc/cuda/ml_nms.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 nvcc fatal : Path to libdevice library not specified error: command '/usr/bin/nvcc' failed with exit status 1what is the reason for this? thanks