Closed Bug 859078 Opened 11 years ago Closed 11 years ago

mach build fails trying to write warnings.json

Categories

(Firefox Build System :: Mach Core, enhancement)

x86_64
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 857332

People

(Reporter: amir.aharoni, Unassigned)

References

Details

I tried to build mozilla-central on Fedora 18. I got this error:

-------------------
130:31.72 1436 compiler warnings present.
Error running mach:

    ['build']

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 should consider filing a bug for this issue.

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

The details of the failure are as follows:

IOError: [Errno 2] No such file or directory: u'/home/amire80/dev/mozilla-central/obj-x86_64-unknown-linux-gnu/.mozbuild/warnings.json'

  File "/home/amire80/dev/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 115, in build
    warnings_database.save_to_file(warnings_path)
  File "/home/amire80/dev/mozilla-central/python/mozbuild/mozbuild/compilation/warnings.py", line 268, in save_to_file
    with open(filename, 'wb') as fh:
-------------------

On IRC Ms2ger suggested running hg log -r 4a6fd35a9a53. Here's its output:

-------------------
[amire80@theodor mozilla-central]$ hg log -r 4a6fd35a9a53
changeset:   127496:4a6fd35a9a53
user:        Matt Brubeck <mbrubeck@mozilla.com>
date:        Wed Apr 03 10:15:12 2013 -0700
summary:     Bug 857332 - Normalize topobjdir to an absolute path in mozbuild.base [r=gps]
-------------------
Component: Untriaged → mach
Product: Firefox → Core
Summary: Cannot build mozilla-central on Fedora 18 - hg id = be3be63607b0 tip → mach build fails trying to write warnings.json
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.