Closed Bug 795327 Opened 13 years ago Closed 13 years ago

mach is confused if 'configure' run is interrupted on Linux

Categories

(Firefox Build System :: General, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jimb, Unassigned)

Details

(Whiteboard: [mach])

To reproduce, on Linux: - Delete your build tree. - Type: ./mach build - While the configure script is running, hit C-c. I think this needs to happen early in the process. I hit it at this point, and was able to reproduce the problem: 0.77 checking how to run the C preprocessor... gcc -E Perhaps modifying the configure script with an "exit 2" at that point, conditional on an environment variable, could make it reproducible. - Type, again: ./mach build The second 'mach build' dies as follows: 0.45 checking for c++... c++ 0.52 checking whether the C++ compiler (c++ ) works... cat: conftest.C: No such file or directory 0.52 no 0.52 configure: error: installation or configuration problem: C++ compiler cannot create executables. 0.52 *** Fix above errors and then restart with "/usr/bin/gmake -f client.mk build" 0.52 gmake[2]: *** [configure] Error 1 0.52 gmake[1]: *** [/home/jimb/moz/mc/obj-rel/Makefile] Error 2 0.52 gmake: *** [build] Error 2 Traceback (most recent call last): File "./mach", line 48, in <module> mach.run(sys.argv[1:]) File "/home/jimb/moz/mc/python/mach/mach/main.py", line 133, in run fn(**stripped) File "/home/jimb/moz/mc/python/mach/mach/build.py", line 45, in build log=False, print_directory=False) File "/home/jimb/moz/mc/python/mozbuild/mozbuild/base.py", line 255, in _run_make fn(**params) File "/home/jimb/moz/mc/python/mozbuild/mozbuild/base.py", line 278, in _run_command_in_srcdir self._run_command(cwd=self.topsrcdir, **args) File "/home/jimb/moz/mc/python/mozbuild/mozbuild/base.py", line 331, in _run_command raise Exception('Process executed with non-0 exit code: %s' % args) Exception: Process executed with non-0 exit code: [u'/usr/bin/gmake', u'-f', u'client.mk', u'-j4', u'-s']
I think this is a core build system bug and not something specific to mach. Is bug 795326 related?
jimb: We've pushed a number of changes to mach regarding process handling and handling of SIGINT/C-c. I'm optimistic that if you pull m-c you'll find this problem has magically gone away. Please reopen if you experience otherwise.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.