ancient-vegetable-10556
06/11/2021, 8:15 PMchrisjrn@chrisjrns-MacBook-Pro pants % lipo -info /Users/chrisjrn/src/pants/src/python/pants/engine/internals/native_engine_pyo3.so
Non-fat file: /Users/chrisjrn/src/pants/src/python/pants/engine/internals/native_engine_pyo3.so is architecture: arm64
rustup
, the boostrap process re-installs it:
chrisjrn@chrisjrns-MacBook-Pro pants % MODE=debug ./pants
[=== 00:01 Building native engine... ===]
[=== 00:01 Building native_engine.so ===]
info: syncing channel updates for '1.52.1-aarch64-apple-darwin'
witty-crayon-22786
06/11/2021, 8:19 PMancient-vegetable-10556
06/11/2021, 8:19 PMwitty-crayon-22786
06/11/2021, 8:23 PMancient-vegetable-10556
06/11/2021, 8:23 PMwitty-crayon-22786
06/11/2021, 8:25 PMrust-toolchain
file? the target
continues to seem very relevantancient-vegetable-10556
06/11/2021, 8:25 PM[toolchain]
channel = "1.52.1"
components = [
"cargo",
"clippy",
"rust-std",
"rustc",
"rustfmt",
]
targets = [
"x86_64-apple-darwin",
]
witty-crayon-22786
06/11/2021, 8:26 PMancient-vegetable-10556
06/11/2021, 8:26 PMchrisjrn@chrisjrns-MacBook-Pro pants % MODE=debug ./pants
[=== 00:01 Building native engine... ===]
[=== 00:01 Building native_engine.so ===]
info: syncing channel updates for '1.52.1-aarch64-apple-darwin'
info: latest update on 2021-05-10, rust version 1.52.1 (9bc8c42bb 2021-05-09)
info: downloading component 'cargo'
witty-crayon-22786
06/11/2021, 8:27 PM[build]
target = x86_64-apple-darwin
section around here: https://github.com/pantsbuild/pants/blob/main/src/rust/engine/Cargo.toml#L7cargo
using whatever it thinks the current platform/arch isancient-vegetable-10556
06/11/2021, 8:29 PMwarning: /Users/chrisjrn/src/pants/src/rust/engine/Cargo.toml: unused manifest key: build
witty-crayon-22786
06/11/2021, 8:30 PMHuh, so I think it matters that rustup was installed on my machine in arm modeit shouldn’t: that’s what i’m saying. i’m 98% sure i could use rustup/cargo compiled for my current platform to cross compile to a different platform.
ancient-vegetable-10556
06/11/2021, 8:30 PMso
for the wrong archwitty-crayon-22786
06/11/2021, 8:31 PMwasm-unknown-unknown
ancient-vegetable-10556
06/11/2021, 8:31 PMwitty-crayon-22786
06/11/2021, 8:37 PM.cargo/config.toml
at the root of the repoancient-vegetable-10556
06/11/2021, 8:37 PMwitty-crayon-22786
06/11/2021, 8:37 PM./cargo
in the root of the repoancient-vegetable-10556
06/11/2021, 8:39 PMError: "Must provide PYO3_CROSS_LIB_DIR environment variable when cross-compiling"
warning: build failed, waiting for other jobs to finish...
witty-crayon-22786
06/11/2021, 8:52 PMarch …
set such that it should not think that?ancient-vegetable-10556
06/11/2021, 8:52 PMwitty-crayon-22786
06/11/2021, 8:52 PMancient-vegetable-10556
06/11/2021, 8:53 PMchrisjrn@chrisjrns-MacBook-Pro pants % arch
i386
chrisjrn@chrisjrns-MacBook-Pro pants % uname
Darwin
chrisjrn@chrisjrns-MacBook-Pro pants % uname -m
x86_64
chrisjrn@chrisjrns-MacBook-Pro pants %
witty-crayon-22786
06/11/2021, 8:54 PMancient-vegetable-10556
06/11/2021, 8:54 PMwitty-crayon-22786
06/11/2021, 8:55 PMancient-vegetable-10556
06/11/2021, 8:56 PMwitty-crayon-22786
06/11/2021, 8:56 PMPANTS_PLUGINS='[]'
ancient-vegetable-10556
06/11/2021, 8:59 PMwitty-crayon-22786
06/11/2021, 9:00 PMancient-vegetable-10556
06/11/2021, 9:01 PMwitty-crayon-22786
06/11/2021, 9:02 PMancient-vegetable-10556
06/11/2021, 9:02 PMwitty-crayon-22786
06/11/2021, 9:09 PMancient-vegetable-10556
06/11/2021, 9:10 PMwitty-crayon-22786
06/11/2021, 9:10 PMancient-vegetable-10556
06/11/2021, 9:10 PMhundreds-father-404
06/11/2021, 11:28 PMancient-vegetable-10556
06/14/2021, 4:25 PMhdrhistogram
plugin.
This, on the other hand, affects the toolchain plugin:
Needed macosx_11_0_arm64-cp-39-cp39 compatible dependencies for:
1: cryptography>=3.2
Required by:
pyOpenSSL 20.0.1
But this pex had no 'cryptography' distributions.
2: cryptography>=1.3.4; extra == "security"
Required by:
requests 2.25.1
But this pex had no 'cryptography' distributions.
hundreds-father-404
06/14/2021, 4:33 PMancient-vegetable-10556
06/14/2021, 4:33 PMhundreds-father-404
06/14/2021, 4:34 PMancient-vegetable-10556
06/14/2021, 4:35 PMMODE=debug ./pants --no-process-execution-local-cache
; I have hdrhistogram
commented out in my config file, and there’s one more line that I missed (excluding the traceback)
pex.environment.ResolveError: Failed to resolve requirements from PEX environment @ /private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/process-executionSOzQ5z/.tmp/tmpkbur2u36.
hundreds-father-404
06/14/2021, 4:36 PMancient-vegetable-10556
06/14/2021, 4:37 PMFile "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 484, in execute
exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 401, in _wrap_coverage
return runner(*args)
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 432, in _wrap_profiling
return runner(*args)
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 540, in _execute
return self.execute_entry(self._pex_info.entry_point)
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 656, in execute_entry
return self.execute_pkg_resources(entry_point)
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.bootstrap/pex/pex.py", line 688, in execute_pkg_resources
return runner()
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/bin/pex.py", line 1161, in main
seed_info = seed_cache(options, pex, verbose=options.seed == Seed.VERBOSE)
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/bin/pex.py", line 1215, in seed_cache
venv_pex = ensure_venv(pex)
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/pex_bootstrapper.py", line 421, in ensure_venv
shenbang = populate_venv_with_pex(
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/tools/commands/venv.py", line 117, in populate_venv_with_pex
for dist in pex.resolve():
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/pex.py", line 118, in resolve
for dist in env.resolve():
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/environment.py", line 608, in resolve
self._resolved_dists = self.resolve_dists(all_reqs)
File "/Users/chrisjrn/.cache/pants/named_caches/pex_root/unzipped_pexes/478cc1fa371ca40aa3e7dafee735ca438d4a243f/.deps/pex-2.1.42-py2.py3-none-any.whl/pex/environment.py", line 692, in resolve_dists
raise ResolveError(
hundreds-father-404
06/14/2021, 4:41 PMancient-vegetable-10556
06/14/2021, 4:42 PM.cache
that is arch-specific?witty-crayon-22786
06/14/2021, 4:45 PMancient-vegetable-10556
06/14/2021, 4:45 PMhundreds-father-404
06/14/2021, 4:46 PMwitty-crayon-22786
06/14/2021, 4:47 PMhundreds-father-404
06/14/2021, 4:51 PMwitty-crayon-22786
06/14/2021, 4:52 PM