Closed Bug 1737183 Opened 4 years ago Closed 4 years ago

mach bootstrap fails untarring clang.tar.zst error message is tarfile.StreamError: seeking backwards is not allowed

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

Firefox 95
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1737164

People

(Reporter: cdsawyer9635, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.50

Steps to reproduce:

My system: Windows 10 64 bit 12 GB RAM 1 TB HD
Fresh install of MozillaBuildSetup-Latest
Used default install folder c:\mozilla-build
fresh download of Firefox nightly source
download command used:
hg clone https://hg.mozilla.org/mozilla-central/ c:/mozilla-source
c:\mozilla-source folder created successfully
I ran start-shell.bat in the mozilla-build folder.
Session starts properly.
Then, in mingw32 session, I entered:
cd c:/mozilla-source
Then I entered ./mach bootstrap

Actual results:

MozillaBuild Install Directory: C:\mozilla-build\

David@LAPTOP-9GVIVS8D ~
$ cd c:/mozilla-source

David@LAPTOP-9GVIVS8D /c/mozilla-source
$ ./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:

  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
    virtualenv at c:/Users/David/.mozbuild_virtualenvs\mach is already up to date.
    Mach environment created.
    Your version of Mercurial (5.1.2) is sufficiently modern.
    Your version of Rust (1.56.0) is new enough.
    Rust supports i686-pc-windows-msvc, x86_64-pc-windows-msvc targets.

Mozilla recommends a number of changes to Mercurial to enhance your
experience with it.

Would you like to run a configuration wizard to ensure Mercurial is
optimally configured? (Yn): Y

Ensuring https://hg.mozilla.org/hgcustom/version-control-tools is up to date at c:/Users/David/.mozbuild\version-control-tools
pulling from https://hg.mozilla.org/hgcustom/version-control-tools
searching for changes
no changes found
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

This wizard will guide you through configuring Mercurial for an optimal
experience contributing to Mozilla projects.

The wizard makes no changes without your permission.

To begin, press the enter/return key.

It looks like the setup wizard has already installed a copy of the
evolve extension on your machine, at c:\Users\David.mozbuild/evolve.

(Relevant config option: extensions.evolve)

Would you like to update evolve to the latest version? (Yn) Y
pulling from https://www.mercurial-scm.org/repo/evolve/
no changes found
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Evolve was updated successfully.
0:08.70 Setting up artifact node.tar.zst
0:08.70 Using artifact from local cache: c:\Users\David.mozbuild\toolchains\3e579d132145777c-node.tar.zst
0:08.82 rm tree: c:\Users\David.mozbuild\node
0:13.91 untarring "c:\Users\David.mozbuild\node.tar.zst"
0:08.23 Setting up artifact fix-stacks.tar.zst
0:08.23 Using artifact from local cache: c:\Users\David.mozbuild\toolchains\65aa5d985d8851e0-fix-stacks.tar.zst
0:08.25 rm tree: c:\Users\David.mozbuild\fix-stacks
0:08.25 untarring "c:\Users\David.mozbuild\fix-stacks.tar.zst"
0:07.70 Setting up artifact minidump_stackwalk.tar.zst
0:07.70 Using artifact from local cache: c:\Users\David.mozbuild\toolchains\9638791163009656-minidump_stackwalk.tar.zst
0:07.72 rm tree: c:\Users\David.mozbuild\minidump_stackwalk
0:07.72 untarring "c:\Users\David.mozbuild\minidump_stackwalk.tar.zst"
0:08.68 Setting up artifact clang.tar.zst
0:08.68 Using artifact from local cache: c:\Users\David.mozbuild\toolchains\f6ddecfc4d47c5ba-clang.tar.zst
0:11.77 rm tree: c:\Users\David.mozbuild\clang
0:11.78 untarring "c:\Users\David.mozbuild\clang.tar.zst"
Error running mach:

['artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang']

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 artifact| 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:

tarfile.StreamError: seeking backwards is not allowed

File "c:\mozilla-source\python/mozbuild/mozbuild/artifact_commands.py", line 563, in artifact_toolchain
unpack_file(local)
File "c:\mozilla-source\python/mozbuild\mozbuild\action\tooltool.py", line 1001, in unpack_file
tar.extractall()
File "c:\mozilla-build\python3\lib\tarfile.py", line 2002, in extractall
numeric_owner=numeric_owner)
File "c:\mozilla-build\python3\lib\tarfile.py", line 2044, in extract
numeric_owner=numeric_owner)
File "c:\mozilla-build\python3\lib\tarfile.py", line 2122, in _extract_member
self.makelink(tarinfo, targetpath)
File "c:\mozilla-build\python3\lib\tarfile.py", line 2215, in makelink
targetpath)
File "c:\mozilla-build\python3\lib\tarfile.py", line 2114, in _extract_member
self.makefile(tarinfo, targetpath)
File "c:\mozilla-build\python3\lib\tarfile.py", line 2153, in makefile
source.seek(tarinfo.offset_data)
File "c:\mozilla-build\python3\lib\tarfile.py", line 520, in seek
raise StreamError("seeking backwards is not allowed")
Error running 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 '['c:/Users/David/.mozbuild\_virtualenvs\mach\Scripts\python.exe', 'c:\mozilla-source\mach', 'artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang']' returned non-zero exit status 1.

File "c:\mozilla-source\python/mozboot/mozboot/mach_commands.py", line 42, in bootstrap
bootstrapper.bootstrap(command_context.settings)
File "c:\mozilla-source\python/mozboot\mozboot\bootstrap.py", line 377, in bootstrap
state_dir, checkout_root, application
File "c:\mozilla-source\python/mozboot\mozboot\bootstrap.py", line 228, in maybe_install_private_packages_or_exit
self.instance.ensure_stylo_packages(state_dir, checkout_root)
File "c:\mozilla-source\python/mozboot\mozboot\mozillabuild.py", line 202, in ensure_stylo_packages
self.install_toolchain_artifact(state_dir, checkout_root, stylo.WINDOWS_CLANG)
File "c:\mozilla-source\python/mozboot\mozboot\base.py", line 428, in install_toolchain_artifact
subprocess.check_call(cmd, cwd=state_dir)
File "c:\mozilla-build\python3\lib\subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)

David@LAPTOP-9GVIVS8D /c/mozilla-source
$

Expected results:

Successful bootstrap

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.