clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
524 stars 29 forks source link

pip3.10 install miniupnpc fails #2480

Open ashkanull opened 3 years ago

ashkanull commented 3 years ago

studio@studio~ $ pip3.10 install miniupnpc

Defaulting to user installation because normal site-packages is not writeable
Collecting miniupnpc
  Using cached miniupnpc-2.0.2.tar.gz (67 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: miniupnpc
  Building wheel for miniupnpc (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ptewp9hd/miniupnpc_166c96a522b64a098f2bb15bc280ed3b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ptewp9hd/miniupnpc_166c96a522b64a098f2bb15bc280ed3b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-su2h_xzj                                                                                                                                     
       cwd: /tmp/pip-install-ptewp9hd/miniupnpc_166c96a522b64a098f2bb15bc280ed3b/                                                                                                                                                           
  Complete output (77 lines):                                                                                                                                                                                                               
  running bdist_wheel                                                                                                                                                                                                                       
  running build                                                                                                                                                                                                                             
  running build_ext                                                                                                                                                                                                                         
  /bin/sh updateminiupnpcstrings.sh                                                                                                                                                                                                         
  which: no lsb_release in (/usr/local/bin:/usr/bin/haswell/avx512_1:/usr/bin/haswell:/usr/bin:/opt/3rd-party/bin)                                                                                                                          
  Detected OS [Linux] version [5.15.2-1092.native]                                                                                                                                                                                          
  MiniUPnPc version [2.0.2]                                                                                                                                                                                                                 
  setting OS_STRING macro value to Linux/5.15.2-1092.native in miniupnpcstrings.h.                                                                                                                                                          
  setting MINIUPNPC_VERSION_STRING macro value to 2.0.2 in miniupnpcstrings.h.                                                                                                                                                              
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o miniwget.o miniwget.c                                                                                                                                                                        
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o minixml.o minixml.c                                                                                                                                                                          
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o igd_desc_parse.o igd_desc_parse.c                                                                                                                                                            
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o minisoap.o minisoap.c                                                                                                                                                                        
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o miniupnpc.o miniupnpc.c                                                                                                                                                                      
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o upnpreplyparse.o upnpreplyparse.c                                                                                                                                                            
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o upnpcommands.o upnpcommands.c                                                                                                                                                                
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o upnperrors.o upnperrors.c                                                                                                                                                                    
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o connecthostport.o connecthostport.c                                                                                                                                                          
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o portlistingparse.o portlistingparse.c                                                                                                                                                        
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o receivedata.o receivedata.c                                                                                                                                                                  
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o upnpdev.o upnpdev.c                                                                                                                                                                          
  gcc -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600   -c -o minissdpc.o minissdpc.c                                                                                                                                                                      
  gcc-ar crs libminiupnpc.a miniwget.o minixml.o igd_desc_parse.o minisoap.o miniupnpc.o upnpreplyparse.o upnpcommands.o upnperrors.o connecthostport.o portlistingparse.o receivedata.o upnpdev.o minissdpc.o                              
  building 'miniupnpc' extension                                                                                                                                                                                                            
  creating build                                                                                                                                                                                                                            
  creating build/temp.linux-x86_64-3.10                                                                                                                                                                                                     
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -fPIC -I/usr/include/python3.10 -c miniupnpcmodule.c -o build/temp.linux-x86_64-3.10/miniupnpcmodule.o                                                                                                                         
  miniupnpcmodule.c: In function ‘UPnP_deleteportmappingrange’:                                                                                                                                                                             
  miniupnpcmodule.c:415:33: warning: ‘__builtin___sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]                                                                                               
    415 |         sprintf(manageStr, "%hhu", manage);                                                                                                                                                                                       
        |                                 ^                                                                                                                                                                                                 
  In file included from /usr/include/stdio.h:888,                                                                                                                                                                                           
                   from /usr/include/python3.10/Python.h:25,                                                                                                                                                                                
                   from miniupnpcmodule.c:8:                                                                                                                                                                                                
  /usr/include/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 2 and 4 bytes into a destination of size 1                                                                                                               
     38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,                                                                                                                                                                   
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                   
     39 |                                   __glibc_objsize (__s), __fmt,                                                                                                                                                                   
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                   
     40 |                                   __va_arg_pack ());                                                                                                                                                                              
        |                                   ~~~~~~~~~~~~~~~~~                                                                                                                                                                               
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -fPIC -I/usr/include/python3.10 -c -march=haswell -O3 -fno-semantic-interposition -mno-vzeroupper -ffat-lto-objects -Wa,-mbranches-within-32B-boundaries -flto=4 miniupnpcmodule.c -o build/temp.linux-x86_64-3.10/miniupnpcmodule.o.avx2                                                                                                                                                                                                                                  
  miniupnpcmodule.c: In function ‘UPnP_deleteportmappingrange’:                                                                                                                                                                             
  miniupnpcmodule.c:415:33: warning: ‘__sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]                                                                                                         
    415 |         sprintf(manageStr, "%hhu", manage);                                                                                                                                                                                       
        |                                 ^                                                                                                                                                                                                 
  In file included from /usr/include/stdio.h:888,                                                                                                                                                                                           
                   from /usr/include/python3.10/Python.h:25,                                                                                                                                                                                
                   from miniupnpcmodule.c:8:                                                                                                                                                                                                
  /usr/include/bits/stdio2.h:38:10: note: ‘__sprintf_chk’ output between 2 and 4 bytes into a destination of size 1                                                                                                                         
     38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,                                                                                                                                                                   
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                   
     39 |                                   __glibc_objsize (__s), __fmt,                                                                                                                                                                   
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                   
     40 |                                   __va_arg_pack ());                                                                                                                                                                              
        |                                   ~~~~~~~~~~~~~~~~~                                                                                                                                                                               
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -fPIC -I/usr/include/python3.10 -c -march=skylake-avx512 -O3 -fno-semantic-interposition -ffat-lto-objects -flto=4 -Wa,-mbranches-within-32B-boundaries -mprefer-vector-width=256 miniupnpcmodule.c -o build/temp.linux-x86_64-3.10/miniupnpcmodule.o.avx512                                                                                                                                                                                                               
  miniupnpcmodule.c: In function ‘UPnP_deleteportmappingrange’:                                                                                                                                                                             
  miniupnpcmodule.c:415:33: warning: ‘__sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]                                                                                                         
    415 |         sprintf(manageStr, "%hhu", manage);                                                                                                                                                                                       
        |                                 ^                                                                                                                                                                                                 
  In file included from /usr/include/stdio.h:888,                                                                                                                                                                                           
                   from /usr/include/python3.10/Python.h:25,                                                                                                                                                                                
                   from miniupnpcmodule.c:8:                                                                                                                                                                                                
  /usr/include/bits/stdio2.h:38:10: note: ‘__sprintf_chk’ output between 2 and 4 bytes into a destination of size 1                                                                                                                         
     38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,                                                                                                                                                                   
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                   
     39 |                                   __glibc_objsize (__s), __fmt,                                                                                                                                                                   
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                   
     40 |                                   __va_arg_pack ());                                                                                                                                                                              
        |                                   ~~~~~~~~~~~~~~~~~                                                                                                                                                                               
  creating build/lib.linux-x86_64-3.10                                                                                                                                                                                                      
  gcc -shared -Wa,-mbranches-within-32B-boundaries -Wl,--build-id=sha1 -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake build/temp.linux-x86_64-3.10/miniupnpcmodule.o libminiupnpc.a -o build/lib.linux-x86_64-3.10/miniupnpc.cpython-310-x86_64-linux-gnu.so                                                                                                                                                          
  gcc -shared -Wa,-mbranches-within-32B-boundaries -Wl,--build-id=sha1 -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake build/temp.linux-x86_64-3.10/miniupnpcmodule.o.avx2 libminiupnpc.a.avx2 -o build/lib.linux-x86_64-3.10/miniupnpc.cpython-310-x86_64-linux-gnu.so.avx2                                                                                                                                           
  /usr/bin/ld: cannot find libminiupnpc.a.avx2: No such file or directory                                                                                                                                                                   
  collect2: error: ld returned 1 exit status                                                                                                                                                                                                
  error: command '/usr/bin/gcc' failed with exit code 1                                                                                                                                                                                     
  ----------------------------------------                                                                                                                                                                                                  
  ERROR: Failed building wheel for miniupnpc
  Running setup.py clean for miniupnpc
Failed to build miniupnpc
Installing collected packages: miniupnpc
    Running setup.py install for miniupnpc ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ptewp9hd/miniupnpc_166c96a522b64a098f2bb15bc280ed3b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ptewp9hd/miniupnpc_166c96a522b64a098f2bb15bc280ed3b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-g9j329mr/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/studio/.local/include/python3.10/miniupnpc                                                                                                                                                                                                                       
         cwd: /tmp/pip-install-ptewp9hd/miniupnpc_166c96a522b64a098f2bb15bc280ed3b/                                                                                                                                                         
    Complete output (60 lines):                                                                                                                                                                                                             
    running install                                                                                                                                                                                                                         
    /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.                                                    
      warnings.warn(                                                                                                                                                                                                                        
    running build                                                                                                                                                                                                                           
    running build_ext                                                                                                                                                                                                                       
    make: 'libminiupnpc.a' is up to date.                                                                                                                                                                                                   
    building 'miniupnpc' extension                                                                                                                                                                                                          
    creating build                                                                                                                                                                                                                          
    creating build/temp.linux-x86_64-3.10                                                                                                                                                                                                   
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -fPIC -I/usr/include/python3.10 -c miniupnpcmodule.c -o build/temp.linux-x86_64-3.10/miniupnpcmodule.o                                                                                                                       
    miniupnpcmodule.c: In function ‘UPnP_deleteportmappingrange’:                                                                                                                                                                           
    miniupnpcmodule.c:415:33: warning: ‘__builtin___sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]                                                                                             
      415 |         sprintf(manageStr, "%hhu", manage);                                                                                                                                                                                     
          |                                 ^                                                                                                                                                                                               
    In file included from /usr/include/stdio.h:888,                                                                                                                                                                                         
                     from /usr/include/python3.10/Python.h:25,                                                                                                                                                                              
                     from miniupnpcmodule.c:8:                                                                                                                                                                                              
    /usr/include/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 2 and 4 bytes into a destination of size 1                                                                                                             
       38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,                                                                                                                                                                 
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                 
       39 |                                   __glibc_objsize (__s), __fmt,                                                                                                                                                                 
          |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                 
       40 |                                   __va_arg_pack ());                                                                                                                                                                            
          |                                   ~~~~~~~~~~~~~~~~~                                                                                                                                                                             
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -fPIC -I/usr/include/python3.10 -c -march=haswell -O3 -fno-semantic-interposition -mno-vzeroupper -ffat-lto-objects -Wa,-mbranches-within-32B-boundaries -flto=4 miniupnpcmodule.c -o build/temp.linux-x86_64-3.10/miniupnpcmodule.o.avx2
    miniupnpcmodule.c: In function ‘UPnP_deleteportmappingrange’:
    miniupnpcmodule.c:415:33: warning: ‘__sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]
      415 |         sprintf(manageStr, "%hhu", manage);
          |                                 ^
    In file included from /usr/include/stdio.h:888,
                     from /usr/include/python3.10/Python.h:25,
                     from miniupnpcmodule.c:8:
    /usr/include/bits/stdio2.h:38:10: note: ‘__sprintf_chk’ output between 2 and 4 bytes into a destination of size 1
       38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       39 |                                   __glibc_objsize (__s), __fmt,
          |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       40 |                                   __va_arg_pack ());
          |                                   ~~~~~~~~~~~~~~~~~
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -O3 -fno-semantic-interposition -fPIC -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -fPIC -I/usr/include/python3.10 -c -march=skylake-avx512 -O3 -fno-semantic-interposition -ffat-lto-objects -flto=4 -Wa,-mbranches-within-32B-boundaries -mprefer-vector-width=256 miniupnpcmodule.c -o build/temp.linux-x86_64-3.10/miniupnpcmodule.o.avx512
    miniupnpcmodule.c: In function ‘UPnP_deleteportmappingrange’:
    miniupnpcmodule.c:415:33: warning: ‘__sprintf_chk’ writing a terminating nul past the end of the destination [-Wformat-overflow=]
      415 |         sprintf(manageStr, "%hhu", manage);
          |                                 ^
    In file included from /usr/include/stdio.h:888,
                     from /usr/include/python3.10/Python.h:25,
                     from miniupnpcmodule.c:8:
    /usr/include/bits/stdio2.h:38:10: note: ‘__sprintf_chk’ output between 2 and 4 bytes into a destination of size 1
       38 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       39 |                                   __glibc_objsize (__s), __fmt,
          |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       40 |                                   __va_arg_pack ());
          |                                   ~~~~~~~~~~~~~~~~~
    creating build/lib.linux-x86_64-3.10
    gcc -shared -Wa,-mbranches-within-32B-boundaries -Wl,--build-id=sha1 -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake build/temp.linux-x86_64-3.10/miniupnpcmodule.o libminiupnpc.a -o build/lib.linux-x86_64-3.10/miniupnpc.cpython-310-x86_64-linux-gnu.so
    gcc -shared -Wa,-mbranches-within-32B-boundaries -Wl,--build-id=sha1 -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake build/temp.linux-x86_64-3.10/miniupnpcmodule.o.avx2 libminiupnpc.a.avx2 -o build/lib.linux-x86_64-3.10/miniupnpc.cpython-310-x86_64-linux-gnu.so.avx2
    /usr/bin/ld: cannot find libminiupnpc.a.avx2: No such file or directory
    collect2: error: ld returned 1 exit status
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ptewp9hd/miniupnpc_166c96a522b64a098f2bb15bc280ed3b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ptewp9hd/miniupnpc_166c96a522b64a098f2bb15bc280ed3b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-g9j329mr/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/studio/.local/include/python3.10/miniupnpc Check the logs for full command output.
studio@studio~ $ 
Yannis1993 commented 2 years ago

Any news on this? I've got the issue as well, could not figure out how to fix this.

bryteise commented 2 years ago

Unfortunately the setup.py for the project looks quite difficult to enable for building (and then linking as the error you are seeing) an avx2/avx512 version of the static library as it uses a custom build process. You can do a bit of a hack and modify the Makefile like so and it builds though.

In the $(LIBRARY) target in minipnpc's Makefile for the non-darwin case add two copies that do:

cp $@ $@.avx2
cp $@ $@.avx512

And it should be able to build and install.