ybkscht / EfficientPose

Other
236 stars 67 forks source link

/home/mona/anaconda3/envs/EfficientPose/compiler_compat/ld: warning: /home/mona/anaconda3/envs/EfficientPose/lib/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 #66

Closed monajalal closed 4 months ago

monajalal commented 8 months ago

I was able to move forward with all the steps but I get error in step 6. Could you please have a look?

image

(EfficientPose) mona@mona-ThinkStation-P7:~/EfficientPose$ python setup.py build_ext --inplace
Compiling utils/compute_overlap.pyx because it changed.
[1/1] Cythonizing utils/compute_overlap.pyx
/home/mona/anaconda3/envs/EfficientPose/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/mona/EfficientPose/utils/compute_overlap.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
In file included from /home/mona/anaconda3/envs/EfficientPose/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832,
                 from /home/mona/anaconda3/envs/EfficientPose/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /home/mona/anaconda3/envs/EfficientPose/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from utils/compute_overlap.c:630:
/home/mona/anaconda3/envs/EfficientPose/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
utils/compute_overlap.c: In function ‘__pyx_pf_5utils_15compute_overlap_2calc_min_distance_between_all_point_pairs’:
utils/compute_overlap.c:2932:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
 2932 |   for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      |                                   ^
/home/mona/anaconda3/envs/EfficientPose/compiler_compat/ld: warning: /home/mona/anaconda3/envs/EfficientPose/lib/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/home/mona/anaconda3/envs/EfficientPose/compiler_compat/ld: warning: /home/mona/anaconda3/envs/EfficientPose/lib/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/home/mona/anaconda3/envs/EfficientPose/compiler_compat/ld: warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/home/mona/anaconda3/envs/EfficientPose/compiler_compat/ld: warning: /home/mona/anaconda3/envs/EfficientPose/lib/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/home/mona/anaconda3/envs/EfficientPose/compiler_compat/ld: warning: /home/mona/anaconda3/envs/EfficientPose/lib/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002

My sys info:

(base) mona@mona-ThinkStation-P7:~$ uname -a
Linux mona-ThinkStation-P7 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep  7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
(base) mona@mona-ThinkStation-P7:~$ lsb_release -a
LSB Version:    core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:    22.04
Codename:   jammy
(base) mona@mona-ThinkStation-P7:~$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) mona@mona-ThinkStation-P7:~$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) mona@mona-ThinkStation-P7:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0
(base) mona@mona-ThinkStation-P7:~$ nvidia-smi
Wed Oct 11 11:29:34 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.125.06   Driver Version: 525.125.06   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA RTX 6000...  Off  | 00000000:52:00.0  On |                  Off |
| 30%   42C    P8    31W / 300W |   1703MiB / 49140MiB |     32%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2159      G   /usr/lib/xorg/Xorg                690MiB |
|    0   N/A  N/A      2296      G   ...ome-remote-desktop-daemon        6MiB |
|    0   N/A  N/A      2335      G   /usr/bin/gnome-shell               86MiB |
|    0   N/A  N/A      2827      G   ...AAAAAAAAA= --shared-files      153MiB |
|    0   N/A  N/A      3242      G   ...2/usr/lib/firefox/firefox      321MiB |
|    0   N/A  N/A     99342      G   blender                           239MiB |
|    0   N/A  N/A    115985      G   ...RendererForSitePerProcess      127MiB |
+-----------------------------------------------------------------------------+

Please let me know if more information is needed.

monajalal commented 8 months ago

I did the change suggested by @abmoineddini in https://github.com/ybkscht/EfficientPose/pull/53/commits/6bbcdedeaa35ec05efb20cccce253dc1017f997f

(EfficientPose) mona@mona-ThinkStation-P7:~/EfficientPose$ vi setup.py 
(EfficientPose) mona@mona-ThinkStation-P7:~/EfficientPose$ python setup.py build_ext --inplace
(EfficientPose) mona@mona-ThinkStation-P7:~/EfficientPose$ git diff
diff --git a/setup.py b/setup.py
index 23ff36a..f35c157 100644
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,6 @@ import numpy

 #setup function to compile the cython modules
 setup(
-    ext_modules=cythonize("utils/compute_overlap.pyx"),
+    ext_modules=cythonize(["utils/compute_overlap.pyx"]),
     include_dirs=[numpy.get_include()]
 )

and didn't get any error. Could you please confirm if this was the issue?