Advertisement
Guest User

Anki Clang Compilation Failure

a guest
Dec 31st, 2021
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.16 KB | None | 0 0
  1. ==> Extracting sources...
  2. -> Extracting anki-2.1.49.tar.gz with bsdtar
  3. ==> Starting prepare()...
  4. patching file qt/aqt/update.py
  5. ==> Starting build()...
  6. Extracting Bazel installation...
  7. Starting local Bazel server and connecting to it...
  8. Loading:
  9. Loading: 0 packages loaded
  10. Loading: 0 packages loaded
  11. Loading: 0 packages loaded
  12. Loading: 0 packages loaded
  13. Loading: 0 packages loaded
  14. Loading: 0 packages loaded
  15. currently loading:
  16. Analyzing: target //:dist (1 packages loaded, 0 targets configured)
  17. Analyzing: target //:dist (37 packages loaded, 82 targets configured)
  18. Analyzing: target //:dist (59 packages loaded, 372 targets configured)
  19. Analyzing: target //:dist (72 packages loaded, 504 targets configured)
  20. Analyzing: target //:dist (82 packages loaded, 919 targets configured)
  21. Analyzing: target //:dist (85 packages loaded, 971 targets configured)
  22. Analyzing: target //:dist (85 packages loaded, 971 targets configured)
  23. Analyzing: target //:dist (85 packages loaded, 971 targets configured)
  24. Analyzing: target //:dist (85 packages loaded, 971 targets configured)
  25. INFO: Repository pypi__310__regex_2021_4_4 instantiated at:
  26. /build/anki/src/anki-2.1.49/WORKSPACE:18:16: in <toplevel>
  27. /build/anki/src/anki-2.1.49/late_deps.bzl:7:16: in setup_late_deps
  28. /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/py_deps/requirements.bzl:572:16: in pip_install
  29. Repository rule whl_library defined at:
  30. /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/defs.bzl:137:30: in <toplevel>
  31. ERROR: An error occurred during the fetch of repository 'pypi__310__regex_2021_4_4':
  32. Traceback (most recent call last):
  33. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/defs.bzl", line 135, column 13, in _whl_impl
  34. fail("whl_library failed: %s (%s)" % (result.stdout, result.stderr))
  35. Error in fail: whl_library failed: Ignoring atomicwrites: markers 'sys_platform == "win32"' don't match your environment
  36. Ignoring colorama: markers 'sys_platform == "win32"' don't match your environment
  37. Ignoring psutil: markers 'sys_platform == "win32"' don't match your environment
  38. Ignoring pywin32: markers 'sys_platform == "win32"' don't match your environment
  39. Ignoring winrt: markers 'sys_platform == "win32" and platform_release == "10"' don't match your environment
  40. Collecting regex==2021.4.4
  41. Downloading regex-2021.4.4.tar.gz (693 kB)
  42. Building wheels for collected packages: regex
  43. Building wheel for regex (setup.py): started
  44. Building wheel for regex (setup.py): finished with status 'error'
  45. Running setup.py clean for regex
  46. Failed to build regex
  47. Installing collected packages: regex
  48. Running setup.py install for regex: started
  49. Running setup.py install for regex: finished with status 'error'
  50. (/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/third_party/py/pip/_internal/req/req_install.py:891: PipDeprecationWarning: DEPRECATION: Constraints are only allowed to take the form of a package name and a version specifier. Other forms were originally permitted as an accident of the implementation, but were undocumented. The new implementation of the resolver no longer supports these forms. A possible replacement is replacing the constraint with a requirement.. You can find discussion regarding this at https://github.com/pypa/pip/issues/8210.
  51. deprecated(
  52. ERROR: Command errored out with exit status 1:
  53. command: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-siomapu5
  54. cwd: /tmp/pip-install-4vbtkntn/regex/
  55. Complete output (24 lines):
  56. running bdist_wheel
  57. running build
  58. running build_py
  59. creating build
  60. creating build/lib.linux-x86_64-3.10
  61. creating build/lib.linux-x86_64-3.10/regex
  62. copying regex_3/__init__.py -> build/lib.linux-x86_64-3.10/regex
  63. copying regex_3/regex.py -> build/lib.linux-x86_64-3.10/regex
  64. copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.10/regex
  65. copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.10/regex
  66. running build_ext
  67. building 'regex._regex' extension
  68. creating build/temp.linux-x86_64-3.10
  69. creating build/temp.linux-x86_64-3.10/regex_3
  70. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex.c -o build/temp.linux-x86_64-3.10/regex_3/_regex.o
  71. regex_3/_regex.c:24886:23: warning: unused function 'contains_repeat' [-Wunused-function]
  72. Py_LOCAL_INLINE(BOOL) contains_repeat(RE_CODE* code, RE_CODE* end_code) {
  73. ^
  74. 1 warning generated.
  75. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex_unicode.c -o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o
  76. gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 build/temp.linux-x86_64-3.10/regex_3/_regex.o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o -L/usr/lib -o build/lib.linux-x86_64-3.10/regex/_regex.cpython-310-x86_64-linux-gnu.so
  77. build/temp.linux-x86_64-3.10/regex_3/_regex.o: file not recognized: file format not recognized
  78. collect2: error: ld returned 1 exit status
  79. error: command '/usr/bin/gcc' failed with exit code 1
  80. ----------------------------------------
  81. ERROR: Failed building wheel for regex
  82. ERROR: Command errored out with exit status 1:
  83. command: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg install --record /tmp/pip-record-tcue2bxo/install-record.txt --single-version-externally-managed --home /tmp/pip-target-unxxsmon --compile --install-headers /tmp/pip-target-unxxsmon/include/python/regex
  84. cwd: /tmp/pip-install-4vbtkntn/regex/
  85. Complete output (24 lines):
  86. running install
  87. running build
  88. running build_py
  89. creating build
  90. creating build/lib.linux-x86_64-3.10
  91. creating build/lib.linux-x86_64-3.10/regex
  92. copying regex_3/__init__.py -> build/lib.linux-x86_64-3.10/regex
  93. copying regex_3/regex.py -> build/lib.linux-x86_64-3.10/regex
  94. copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.10/regex
  95. copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.10/regex
  96. running build_ext
  97. building 'regex._regex' extension
  98. creating build/temp.linux-x86_64-3.10
  99. creating build/temp.linux-x86_64-3.10/regex_3
  100. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex.c -o build/temp.linux-x86_64-3.10/regex_3/_regex.o
  101. regex_3/_regex.c:24886:23: warning: unused function 'contains_repeat' [-Wunused-function]
  102. Py_LOCAL_INLINE(BOOL) contains_repeat(RE_CODE* code, RE_CODE* end_code) {
  103. ^
  104. 1 warning generated.
  105. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex_unicode.c -o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o
  106. gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 build/temp.linux-x86_64-3.10/regex_3/_regex.o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o -L/usr/lib -o build/lib.linux-x86_64-3.10/regex/_regex.cpython-310-x86_64-linux-gnu.so
  107. build/temp.linux-x86_64-3.10/regex_3/_regex.o: file not recognized: file format not recognized
  108. collect2: error: ld returned 1 exit status
  109. error: command '/usr/bin/gcc' failed with exit code 1
  110. ----------------------------------------
  111. ERROR: Command errored out with exit status 1: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg install --record /tmp/pip-record-tcue2bxo/install-record.txt --single-version-externally-managed --home /tmp/pip-target-unxxsmon --compile --install-headers /tmp/pip-target-unxxsmon/include/python/regex Check the logs for full command output.
  112. Traceback (most recent call last):
  113. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 262, in <module>
  114. main()
  115. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 204, in main
  116. pkg = install_package(args.package, args.directory, pip_args)
  117. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 79, in install_package
  118. dist_info = glob.glob(os.path.join(directory, "*.dist-info"))[0]
  119. IndexError: list index out of range
  120. )
  121. ERROR: Error fetching repository: Traceback (most recent call last):
  122. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/defs.bzl", line 135, column 13, in _whl_impl
  123. fail("whl_library failed: %s (%s)" % (result.stdout, result.stderr))
  124. Error in fail: whl_library failed: Ignoring atomicwrites: markers 'sys_platform == "win32"' don't match your environment
  125. Ignoring colorama: markers 'sys_platform == "win32"' don't match your environment
  126. Ignoring psutil: markers 'sys_platform == "win32"' don't match your environment
  127. Ignoring pywin32: markers 'sys_platform == "win32"' don't match your environment
  128. Ignoring winrt: markers 'sys_platform == "win32" and platform_release == "10"' don't match your environment
  129. Collecting regex==2021.4.4
  130. Downloading regex-2021.4.4.tar.gz (693 kB)
  131. Building wheels for collected packages: regex
  132. Building wheel for regex (setup.py): started
  133. Building wheel for regex (setup.py): finished with status 'error'
  134. Running setup.py clean for regex
  135. Failed to build regex
  136. Installing collected packages: regex
  137. Running setup.py install for regex: started
  138. Running setup.py install for regex: finished with status 'error'
  139. (/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/third_party/py/pip/_internal/req/req_install.py:891: PipDeprecationWarning: DEPRECATION: Constraints are only allowed to take the form of a package name and a version specifier. Other forms were originally permitted as an accident of the implementation, but were undocumented. The new implementation of the resolver no longer supports these forms. A possible replacement is replacing the constraint with a requirement.. You can find discussion regarding this at https://github.com/pypa/pip/issues/8210.
  140. deprecated(
  141. ERROR: Command errored out with exit status 1:
  142. command: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-siomapu5
  143. cwd: /tmp/pip-install-4vbtkntn/regex/
  144. Complete output (24 lines):
  145. running bdist_wheel
  146. running build
  147. running build_py
  148. creating build
  149. creating build/lib.linux-x86_64-3.10
  150. creating build/lib.linux-x86_64-3.10/regex
  151. copying regex_3/__init__.py -> build/lib.linux-x86_64-3.10/regex
  152. copying regex_3/regex.py -> build/lib.linux-x86_64-3.10/regex
  153. copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.10/regex
  154. copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.10/regex
  155. running build_ext
  156. building 'regex._regex' extension
  157. creating build/temp.linux-x86_64-3.10
  158. creating build/temp.linux-x86_64-3.10/regex_3
  159. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex.c -o build/temp.linux-x86_64-3.10/regex_3/_regex.o
  160. regex_3/_regex.c:24886:23: warning: unused function 'contains_repeat' [-Wunused-function]
  161. Py_LOCAL_INLINE(BOOL) contains_repeat(RE_CODE* code, RE_CODE* end_code) {
  162. ^
  163. 1 warning generated.
  164. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex_unicode.c -o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o
  165. gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 build/temp.linux-x86_64-3.10/regex_3/_regex.o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o -L/usr/lib -o build/lib.linux-x86_64-3.10/regex/_regex.cpython-310-x86_64-linux-gnu.so
  166. build/temp.linux-x86_64-3.10/regex_3/_regex.o: file not recognized: file format not recognized
  167. collect2: error: ld returned 1 exit status
  168. error: command '/usr/bin/gcc' failed with exit code 1
  169. ----------------------------------------
  170. ERROR: Failed building wheel for regex
  171. ERROR: Command errored out with exit status 1:
  172. command: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg install --record /tmp/pip-record-tcue2bxo/install-record.txt --single-version-externally-managed --home /tmp/pip-target-unxxsmon --compile --install-headers /tmp/pip-target-unxxsmon/include/python/regex
  173. cwd: /tmp/pip-install-4vbtkntn/regex/
  174. Complete output (24 lines):
  175. running install
  176. running build
  177. running build_py
  178. creating build
  179. creating build/lib.linux-x86_64-3.10
  180. creating build/lib.linux-x86_64-3.10/regex
  181. copying regex_3/__init__.py -> build/lib.linux-x86_64-3.10/regex
  182. copying regex_3/regex.py -> build/lib.linux-x86_64-3.10/regex
  183. copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.10/regex
  184. copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.10/regex
  185. running build_ext
  186. building 'regex._regex' extension
  187. creating build/temp.linux-x86_64-3.10
  188. creating build/temp.linux-x86_64-3.10/regex_3
  189. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex.c -o build/temp.linux-x86_64-3.10/regex_3/_regex.o
  190. regex_3/_regex.c:24886:23: warning: unused function 'contains_repeat' [-Wunused-function]
  191. Py_LOCAL_INLINE(BOOL) contains_repeat(RE_CODE* code, RE_CODE* end_code) {
  192. ^
  193. 1 warning generated.
  194. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex_unicode.c -o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o
  195. gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 build/temp.linux-x86_64-3.10/regex_3/_regex.o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o -L/usr/lib -o build/lib.linux-x86_64-3.10/regex/_regex.cpython-310-x86_64-linux-gnu.so
  196. build/temp.linux-x86_64-3.10/regex_3/_regex.o: file not recognized: file format not recognized
  197. collect2: error: ld returned 1 exit status
  198. error: command '/usr/bin/gcc' failed with exit code 1
  199. ----------------------------------------
  200. ERROR: Command errored out with exit status 1: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg install --record /tmp/pip-record-tcue2bxo/install-record.txt --single-version-externally-managed --home /tmp/pip-target-unxxsmon --compile --install-headers /tmp/pip-target-unxxsmon/include/python/regex Check the logs for full command output.
  201. Traceback (most recent call last):
  202. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 262, in <module>
  203. main()
  204. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 204, in main
  205. pkg = install_package(args.package, args.directory, pip_args)
  206. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 79, in install_package
  207. dist_info = glob.glob(os.path.join(directory, "*.dist-info"))[0]
  208. IndexError: list index out of range
  209. )
  210. INFO: Repository rust_linux_x86_64 instantiated at:
  211. /build/anki/src/anki-2.1.49/WORKSPACE:14:11: in <toplevel>
  212. /build/anki/src/anki-2.1.49/defs.bzl:21:22: in setup_deps
  213. /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/rules_rust/rust/repositories.bzl:95:28: in rust_repositories
  214. /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/rules_rust/rust/repositories.bzl:760:30: in rust_repository_set
  215. Repository rule rust_toolchain_repository defined at:
  216. /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/rules_rust/rust/repositories.bzl:640:44: in <toplevel>
  217. ERROR: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/pypi__310__black_21_6b0/BUILD:6:11: @pypi__310__black_21_6b0//:pkg depends on @pypi__310__regex_2021_4_4//:pkg in repository @pypi__310__regex_2021_4_4 which failed to fetch. no such package '@pypi__310__regex_2021_4_4//': whl_library failed: Ignoring atomicwrites: markers 'sys_platform == "win32"' don't match your environment
  218. Ignoring colorama: markers 'sys_platform == "win32"' don't match your environment
  219. Ignoring psutil: markers 'sys_platform == "win32"' don't match your environment
  220. Ignoring pywin32: markers 'sys_platform == "win32"' don't match your environment
  221. Ignoring winrt: markers 'sys_platform == "win32" and platform_release == "10"' don't match your environment
  222. Collecting regex==2021.4.4
  223. Downloading regex-2021.4.4.tar.gz (693 kB)
  224. Building wheels for collected packages: regex
  225. Building wheel for regex (setup.py): started
  226. Building wheel for regex (setup.py): finished with status 'error'
  227. Running setup.py clean for regex
  228. Failed to build regex
  229. Installing collected packages: regex
  230. Running setup.py install for regex: started
  231. Running setup.py install for regex: finished with status 'error'
  232. (/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/third_party/py/pip/_internal/req/req_install.py:891: PipDeprecationWarning: DEPRECATION: Constraints are only allowed to take the form of a package name and a version specifier. Other forms were originally permitted as an accident of the implementation, but were undocumented. The new implementation of the resolver no longer supports these forms. A possible replacement is replacing the constraint with a requirement.. You can find discussion regarding this at https://github.com/pypa/pip/issues/8210.
  233. deprecated(
  234. ERROR: Command errored out with exit status 1:
  235. command: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-siomapu5
  236. cwd: /tmp/pip-install-4vbtkntn/regex/
  237. Complete output (24 lines):
  238. running bdist_wheel
  239. running build
  240. running build_py
  241. creating build
  242. creating build/lib.linux-x86_64-3.10
  243. creating build/lib.linux-x86_64-3.10/regex
  244. copying regex_3/__init__.py -> build/lib.linux-x86_64-3.10/regex
  245. copying regex_3/regex.py -> build/lib.linux-x86_64-3.10/regex
  246. copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.10/regex
  247. copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.10/regex
  248. running build_ext
  249. building 'regex._regex' extension
  250. creating build/temp.linux-x86_64-3.10
  251. creating build/temp.linux-x86_64-3.10/regex_3
  252. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex.c -o build/temp.linux-x86_64-3.10/regex_3/_regex.o
  253. regex_3/_regex.c:24886:23: warning: unused function 'contains_repeat' [-Wunused-function]
  254. Py_LOCAL_INLINE(BOOL) contains_repeat(RE_CODE* code, RE_CODE* end_code) {
  255. ^
  256. 1 warning generated.
  257. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex_unicode.c -o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o
  258. gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 build/temp.linux-x86_64-3.10/regex_3/_regex.o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o -L/usr/lib -o build/lib.linux-x86_64-3.10/regex/_regex.cpython-310-x86_64-linux-gnu.so
  259. build/temp.linux-x86_64-3.10/regex_3/_regex.o: file not recognized: file format not recognized
  260. collect2: error: ld returned 1 exit status
  261. error: command '/usr/bin/gcc' failed with exit code 1
  262. ----------------------------------------
  263. ERROR: Failed building wheel for regex
  264. ERROR: Command errored out with exit status 1:
  265. command: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg install --record /tmp/pip-record-tcue2bxo/install-record.txt --single-version-externally-managed --home /tmp/pip-target-unxxsmon --compile --install-headers /tmp/pip-target-unxxsmon/include/python/regex
  266. cwd: /tmp/pip-install-4vbtkntn/regex/
  267. Complete output (24 lines):
  268. running install
  269. running build
  270. running build_py
  271. creating build
  272. creating build/lib.linux-x86_64-3.10
  273. creating build/lib.linux-x86_64-3.10/regex
  274. copying regex_3/__init__.py -> build/lib.linux-x86_64-3.10/regex
  275. copying regex_3/regex.py -> build/lib.linux-x86_64-3.10/regex
  276. copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.10/regex
  277. copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.10/regex
  278. running build_ext
  279. building 'regex._regex' extension
  280. creating build/temp.linux-x86_64-3.10
  281. creating build/temp.linux-x86_64-3.10/regex_3
  282. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex.c -o build/temp.linux-x86_64-3.10/regex_3/_regex.o
  283. regex_3/_regex.c:24886:23: warning: unused function 'contains_repeat' [-Wunused-function]
  284. Py_LOCAL_INLINE(BOOL) contains_repeat(RE_CODE* code, RE_CODE* end_code) {
  285. ^
  286. 1 warning generated.
  287. clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 -fPIC -I/usr/include/python3.10 -c regex_3/_regex_unicode.c -o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o
  288. gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now -march=znver2 -mtune=native -O3 -pipe -fno-plt -fexceptions -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -g0 build/temp.linux-x86_64-3.10/regex_3/_regex.o build/temp.linux-x86_64-3.10/regex_3/_regex_unicode.o -L/usr/lib -o build/lib.linux-x86_64-3.10/regex/_regex.cpython-310-x86_64-linux-gnu.so
  289. build/temp.linux-x86_64-3.10/regex_3/_regex.o: file not recognized: file format not recognized
  290. collect2: error: ld returned 1 exit status
  291. error: command '/usr/bin/gcc' failed with exit code 1
  292. ----------------------------------------
  293. ERROR: Command errored out with exit status 1: /build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/python/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4vbtkntn/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --no-user-cfg install --record /tmp/pip-record-tcue2bxo/install-record.txt --single-version-externally-managed --home /tmp/pip-target-unxxsmon --compile --install-headers /tmp/pip-target-unxxsmon/include/python/regex Check the logs for full command output.
  294. Traceback (most recent call last):
  295. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 262, in <module>
  296. main()
  297. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 204, in main
  298. pkg = install_package(args.package, args.directory, pip_args)
  299. File "/build/.cache/bazel/_bazel_builduser/920f7512af34aee99927d2b09bcce383/external/com_github_ali5h_rules_pip/src/whl.py", line 79, in install_package
  300. dist_info = glob.glob(os.path.join(directory, "*.dist-info"))[0]
  301. IndexError: list index out of range
  302. )
  303. ERROR: Analysis of target '//:dist' failed; build aborted: Analysis failed
  304. INFO: Elapsed time: 42.749s
  305. INFO: 0 processes.
  306. FAILED: Build did NOT complete successfully (86 packages loaded, 977 targets configured)
  307. FAILED: Build did NOT complete successfully (86 packages loaded, 977 targets configured)
  308. ==> ERROR: A failure occurred in build().
  309. Aborting...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement