Closed Bug 933779 Opened 11 years ago Closed 11 years ago

mach build * is broken on Windows

Categories

(Firefox Build System :: General, defect)

All
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla28

People

(Reporter: jimm, Assigned: glandium)

References

Details

Attachments

(1 file)

From tip this morning, I'm getting:

Jim@MONOLITH /T/Mozilla/mc
$ MOZCONFIG=/T/Mozilla/mcfgrel mach build binaries
 0:00.28 T:/mozilla-build/msys/bin/sh.exe -c T:/mozilla-build/msys/bin/mozmake.EXE -C t:\Mozilla\MC-REL -j4 -s backend.RecursiveMakeBackend
 0:00.29 mozmake.EXE: *** t:MozillaMC-REL: No such file or directory.  Stop.
Error running mach:

    ['build', 'binaries']

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:

Exception: Process executed with non-0 exit code: [u'T:/mozilla-build/msys/bin/sh.exe', u'-c', u'T:/mozilla-build/msys/bin/mozmake.EXE -C t:\\Mozilla\\MC-REL -j4 -s backend.Recursi
veMakeBackend']

  File "t:\Mozilla\mc\python/mozbuild/mozbuild/mach_commands.py", line 366, in build
    log=False, print_directory=False)
  File "t:\Mozilla\mc\python/mozbuild\mozbuild\base.py", line 463, in _run_make
    return fn(**params)
  File "t:\Mozilla\mc\python/mozbuild\mozbuild\base.py", line 494, in _run_command_in_objdir
    return self.run_process(cwd=self.topobjdir, **args)
  File "t:\Mozilla\mc\python/mach\mach\mixin\process.py", line 137, in run_process
    raise Exception('Process executed with non-0 exit code: %s' % args)
mach build (folder) is also broken.
This is happening with pymake as well.
Summary: mach build binaries with mozmake breaks due to paths → mach build * is broken on Windows
To be more specific, `mach build` works but `mach build (anything)` does not.
Blocks: 877308
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Hardware: x86_64 → All
Version: 26 Branch → Trunk
Comment on attachment 826168 [details] [diff] [review]
Always use forward slash as path separator when passing -C argument to make

Review of attachment 826168 [details] [diff] [review]:
-----------------------------------------------------------------

Applying this patch seems to have fixed my build.
Attachment #826168 - Flags: feedback+
Comment on attachment 826168 [details] [diff] [review]
Always use forward slash as path separator when passing -C argument to make

This also fixed the problem for me.
Attachment #826168 - Flags: feedback+
Attachment #826168 - Flags: review?(mshal) → review+
https://hg.mozilla.org/mozilla-central/rev/6379c1cb6fa7
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Component: mach → Build Config
Keywords: verifyme
Unfortunately, I can't set up the environment to test this on my Win7 machines - I keep getting error S1023 from the Ms DirectX installer even after removing everything C++ related (including registry entries).
Keywords: verifyme
This is working, no extra need to verify this.
Status: RESOLVED → VERIFIED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: