Giter Club home page Giter Club logo

Comments (11)

E-Dreamer-LQ avatar E-Dreamer-LQ commented on June 29, 2024 1

Good news! I changed the cuda version 9.0 to 8.0. and it worked, now complied completed.

from roialign_pytorch.

linkinpark213 avatar linkinpark213 commented on June 29, 2024

Hi, it seems that you don't have a g++ on your system, or your system isn't a Linux on a 64-bit x86 architecture. What's your operating system?

from roialign_pytorch.

E-Dreamer-LQ avatar E-Dreamer-LQ commented on June 29, 2024

when i use "cat /proc/version" to check my operating system:
Linux version 4.4.0-142-generic (buildd@lgw01-amd64-033) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10) ) #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019.

but when i use "lsb_release -a" to check my opearting system:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

I don't know if that's the problem.

from roialign_pytorch.

linkinpark213 avatar linkinpark213 commented on June 29, 2024

@E-Dreamer-LQ Have you tried out sudo apt-get install g++?

from roialign_pytorch.

E-Dreamer-LQ avatar E-Dreamer-LQ commented on June 29, 2024

I tryed out sudo apt-get install g++, and it can be complied. However another problem was encounted.
"command '/usr/local/cuda/bin/nvcc' failed with exit status 1"
My environment :
gcc : 5.5.0
g++ : 4.8.5

from roialign_pytorch.

linkinpark213 avatar linkinpark213 commented on June 29, 2024

@E-Dreamer-LQ Could you provide the full compilation log? At least the error part in the end.

from roialign_pytorch.

E-Dreamer-LQ avatar E-Dreamer-LQ commented on June 29, 2024

Ok, the full compilation log:

running install
running bdist_egg
running egg_info
writing top-level names to roi_util.egg-info/top_level.txt
writing dependency_links to roi_util.egg-info/dependency_links.txt
writing roi_util.egg-info/PKG-INFO
reading manifest file 'roi_util.egg-info/SOURCES.txt'
writing manifest file 'roi_util.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'roi_util.C' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITH_CUDA -I/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc -I/usr/local/lib/python3.5/dist-packages/torch/include -I/usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.5/dist-packages/torch/include/TH -I/usr/local/lib/python3.5/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -c /home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/vision.cpp -o build/temp.linux-x86_64-3.5/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/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++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITH_CUDA -I/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc -I/usr/local/lib/python3.5/dist-packages/torch/include -I/usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.5/dist-packages/torch/include/TH -I/usr/local/lib/python3.5/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -c /home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/ROIAlign_cpu.cpp -o build/temp.linux-x86_64-3.5/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/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 /usr/local/lib/python3.5/dist-packages/torch/include/ATen/ATen.h:9:0,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h: ,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/extension.h:4,
from /home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/vision.h:3,
from /home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/ROIAlign_cpu.cpp:2:
/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/ROIAlign_cpu.cpp: In lambda function:
/usr/local/lib/python3.5/dist-packages/torch/include/ATen/Dispatch.h:71:52: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations]
at::ScalarType st = ::detail::scalar_type(TYPE);
^
/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/ROIAlign_cpu.cpp:242:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
AT_DISPATCH_FLOATING_TYPES(input.type(), "ROIAlign_forward", [&] {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.5/dist-packages/torch/include/ATen/Dispatch.h:47:23: note: declared here
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) {
^~~~~~~~~~~
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITH_CUDA -I/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc -I/usr/local/lib/python3.5/dist-packages/torch/include -I/usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.5/dist-packages/torch/include/TH -I/usr/local/lib/python3.5/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -c /home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/nms_cpu.cpp -o build/temp.linux-x86_64-3.5/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/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 /usr/local/lib/python3.5/dist-packages/torch/include/ATen/ATen.h:9:0,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h: ,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /usr/local/lib/python3.5/dist-packages/torch/include/torch/extension.h:4,
from /home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/vision.h:3,
from /home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/nms_cpu.cpp:2:
/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/nms_cpu.cpp: In lambda function:
/usr/local/lib/python3.5/dist-packages/torch/include/ATen/Dispatch.h:71:52: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations]
at::ScalarType st = ::detail::scalar_type(TYPE);
^
/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cpu/nms_cpu.cpp:71:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
AT_DISPATCH_FLOATING_TYPES(dets.type(), "nms", [&] {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/python3.5/dist-packages/torch/include/ATen/Dispatch.h:47:23: note: declared here
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) {
^~~~~~~~~~~
/usr/local/cuda/bin/nvcc -DWITH_CUDA -I/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc -I/usr/local/lib/python3.5/dist-packages/torch/include -I/usr/local/lib/python3.5/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.5/dist-packages/torch/include/TH -I/usr/local/lib/python3.5/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.5m -c /home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cuda/ROIAlign_cuda.cu -o build/temp.linux-x86_64-3.5/home/lab30202/sdb/liuqiang/2020-4-8-ROI_Pool_Align/RoIAlign_PyTorch/roi_util/csrc/cuda/ROIAlign_cuda.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

from roialign_pytorch.

linkinpark213 avatar linkinpark213 commented on June 29, 2024

@E-Dreamer-LQ Hi, I think your problem is that your g++ version isn't compatible with your gcc version.

You can try downgrading gcc to 4.8 by sudo apt-get install gcc-4.8 or upgrading g++ to 5.5 by sudo apt-get install g++-5.

Remember to update the soft link /usr/bin/gcc or /usr/bin/g++ with the path to the correct binary file in the same directory. For example, to link /usr/bin/gcc to your 4.8 version, you can use sudo rm /usr/bin/gcc && sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc.

from roialign_pytorch.

E-Dreamer-LQ avatar E-Dreamer-LQ commented on June 29, 2024

emm, I tried your method. The problem : " gcc: error trying to exec 'cc1plus': execvp: No such file or directory" was eliminated. But the error: "command '/usr/local/cuda/bin/nvcc' failed with exit status 1"
still exits. Could you tell me that what is your environment like ?

from roialign_pytorch.

linkinpark213 avatar linkinpark213 commented on June 29, 2024

@E-Dreamer-LQ I was using gcc and g++ with version 7.5.0, but 4.8 should work well with this code. Any other error messages before that final line?

from roialign_pytorch.

E-Dreamer-LQ avatar E-Dreamer-LQ commented on June 29, 2024

It should be my environment problem, anyway, thank you

from roialign_pytorch.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.