Skip to content

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

Closed
@samuelcolvin

Description

@samuelcolvin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions