Closed Bug 1241730 Opened 10 years ago Closed 7 years ago

Error running mach

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: smarty_1995_ayush, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 Steps to reproduce: Opened The file in android studio Actual results: Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :base:generateDebugSources, :base:generateDebugAndroidTestSources, :base:compileDebugSources, :base:compileDebugAndroidTestSources, :thirdparty:generateDebugSources, :thirdparty:generateDebugAndroidTestSources, :thirdparty:compileDebugSources, :thirdparty:compileDebugAndroidTestSources] FAILURE: Build failed with an exception. * What went wrong: A problem occurred evaluating settings 'mozilla-central'. > Process '[/home/ayush/mozilla-central/mach, environment, --format, json, --verbose]' finished with non-zero exit value 1: Error running mach: ['environment', '--format', 'json', '--verbose'] 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: BuildEnvironmentNotFoundException: config.status not available. Run configure. File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1287, in environment return func(sys.stdout, verbose) File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1397, in _environment_json json.dump(self, cls=EnvironmentEncoder, sort_keys=True, fp=out) File "/usr/local/lib/python2.7/json/__init__.py", line 189, in dump for chunk in iterable: File "/usr/local/lib/python2.7/json/encoder.py", line 442, in _iterencode o = _default(o) File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1391, in default result['substs'] = obj.substs File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/base.py", line 273, in substs return self.config_environment.substs File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/base.py", line 260, in config_environment raise BuildEnvironmentNotFoundException('config.status not available. Run configure.') * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Information:BUILD FAILED Information:Total time: 0.899 secs Error: FAILURE: Build failed with an exception. * Where: Settings file '/home/ayush/mozilla-central/settings.gradle' line: 13 * What went wrong: A problem occurred evaluating settings 'mozilla-central'. > Process '[/home/ayush/mozilla-central/mach, environment, --format, json, --verbose]' finished with non-zero exit value 1: Error running mach: ['environment', '--format', 'json', '--verbose'] 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: BuildEnvironmentNotFoundException: config.status not available. Run configure. File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1287, in environment return func(sys.stdout, verbose) File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1397, in _environment_json json.dump(self, cls=EnvironmentEncoder, sort_keys=True, fp=out) File "/usr/local/lib/python2.7/json/__init__.py", line 189, in dump for chunk in iterable: File "/usr/local/lib/python2.7/json/encoder.py", line 442, in _iterencode o = _default(o) File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1391, in default result['substs'] = obj.substs File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/base.py", line 273, in substs return self.config_environment.substs File "/home/ayush/mozilla-central/python/mozbuild/mozbuild/base.py", line 260, in config_environment raise BuildEnvironmentNotFoundException('config.status not available. Run configure.') * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Information:1 error Information:0 warnings Information:See complete output in console Expected results: It shoudl have built the file
Hello, Is this still an issue? Thank you?!
Flags: needinfo?(smarty_1995_ayush)
Hi, Due to the lack of additional info, I'll close this issue as Incomplete. If the reporter (or anyone else) can provide more information, please feel free to reopen or comment on the issue, and we'll have a thorough look on it. Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
i am facing the same issue
(In reply to miralobontiu from comment #2) > Hi, > > Due to the lack of additional info, I'll close this issue as Incomplete. > If the reporter (or anyone else) can provide more information, please feel > free to reopen or comment on the issue, and we'll have a thorough look on it. > > Thanks! please help me with the same issue! can give you details
Process '[/home/mozilla-central/mach, environment, --format, json, --verbose]' finished with non-zero exit value 1: Error running mach: ['environment', '--format', 'json', '--verbose'] 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: BuildEnvironmentNotFoundException: config.status not available. Run configure. File "/home/dirolabs/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1112, in environment return func(sys.stdout, verbose) File "/home/dirolabs/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1182, in _environment_json json.dump(self, cls=EnvironmentEncoder, sort_keys=True, fp=out) File "/usr/lib/python2.7/json/__init__.py", line 189, in dump for chunk in iterable: File "/usr/lib/python2.7/json/encoder.py", line 442, in _iterencode o = _default(o) File "/home/dirolabs/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1176, in default result['substs'] = obj.substs File "/home/dirolabs/mozilla-central/python/mozbuild/mozbuild/base.py", line 257, in substs return self.config_environment.substs File "/home/dirolabs/mozilla-central/python/mozbuild/mozbuild/base.py", line 240, in config_environment raise BuildEnvironmentNotFoundException('config.status not available. Run configure.') Open File

I got this when doing a fresh build from tor-browser. I cloned the git repo, then ran git checkout tor-browser-68.1.0esr-9.0-2. Then I ran ./gradlew assembleDebug. It seems the original reporter and I have missed a previous setup step. Then I ran ./mach bootstrap and it installed somethings, but since I'm Debian/buster it couldn't install openjdk-8. Have a separate Java8 installed and I set JAVA_HOME to point to it, but it still fails.

Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.