Skip to content

my building is failing inside setuptools-rust inside cibuildwheel for aarch64 on github actions #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
samuelcolvin opened this issue Jun 1, 2022 · 3 comments

Comments

@samuelcolvin
Copy link

First of all: sorry to post here, I'm aware this probably isn't a problem with this package. But I don't know where else to ask, I also hope this might help others if they experience the same issue.


See samuelcolvin/watchfiles#154 for a full description.

Basically build of my package is failing with the following error:

...
          File "/tmp/pip-build-env-3sp8fxqi/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
            cmd_obj.run()
          File "/tmp/pip-build-env-3sp8fxqi/overlay/lib/python3.8/site-packages/setuptools_rust/setuptools_ext.py", line 124, in run
            build_rust.run()
          File "/tmp/pip-build-env-3sp8fxqi/overlay/lib/python3.8/site-packages/setuptools_rust/command.py", line 101, in run
            self.run_for_extension(ext)
          File "/tmp/pip-build-env-3sp8fxqi/overlay/lib/python3.8/site-packages/setuptools_rust/build.py", line 112, in run_for_extension
            dylib_paths = self.build_extension(ext, self.target)
          File "/tmp/pip-build-env-3sp8fxqi/overlay/lib/python3.8/site-packages/setuptools_rust/build.py", line 143, in build_extension
            target_dir = _base_cargo_target_dir(ext)
          File "/tmp/pip-build-env-3sp8fxqi/overlay/lib/python3.8/site-packages/setuptools_rust/build.py", line 690, in _base_cargo_target_dir
            target_directory = ext._metadata()["target_directory"]
          File "/tmp/pip-build-env-3sp8fxqi/overlay/lib/python3.8/site-packages/setuptools_rust/extension.py", line 225, in _metadata
            self._cargo_metadata = json.loads(subprocess.check_output(metadata_command))
          File "/opt/python/cp38-cp38/lib/python3.8/subprocess.py", line 415, in check_output
            return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
          File "/opt/python/cp38-cp38/lib/python3.8/subprocess.py", line 516, in run
            raise CalledProcessError(retcode, process.args,
        subprocess.CalledProcessError: Command '['cargo', 'metadata', '--manifest-path', 'Cargo.toml', '--format-version', '1']' died with <Signals.SIGKILL: 9>.
        [end of output]

But this is only happening on linux with arch set to aarch64 using qemu. Build has started failing without any code changes so I'm not sure where to look.

Any help would be greatly appreciated. Otherwise feel free to close this issue.

@messense
Copy link
Member

messense commented Jun 1, 2022

I suspect it might be a similar issue as rust-lang/cargo#10583 (comment)

@samuelcolvin
Copy link
Author

Thanks so much, that looks right. However what's odd is it was previously working with rust 1.60, but when I tried that now I got the same error.

Still it's helpful, maybe I'll try an earlier rust.

@samuelcolvin
Copy link
Author

That worked. Fix for me was to set CARGO_NET_GIT_FETCH_WITH_CLI="true", see samuelcolvin/watchfiles#156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants