Closed Bug 1901138 Opened 8 months ago Closed 8 months ago

./mach bootstrap fails to rustup on fedora aarch64

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1499329

People

(Reporter: kieran.bingham, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0

Steps to reproduce:

1000 mkdir firefox
1001 cd firefox/
1002 python3 -m pip install --user mercurial
1003 hg
1004 curl https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py -O
1005 python3 bootstrap.py
(above from 'history')

That failed, tried to resume and called ./mach bootstrap but got the same error:

I'm trying this on a Lenovo X13s which is an ARM laptop running Fedora Rawhide.

Actual results:

kbingham@charm:~/firefox/mozilla-unified$ ./mach bootstrap

Note on Artifact Mode:

Artifact builds download prebuilt C++ components rather than building
them locally. Artifact builds are faster!

Artifact builds are recommended for people working on Firefox or
Firefox for Android frontends, or the GeckoView Java API. They are unsuitable
for those working on C++ code. For more information see:
https://firefox-source-docs.mozilla.org/contributing/build/artifact_builds.html.

Please choose the version of Firefox you want to build (see note above):

  1. Firefox for Desktop Artifact Mode [default]
  2. Firefox for Desktop
  3. GeckoView/Firefox for Android Artifact Mode
  4. GeckoView/Firefox for Android
  5. SpiderMonkey JavaScript engine
    Your choice: 2
    Requirement already satisfied: glean-sdk==60.1.1 in /home/kbingham/.mozbuild/srcdirs/mozilla-unified-9de628d51f36/_virtualenvs/mach/lib/python3.12/site-packages (60.1.1)
    Requirement already satisfied: semver>=2.13.0 in /home/kbingham/.mozbuild/srcdirs/mozilla-unified-9de628d51f36/_virtualenvs/mach/lib/python3.12/site-packages (from glean-sdk==60.1.1) (3.0.2)
    Requirement already satisfied: glean-parser~=14.0 in /home/kbingham/.mozbuild/srcdirs/mozilla-unified-9de628d51f36/_virtualenvs/mach/lib/python3.12/site-packages (from glean-sdk==60.1.1) (14.1.2)
    Requirement already satisfied: appdirs>=1.4 in /home/kbingham/.mozbuild/srcdirs/mozilla-unified-9de628d51f36/_virtualenvs/mach/lib/python3.12/site-packages (from glean-parser~=14.0->glean-sdk==60.1.1) (1.4.4)
    Requirement already satisfied: Click>=7 in ./third_party/python/click (from glean-parser~=14.0->glean-sdk==60.1.1) (8.1.6)
    Requirement already satisfied: diskcache>=4 in /home/kbingham/.mozbuild/srcdirs/mozilla-unified-9de628d51f36/_virtualenvs/mach/lib/python3.12/site-packages (from glean-parser~=14.0->glean-sdk==60.1.1) (5.6.3)
    Requirement already satisfied: Jinja2>=2.10.1 in ./third_party/python/Jinja2 (from glean-parser~=14.0->glean-sdk==60.1.1) (3.1.2)
    Requirement already satisfied: jsonschema>=3.0.2 in ./third_party/python/jsonschema (from glean-parser~=14.0->glean-sdk==60.1.1) (4.17.3)
    Requirement already satisfied: PyYAML>=5.3.1 in /home/kbingham/.mozbuild/srcdirs/mozilla-unified-9de628d51f36/_virtualenvs/mach/lib/python3.12/site-packages (from glean-parser~=14.0->glean-sdk==60.1.1) (6.0.1)
    Requirement already satisfied: MarkupSafe>=2.0 in ./third_party/python/MarkupSafe/src (from Jinja2>=2.10.1->glean-parser~=14.0->glean-sdk==60.1.1) (2.0.1)
    Requirement already satisfied: attrs>=17.4.0 in ./third_party/python/attrs (from jsonschema>=3.0.2->glean-parser~=14.0->glean-sdk==60.1.1) (23.1.0)
    Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./third_party/python/pyrsistent (from jsonschema>=3.0.2->glean-parser~=14.0->glean-sdk==60.1.1) (0.16.0)
    Requirement already satisfied: six in ./third_party/python/six (from pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0->jsonschema>=3.0.2->glean-parser~=14.0->glean-sdk==60.1.1) (1.16.0)
    Requirement already satisfied: psutil<=5.9.4,>=5.4.2 in /home/kbingham/.mozbuild/srcdirs/mozilla-unified-9de628d51f36/_virtualenvs/mach/lib/python3.12/site-packages (5.9.4)
    Requirement already satisfied: zstandard<=0.22.0,>=0.11.1 in /home/kbingham/.mozbuild/srcdirs/mozilla-unified-9de628d51f36/_virtualenvs/mach/lib/python3.12/site-packages (0.22.0)
    Your version of Rust (1.78.0) is new enough.
    Will try to install Rust.
    Downloading rustup-init... Ok
    Running rustup-init...
    qemu-x86_64-static: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
    Error running mach:
mach bootstrap

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ./mach busted to check if this issue is already on file. If it
isn't, please use ./mach busted file bootstrap to report it. If ./mach busted is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

subprocess.CalledProcessError: Command '['/tmp/rustup-initupv41otu', '-y', '--default-toolchain', 'stable', '--default-host', 'x86_64-unknown-linux-gnu', '--component', 'rustfmt']' returned non-zero exit status 255.

File "/home/kbingham/firefox/mozilla-unified/python/mozboot/mozboot/mach_commands.py", line 50, in bootstrap
bootstrapper.bootstrap(command_context.settings)
File "/home/kbingham/firefox/mozilla-unified/python/mozboot/mozboot/bootstrap.py", line 455, in bootstrap
self.instance.ensure_rust_modern()
File "/home/kbingham/firefox/mozilla-unified/python/mozboot/mozboot/base.py", line 633, in ensure_rust_modern
self.install_rust()
File "/home/kbingham/firefox/mozilla-unified/python/mozboot/mozboot/base.py", line 707, in install_rust
subprocess.check_call(
File "/usr/lib64/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)

Expected results:

It looks like it's trying to run an x86 variant of rustup-init - which is getting half picked up by qemu?

I expected the bootstrap to complete ?

aarch64 linux is not supported by mach bootstrap.

Status: UNCONFIRMED → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1499329
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.