Closed Bug 1748412 Opened 3 years ago Closed 3 years ago

"mach build" fails for artifact builds on Linux with "TypeError: 'NoneType' object is not iterable"

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1747377

People

(Reporter: whimboo, Unassigned)

Details

I'm trying to build an artifact build on Linux Mint (all packages up-to-date) but it always fails with the following message:

Traceback (most recent call last):
  File "/home/henrik/code/gecko/python/mozbuild/mozbuild/frontend/sandbox.py", line 211, in exec_function
    func(*args, **kwargs)
  File "/home/henrik/code/gecko/python/mozbuild/mozbuild/frontend/sandbox.py", line 188, in execute
    exec_(code, self)
  File "/home/henrik/code/gecko/python/mozbuild/mozbuild/util.py", line 57, in exec_
    exec(object, globals, locals)
  File "/home/henrik/code/gecko/widget/gtk/mozgtk/moz.build", line 30, in <module>
    OS_LIBS += [f for f in CONFIG["MOZ_GTK3_LIBS"] if f.startswith("-L")]
TypeError: 'NoneType' object is not iterable

It looks like CONFIG["MOZ_GTK3_LIBS"] is None?

Last time when I built Firefox (maybe early December) it wasn't a problem. Workaround for now is to run a full build.

Flags: needinfo?(mhentges)

This sounds a lot like why bug 1747165 was backed out after its first landing, but that was fixed in the second landing, and I don't see how you can get to widget/gtk/mozgtk/moz.build in an artifact build after that second landing. Are you sure your tree is up-to-date?

Flags: needinfo?(mhentges) → needinfo?(hskupin)

Good hint. Thanks Mike! I indeed wasn't on latest central but not because I missed to pull/update. I used moz-phab patch to download https://phabricator.services.mozilla.com/D134542 on my machine. It's base changeset is from the day of the backout you mentioned.

After a rebase it works all fine.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(hskupin)
You need to log in before you can comment on or make changes to this bug.