Open Bug 971431 Opened 11 years ago Updated 3 years ago

Mach should offer help if prerequisites are not found

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: me, Unassigned)

Details

I just built Firefox for the first time. I went through the guide but missed the prerequisites part; in consequence, the build didn't work: ~/vc/fx-team$ ./mach build 0:00.11 /usr/bin/make -f client.mk -s 0:00.18 /home/chris/vc/fx-team/client.mk:315: *** Could not find autoconf 2.13. Stop. 0:00.18 make: *** [build] Error 2 0:00.23 0 compiler warnings present. Yes, it stated *what* the problem was, but didn't attempt to *diagnose* the problem. It seems to me likely that in just about every case where a program is missing, the prerequisites not having been installed will be the problem. Not having seen the prerequisites part of the documentation, I hunted around for a bit, found nothing, and got help in #introduction. This problem can be eased significantly for new developers; Mach should detect such failures and diagnose the problem with a message like this: Did you install all the prerequisites? If not, check https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions#Build_prerequisites
Yes, we should do something better. glandium: do you think we should install an "on failed handler" in configure or would you prefer to have mach detect the failure as happening inside configure?
Flags: needinfo?(mh+mozilla)
That particular one is not even in configure. It's *before* configure.
Flags: needinfo?(mh+mozilla)
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.