Advertisement
Guest User

Untitled

a guest
Nov 12th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.73 KB | None | 0 0
  1. Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  2. Collecting luma.led_matrix
  3. Downloading https://www.piwheels.org/simple/luma-led-matrix/luma.led_matrix-1.5.0-py2.py3-none-any.whl (19 kB)
  4. Collecting rpi-ws281x
  5. Downloading https://www.piwheels.org/simple/rpi-ws281x/rpi_ws281x-4.3.1-cp39-cp39-linux_armv7l.whl (117 kB)
  6. |████████████████████████████████| 117 kB 1.0 MB/s
  7. Collecting ws2812
  8. Downloading ws2812-1.0.0.tar.gz (58 kB)
  9. |████████████████████████████████| 58 kB 1.1 MB/s
  10. Preparing metadata (setup.py) ... done
  11. Collecting luma.core>=1.14.0
  12. Downloading https://www.piwheels.org/simple/luma-core/luma.core-2.3.1-py2.py3-none-any.whl (71 kB)
  13. |████████████████████████████████| 71 kB 850 kB/s
  14. Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (from luma.core>=1.14.0->luma.led_matrix) (3.5)
  15. Collecting pillow>=4.0.0
  16. Downloading https://www.piwheels.org/simple/pillow/Pillow-8.4.0-cp39-cp39-linux_armv7l.whl (1.1 MB)
  17. |████████████████████████████████| 1.1 MB 51 kB/s
  18. Collecting deprecated
  19. Downloading https://www.piwheels.org/simple/deprecated/Deprecated-1.2.13-py2.py3-none-any.whl (9.5 kB)
  20. Requirement already satisfied: RPI.GPIO in /usr/lib/python3/dist-packages (from luma.core>=1.14.0->luma.led_matrix) (0.7.0)
  21. Collecting cbor2
  22. Downloading https://www.piwheels.org/simple/cbor2/cbor2-5.4.2-cp39-cp39-linux_armv7l.whl (157 kB)
  23. |████████████████████████████████| 157 kB 1.1 MB/s
  24. Collecting smbus2
  25. Downloading https://www.piwheels.org/simple/smbus2/smbus2-0.4.1-py2.py3-none-any.whl (11 kB)
  26. Collecting pyftdi
  27. Downloading https://www.piwheels.org/simple/pyftdi/pyftdi-0.53.3-py3-none-any.whl (141 kB)
  28. |████████████████████████████████| 141 kB 2.4 MB/s
  29. Collecting wrapt<2,>=1.10
  30. Downloading https://www.piwheels.org/simple/wrapt/wrapt-1.13.3-cp39-cp39-linux_armv7l.whl (71 kB)
  31. |████████████████████████████████| 71 kB 821 kB/s
  32. Collecting pyserial>=3.0
  33. Downloading https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
  34. |████████████████████████████████| 90 kB 1.6 MB/s
  35. Collecting pyusb!=1.2.0,>=1.0.0
  36. Downloading https://www.piwheels.org/simple/pyusb/pyusb-1.2.1-py3-none-any.whl (58 kB)
  37. |████████████████████████████████| 58 kB 1.5 MB/s
  38. Building wheels for collected packages: ws2812
  39. Building wheel for ws2812 (setup.py) ... error
  40.  
  41. ERROR: Command errored out with exit status 1:
  42. command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/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-jy10u6wh
  43. cwd: /tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/
  44. Complete output (161 lines):
  45. running bdist_wheel
  46. running build
  47. running build_py
  48. creating build
  49. creating build/lib.linux-armv7l-3.9
  50. copying ws2812.py -> build/lib.linux-armv7l-3.9
  51. running build_ext
  52. building '_ws2812' extension
  53. creating build/temp.linux-armv7l-3.9
  54. creating build/temp.linux-armv7l-3.9/lib
  55. arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilib/ -I/usr/include/python3.9 -c lib/ws2812-RPi.c -o build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o
  56. In file included from lib/ws2812-RPi.c:1:
  57. lib/ws2812-RPi.h:95:1: warning: multi-line comment [-Wcomment]
  58. 95 | // | | | \ \___| |_| | / /_/ \ ___/ \___ \
  59. | ^
  60. In file included from lib/ws2812-RPi.c:1:
  61. lib/ws2812-RPi.h:123:1: warning: multi-line comment [-Wcomment]
  62. 123 | // | ` \ ___/| | | | | \ ___/ \___ \ / <_\ \/ \ / / __ \| | \/\___ \
  63. | ^
  64. lib/ws2812-RPi.h:389:1: warning: multi-line comment [-Wcomment]
  65. 389 | // | | \_ _____/\______ \ / _____// |_ __ ___/ ____\/ ____\
  66. | ^
  67. lib/ws2812-RPi.h:436:1: warning: multi-line comment [-Wcomment]
  68. 436 | // | | \_/ __ \| __ \| | \/ ___\
  69. | ^
  70. lib/ws2812-RPi.h:456:1: warning: multi-line comment [-Wcomment]
  71. 456 | // | |/ \| \ __\ / ~ \__ \\_ __ \/ __ |\ \/ \/ /\__ \\_ __ \_/ __ \
  72. | ^
  73. lib/ws2812-RPi.h:470:1: warning: multi-line comment [-Wcomment]
  74. 470 | // | | / | |_> > /_/ | / __ \| | \ ___/ | |___ | \ | ` \\___ \
  75. | ^
  76. lib/ws2812-RPi.h:481:1: warning: multi-line comment [-Wcomment]
  77. 481 | // | \| | | | \ ___/\ \___| | \___ \
  78. | ^
  79. lib/ws2812-RPi.c: In function ‘reverseWord’:
  80. lib/ws2812-RPi.c:49:16: warning: variable ‘bit’ set but not used [-Wunused-but-set-variable]
  81. 49 | unsigned char bit;
  82. | ^~~
  83. lib/ws2812-RPi.c: In function ‘mem_phys_to_virt’:
  84. lib/ws2812-RPi.c:119:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  85. 119 | for (i = 0; i < NUM_PAGES; i++) {
  86. | ^
  87. lib/ws2812-RPi.c: At top level:
  88. lib/ws2812-RPi.c:147:1: warning: multi-line comment [-Wcomment]
  89. 147 | // | | \_ _____/\______ \ / _____// |_ __ ___/ ____\/ ____\
  90. | ^
  91. lib/ws2812-RPi.c:292:1: warning: multi-line comment [-Wcomment]
  92. 292 | // | | \_/ __ \| __ \| | \/ ___\
  93. | ^
  94. lib/ws2812-RPi.c:471:1: warning: multi-line comment [-Wcomment]
  95. 471 | // | |/ \| \ __\ / ~ \__ \\_ __ \/ __ |\ \/ \/ /\__ \\_ __ \_/ __ \
  96. | ^
  97. lib/ws2812-RPi.c: In function ‘initHardware’:
  98. lib/ws2812-RPi.c:552:56: warning: comparison of integer expressions of different signedness: ‘__off_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
  99. 552 | if (lseek(fd, (unsigned long)virtbase >> 9, SEEK_SET) != (unsigned long)virtbase >> 9) {
  100. | ^~
  101. lib/ws2812-RPi.c:557:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  102. 557 | for (i = 0; i < NUM_PAGES; i++) {
  103. | ^
  104. lib/ws2812-RPi.c:569:18: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
  105. 569 | if ((pfn >> 55)&0xfbf != 0x10c) { // pagemap bits: https://www.kernel.org/doc/Documentation/vm/pagemap.txt
  106. | ^
  107. lib/ws2812-RPi.c: At top level:
  108. lib/ws2812-RPi.c:745:1: warning: multi-line comment [-Wcomment]
  109. 745 | // | | / | |_> > /_/ | / __ \| | \ ___/ | |___ | \ | ` \\___ \
  110. | ^
  111. lib/ws2812-RPi.c: In function ‘show’:
  112. lib/ws2812-RPi.c:764:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  113. 764 | for(i=0; i<numLEDs; i++) {
  114. | ^
  115. lib/ws2812-RPi.c:801:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  116. 801 | for(i = 0; i < (cbp->length / 4); i++) {
  117. | ^
  118. lib/ws2812-RPi.c:829:1: warning: "/*" within comment [-Wcomment]
  119. 829 | /**/
  120. |
  121. lib/ws2812-RPi.c:762:10: warning: unused variable ‘color’ [-Wunused-variable]
  122. 762 | Color_t color;
  123. | ^~~~~
  124. lib/ws2812-RPi.c:758:15: warning: unused variable ‘PWMWaveformBitPos’ [-Wunused-variable]
  125. 758 | unsigned int PWMWaveformBitPos = 0;
  126. | ^~~~~~~~~~~~~~~~~
  127. lib/ws2812-RPi.c:757:15: warning: unused variable ‘LEDBuffeWordPos’ [-Wunused-variable]
  128. 757 | unsigned int LEDBuffeWordPos = 0;
  129. | ^~~~~~~~~~~~~~~
  130. lib/ws2812-RPi.c: At top level:
  131. lib/ws2812-RPi.c:839:1: warning: multi-line comment [-Wcomment]
  132. 839 | // | \| | | | \ ___/\ \___| | \___ \
  133. | ^
  134. lib/ws2812-RPi.c: In function ‘theaterChaseRainbow’:
  135. lib/ws2812-RPi.c:921:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  136. 921 | for (i=0; i < numPixels(); i=i+3) {
  137. | ^
  138. lib/ws2812-RPi.c:928:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  139. 928 | for (i=0; i < numPixels(); i=i+3) {
  140. | ^
  141. arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilib/ -I/usr/include/python3.9 -c ws2812-RPi_wrap.c -o build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o
  142. In file included from ws2812-RPi_wrap.c:2967:
  143. lib/ws2812-RPi.h:95:1: warning: multi-line comment [-Wcomment]
  144. 95 | // | | | \ \___| |_| | / /_/ \ ___/ \___ \
  145. | ^
  146. In file included from ws2812-RPi_wrap.c:2967:
  147. lib/ws2812-RPi.h:123:1: warning: multi-line comment [-Wcomment]
  148. 123 | // | ` \ ___/| | | | | \ ___/ \___ \ / <_\ \/ \ / / __ \| | \/\___ \
  149. | ^
  150. lib/ws2812-RPi.h:389:1: warning: multi-line comment [-Wcomment]
  151. 389 | // | | \_ _____/\______ \ / _____// |_ __ ___/ ____\/ ____\
  152. | ^
  153. lib/ws2812-RPi.h:436:1: warning: multi-line comment [-Wcomment]
  154. 436 | // | | \_/ __ \| __ \| | \/ ___\
  155. | ^
  156. lib/ws2812-RPi.h:456:1: warning: multi-line comment [-Wcomment]
  157. 456 | // | |/ \| \ __\ / ~ \__ \\_ __ \/ __ |\ \/ \/ /\__ \\_ __ \_/ __ \
  158. | ^
  159. lib/ws2812-RPi.h:470:1: warning: multi-line comment [-Wcomment]
  160. 470 | // | | / | |_> > /_/ | / __ \| | \ ___/ | |___ | \ | ` \\___ \
  161. | ^
  162. lib/ws2812-RPi.h:481:1: warning: multi-line comment [-Wcomment]
  163. 481 | // | \| | | | \ ___/\ \___| | \___ \
  164. | ^
  165. ws2812-RPi_wrap.c: In function ‘PyInit__ws2812’:
  166. ws2812-RPi_wrap.c:4722:21: warning: variable ‘md’ set but not used [-Wunused-but-set-variable]
  167. 4722 | PyObject *m, *d, *md;
  168. | ^~
  169. In file included from ws2812-RPi_wrap.c:2967:
  170. At top level:
  171. lib/ws2812-RPi.h:359:31: warning: ‘ctl’ defined but not used [-Wunused-variable]
  172. 359 | static struct control_data_s *ctl;
  173. | ^~~
  174. lib/ws2812-RPi.h:341:31: warning: ‘gpio_reg’ defined but not used [-Wunused-variable]
  175. 341 | static volatile unsigned int *gpio_reg; // GPIO pin controller register set
  176. | ^~~~~~~~
  177. lib/ws2812-RPi.h:340:31: warning: ‘dma_reg’ defined but not used [-Wunused-variable]
  178. 340 | static volatile unsigned int *dma_reg; // DMA controller register set
  179. | ^~~~~~~
  180. lib/ws2812-RPi.h:339:31: warning: ‘clk_reg’ defined but not used [-Wunused-variable]
  181. 339 | static volatile unsigned int *clk_reg; // PWM clock manager register set
  182. | ^~~~~~~
  183. lib/ws2812-RPi.h:338:31: warning: ‘pwm_reg’ defined but not used [-Wunused-variable]
  184. 338 | static volatile unsigned int *pwm_reg; // PWM controller register set
  185. | ^~~~~~~
  186. lib/ws2812-RPi.h:336:17: warning: ‘virtbase’ defined but not used [-Wunused-variable]
  187. 336 | static uint8_t *virtbase; // Pointer to some virtual memory that will be allocated
  188. | ^~~~~~~~
  189. In file included from /usr/include/string.h:495,
  190. from /usr/include/python3.9/Python.h:30,
  191. from ws2812-RPi_wrap.c:125:
  192. In function ‘strncpy’,
  193. inlined from ‘SWIG_Python_FixMethods’ at ws2812-RPi_wrap.c:4692:15,
  194. inlined from ‘PyInit__ws2812’ at ws2812-RPi_wrap.c:4790:3:
  195. /usr/include/arm-linux-gnueabihf/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 10 bytes from a string of the same length [-Wstringop-truncation]
  196. 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
  197. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  198. arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o -Llib/ -o build/lib.linux-armv7l-3.9/_ws2812.cpython-39-arm-linux-gnueabihf.so
  199. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:415: multiple definition of `PWMWaveform'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:415: first defined here
  200. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:410: multiple definition of `LEDBuffer'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:410: first defined here
  201. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:407: multiple definition of `numLEDs'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:407: first defined here
  202. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:398: multiple definition of `brightness'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:398: first defined here
  203. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:335: multiple definition of `page_map'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:335: first defined here
  204. collect2: error: ld returned 1 exit status
  205. error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
  206. ----------------------------------------
  207. ERROR: Failed building wheel for ws2812
  208.  
  209. Running setup.py clean for ws2812
  210. Failed to build ws2812
  211. Installing collected packages: wrapt, pyusb, pyserial, smbus2, pyftdi, pillow, deprecated, cbor2, ws2812, rpi-ws281x, luma.core, luma.led-matrix
  212. Running setup.py install for ws2812 ... error
  213.  
  214. ERROR: Command errored out with exit status 1:
  215. command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/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-a2c1y2r2/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/ws2812
  216. cwd: /tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/
  217. Complete output (163 lines):
  218. running install
  219. /usr/local/lib/python3.9/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  220. warnings.warn(
  221. running build
  222. running build_py
  223. creating build
  224. creating build/lib.linux-armv7l-3.9
  225. copying ws2812.py -> build/lib.linux-armv7l-3.9
  226. running build_ext
  227. building '_ws2812' extension
  228. creating build/temp.linux-armv7l-3.9
  229. creating build/temp.linux-armv7l-3.9/lib
  230. arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilib/ -I/usr/include/python3.9 -c lib/ws2812-RPi.c -o build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o
  231. In file included from lib/ws2812-RPi.c:1:
  232. lib/ws2812-RPi.h:95:1: warning: multi-line comment [-Wcomment]
  233. 95 | // | | | \ \___| |_| | / /_/ \ ___/ \___ \
  234. | ^
  235. In file included from lib/ws2812-RPi.c:1:
  236. lib/ws2812-RPi.h:123:1: warning: multi-line comment [-Wcomment]
  237. 123 | // | ` \ ___/| | | | | \ ___/ \___ \ / <_\ \/ \ / / __ \| | \/\___ \
  238. | ^
  239. lib/ws2812-RPi.h:389:1: warning: multi-line comment [-Wcomment]
  240. 389 | // | | \_ _____/\______ \ / _____// |_ __ ___/ ____\/ ____\
  241. | ^
  242. lib/ws2812-RPi.h:436:1: warning: multi-line comment [-Wcomment]
  243. 436 | // | | \_/ __ \| __ \| | \/ ___\
  244. | ^
  245. lib/ws2812-RPi.h:456:1: warning: multi-line comment [-Wcomment]
  246. 456 | // | |/ \| \ __\ / ~ \__ \\_ __ \/ __ |\ \/ \/ /\__ \\_ __ \_/ __ \
  247. | ^
  248. lib/ws2812-RPi.h:470:1: warning: multi-line comment [-Wcomment]
  249. 470 | // | | / | |_> > /_/ | / __ \| | \ ___/ | |___ | \ | ` \\___ \
  250. | ^
  251. lib/ws2812-RPi.h:481:1: warning: multi-line comment [-Wcomment]
  252. 481 | // | \| | | | \ ___/\ \___| | \___ \
  253. | ^
  254. lib/ws2812-RPi.c: In function ‘reverseWord’:
  255. lib/ws2812-RPi.c:49:16: warning: variable ‘bit’ set but not used [-Wunused-but-set-variable]
  256. 49 | unsigned char bit;
  257. | ^~~
  258. lib/ws2812-RPi.c: In function ‘mem_phys_to_virt’:
  259. lib/ws2812-RPi.c:119:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  260. 119 | for (i = 0; i < NUM_PAGES; i++) {
  261. | ^
  262. lib/ws2812-RPi.c: At top level:
  263. lib/ws2812-RPi.c:147:1: warning: multi-line comment [-Wcomment]
  264. 147 | // | | \_ _____/\______ \ / _____// |_ __ ___/ ____\/ ____\
  265. | ^
  266. lib/ws2812-RPi.c:292:1: warning: multi-line comment [-Wcomment]
  267. 292 | // | | \_/ __ \| __ \| | \/ ___\
  268. | ^
  269. lib/ws2812-RPi.c:471:1: warning: multi-line comment [-Wcomment]
  270. 471 | // | |/ \| \ __\ / ~ \__ \\_ __ \/ __ |\ \/ \/ /\__ \\_ __ \_/ __ \
  271. | ^
  272. lib/ws2812-RPi.c: In function ‘initHardware’:
  273. lib/ws2812-RPi.c:552:56: warning: comparison of integer expressions of different signedness: ‘__off_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
  274. 552 | if (lseek(fd, (unsigned long)virtbase >> 9, SEEK_SET) != (unsigned long)virtbase >> 9) {
  275. | ^~
  276. lib/ws2812-RPi.c:557:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  277. 557 | for (i = 0; i < NUM_PAGES; i++) {
  278. | ^
  279. lib/ws2812-RPi.c:569:18: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
  280. 569 | if ((pfn >> 55)&0xfbf != 0x10c) { // pagemap bits: https://www.kernel.org/doc/Documentation/vm/pagemap.txt
  281. | ^
  282. lib/ws2812-RPi.c: At top level:
  283. lib/ws2812-RPi.c:745:1: warning: multi-line comment [-Wcomment]
  284. 745 | // | | / | |_> > /_/ | / __ \| | \ ___/ | |___ | \ | ` \\___ \
  285. | ^
  286. lib/ws2812-RPi.c: In function ‘show’:
  287. lib/ws2812-RPi.c:764:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  288. 764 | for(i=0; i<numLEDs; i++) {
  289. | ^
  290. lib/ws2812-RPi.c:801:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  291. 801 | for(i = 0; i < (cbp->length / 4); i++) {
  292. | ^
  293. lib/ws2812-RPi.c:829:1: warning: "/*" within comment [-Wcomment]
  294. 829 | /**/
  295. |
  296. lib/ws2812-RPi.c:762:10: warning: unused variable ‘color’ [-Wunused-variable]
  297. 762 | Color_t color;
  298. | ^~~~~
  299. lib/ws2812-RPi.c:758:15: warning: unused variable ‘PWMWaveformBitPos’ [-Wunused-variable]
  300. 758 | unsigned int PWMWaveformBitPos = 0;
  301. | ^~~~~~~~~~~~~~~~~
  302. lib/ws2812-RPi.c:757:15: warning: unused variable ‘LEDBuffeWordPos’ [-Wunused-variable]
  303. 757 | unsigned int LEDBuffeWordPos = 0;
  304. | ^~~~~~~~~~~~~~~
  305. lib/ws2812-RPi.c: At top level:
  306. lib/ws2812-RPi.c:839:1: warning: multi-line comment [-Wcomment]
  307. 839 | // | \| | | | \ ___/\ \___| | \___ \
  308. | ^
  309. lib/ws2812-RPi.c: In function ‘theaterChaseRainbow’:
  310. lib/ws2812-RPi.c:921:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  311. 921 | for (i=0; i < numPixels(); i=i+3) {
  312. | ^
  313. lib/ws2812-RPi.c:928:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  314. 928 | for (i=0; i < numPixels(); i=i+3) {
  315. | ^
  316. arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilib/ -I/usr/include/python3.9 -c ws2812-RPi_wrap.c -o build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o
  317. In file included from ws2812-RPi_wrap.c:2967:
  318. lib/ws2812-RPi.h:95:1: warning: multi-line comment [-Wcomment]
  319. 95 | // | | | \ \___| |_| | / /_/ \ ___/ \___ \
  320. | ^
  321. In file included from ws2812-RPi_wrap.c:2967:
  322. lib/ws2812-RPi.h:123:1: warning: multi-line comment [-Wcomment]
  323. 123 | // | ` \ ___/| | | | | \ ___/ \___ \ / <_\ \/ \ / / __ \| | \/\___ \
  324. | ^
  325. lib/ws2812-RPi.h:389:1: warning: multi-line comment [-Wcomment]
  326. 389 | // | | \_ _____/\______ \ / _____// |_ __ ___/ ____\/ ____\
  327. | ^
  328. lib/ws2812-RPi.h:436:1: warning: multi-line comment [-Wcomment]
  329. 436 | // | | \_/ __ \| __ \| | \/ ___\
  330. | ^
  331. lib/ws2812-RPi.h:456:1: warning: multi-line comment [-Wcomment]
  332. 456 | // | |/ \| \ __\ / ~ \__ \\_ __ \/ __ |\ \/ \/ /\__ \\_ __ \_/ __ \
  333. | ^
  334. lib/ws2812-RPi.h:470:1: warning: multi-line comment [-Wcomment]
  335. 470 | // | | / | |_> > /_/ | / __ \| | \ ___/ | |___ | \ | ` \\___ \
  336. | ^
  337. lib/ws2812-RPi.h:481:1: warning: multi-line comment [-Wcomment]
  338. 481 | // | \| | | | \ ___/\ \___| | \___ \
  339. | ^
  340. ws2812-RPi_wrap.c: In function ‘PyInit__ws2812’:
  341. ws2812-RPi_wrap.c:4722:21: warning: variable ‘md’ set but not used [-Wunused-but-set-variable]
  342. 4722 | PyObject *m, *d, *md;
  343. | ^~
  344. In file included from ws2812-RPi_wrap.c:2967:
  345. At top level:
  346. lib/ws2812-RPi.h:359:31: warning: ‘ctl’ defined but not used [-Wunused-variable]
  347. 359 | static struct control_data_s *ctl;
  348. | ^~~
  349. lib/ws2812-RPi.h:341:31: warning: ‘gpio_reg’ defined but not used [-Wunused-variable]
  350. 341 | static volatile unsigned int *gpio_reg; // GPIO pin controller register set
  351. | ^~~~~~~~
  352. lib/ws2812-RPi.h:340:31: warning: ‘dma_reg’ defined but not used [-Wunused-variable]
  353. 340 | static volatile unsigned int *dma_reg; // DMA controller register set
  354. | ^~~~~~~
  355. lib/ws2812-RPi.h:339:31: warning: ‘clk_reg’ defined but not used [-Wunused-variable]
  356. 339 | static volatile unsigned int *clk_reg; // PWM clock manager register set
  357. | ^~~~~~~
  358. lib/ws2812-RPi.h:338:31: warning: ‘pwm_reg’ defined but not used [-Wunused-variable]
  359. 338 | static volatile unsigned int *pwm_reg; // PWM controller register set
  360. | ^~~~~~~
  361. lib/ws2812-RPi.h:336:17: warning: ‘virtbase’ defined but not used [-Wunused-variable]
  362. 336 | static uint8_t *virtbase; // Pointer to some virtual memory that will be allocated
  363. | ^~~~~~~~
  364. In file included from /usr/include/string.h:495,
  365. from /usr/include/python3.9/Python.h:30,
  366. from ws2812-RPi_wrap.c:125:
  367. In function ‘strncpy’,
  368. inlined from ‘SWIG_Python_FixMethods’ at ws2812-RPi_wrap.c:4692:15,
  369. inlined from ‘PyInit__ws2812’ at ws2812-RPi_wrap.c:4790:3:
  370. /usr/include/arm-linux-gnueabihf/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 10 bytes from a string of the same length [-Wstringop-truncation]
  371. 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
  372. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  373. arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o -Llib/ -o build/lib.linux-armv7l-3.9/_ws2812.cpython-39-arm-linux-gnueabihf.so
  374. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:415: multiple definition of `PWMWaveform'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:415: first defined here
  375. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:410: multiple definition of `LEDBuffer'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:410: first defined here
  376. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:407: multiple definition of `numLEDs'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:407: first defined here
  377. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:398: multiple definition of `brightness'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:398: first defined here
  378. /usr/bin/ld: build/temp.linux-armv7l-3.9/ws2812-RPi_wrap.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:335: multiple definition of `page_map'; build/temp.linux-armv7l-3.9/lib/ws2812-RPi.o:/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/lib/ws2812-RPi.h:335: first defined here
  379. collect2: error: ld returned 1 exit status
  380. error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
  381. ----------------------------------------
  382. 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-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gh8o1__w/ws2812_6f792336565c47bca33b146d3f9b5b72/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-a2c1y2r2/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/ws2812 Check the logs for full command output.
  383.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement