Closed Bug 1598642 Opened 5 years ago Closed 4 years ago

Build fail with NoneType error

Categories

(Firefox Build System :: General, defect)

70 Branch
defect
Not set
normal

Tracking

(firefox73 fixed)

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: neochapay, Assigned: rstewart)

Details

(Keywords: in-triage)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

I try build FF70 on mer-project OBS and have error

Actual results:

[ 69s] 0:06.19 checking for libpulse... yes
[ 69s] 0:06.19 checking MOZ_PULSEAUDIO_CFLAGS... -D_REENTRANT
[ 69s] 0:06.19 checking MOZ_PULSEAUDIO_LIBS... -lpulse
[ 69s] 0:06.19 checking for rustc... not found
[ 69s] 0:06.19 checking for cargo... not found
[ 69s] 0:06.19 Traceback (most recent call last):
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/configure.py", line 164, in <module>
[ 69s] 0:06.19 sys.exit(main(sys.argv))
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/configure.py", line 40, in main
[ 69s] 0:06.19 sandbox.run(os.path.join(os.path.dirname(file), 'moz.configure'))
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/configure/init.py", line 499, in run
[ 69s] 0:06.19 func(*args)
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/configure/init.py", line 543, in _value_for
[ 69s] 0:06.19 return self._value_for_depends(obj)
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/util.py", line 963, in method_call
[ 69s] 0:06.19 cache[args] = self.func(instance, *args)
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/configure/init.py", line 552, in _value_for_depends
[ 69s] 0:06.19 value = obj.result()
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/util.py", line 963, in method_call
[ 69s] 0:06.19 cache[args] = self.func(instance, *args)
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/configure/init.py", line 158, in result
[ 69s] 0:06.19 return self._func(*resolved_args)
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/configure/init.py", line 1144, in wrapped
[ 69s] 0:06.19 return new_func(*args, **kwargs)
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/build/moz.configure/rust.configure", line 59, in unwrap
[ 69s] 0:06.19 (retcode, stdout, stderr) = get_cmd_output(prog, '+stable')
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/configure/init.py", line 1144, in wrapped
[ 69s] 0:06.19 return new_func(*args, **kwargs)
[ 69s] 0:06.19 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/build/moz.configure/util.configure", line 30, in get_cmd_output
[ 69s] 0:06.20 log.debug('Executing: %s', quote(*args))
[ 69s] 0:06.20 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/shellutil.py", line 210, in quote
[ 69s] 0:06.20 return ' '.join(_quote(s) for s in strings)
[ 69s] 0:06.20 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/shellutil.py", line 210, in <genexpr>
[ 69s] 0:06.20 return ' '.join(_quote(s) for s in strings)
[ 69s] 0:06.20 File "/home/abuild/rpmbuild/BUILD/firefox-70.0/python/mozbuild/mozbuild/shellutil.py", line 198, in _quote
[ 69s] 0:06.20 return t("'%s'") % s.replace(t("'"), t("'\''"))
[ 69s] 0:06.20 TypeError: cannot create 'NoneType' instances
[ 69s] 0:06.23 *** Fix above errors and then restart with
[ 69s] 0:06.23 "./mach build"
[ 69s] 0:06.23 gmake: *** [client.mk:115: configure] Error 1
[ 69s] error: Bad exit status from /var/tmp/rpm-tmp.cZKWe9 (%build)

Attached file mozconfig
mozconfig

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → General
Product: Firefox → Firefox Build System
Assignee: nobody → rstewart

The error is trying to say that rustc/cargo aren't installed, but the error message is bad.

Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by rstewart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cf68da1f723f
Fix error message when rustc/cargo are not installed r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: