Closed Bug 911197 Opened 11 years ago Closed 11 years ago

Error when building: "Variable LIBRARY_NAME is defined in /Users/ehsanakhgari/moz/mozilla-central/obj-ff-dbg/js/src/Makefile. It should only be defined in moz.build files."

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 852814

People

(Reporter: ehsan.akhgari, Unassigned)

Details

I just pulled and tried to build and here's the error I got:

$ ./mach build
 0:00.35 /usr/bin/make -f client.mk -s
 0:00.90 Adding client.mk options from /Users/ehsanakhgari/moz/mozilla-central/.mozconfig:
 0:00.90     MOZ_OBJDIR=$(TOPSRCDIR)/obj-ff-dbg
 0:00.90     MOZ_MAKE_FLAGS=-s
 0:00.90     AUTOCLOBBER=1
 0:01.01 TEST-PASS | check-sync-dirs.py | /Users/ehsanakhgari/moz/mozilla-central/js/src/config <= /Users/ehsanakhgari/moz/mozilla-central/config
 0:01.39 Build configuration changed. Regenerating backend.
 0:01.58 Reticulating splines...
 0:05.35 Finished reading 1174 moz.build files into 3400 descriptors in 0.85s
 0:05.35 Backend executed in 2.26s
 0:05.35 2347 total backend files. 0 created; 247 updated; 2108 unchanged
 0:05.35 Total wall time: 3.77s; CPU time: 2.50s; Efficiency: 66%
 0:05.62 /Users/ehsanakhgari/moz/mozilla-central/js/src/config/rules.mk:50: *** Variable LIBRARY_NAME is defined in /Users/ehsanakhgari/moz/mozilla-central/obj-ff-dbg/js/src/Makefile. It should only be defined in moz.build files.  Stop.
 0:05.73 make[2]: *** [default] Error 2
 0:05.73 make[2]: *** Waiting for unfinished jobs....
 0:05.73 make[1]: *** [realbuild] Error 2
 0:05.73 make: *** [build] Error 2
 0:05.78 338 compiler warnings present.

The same thing happened on both Linux and Mac.
run mach configure.
We should regenerate the js/src moz.build tree if it has changed as part of a top-level build. What's configure going to do that a dual config.status won't?
(In reply to Gregory Szorc [:gps] from comment #2)
> We should regenerate the js/src moz.build tree if it has changed as part of
> a top-level build. What's configure going to do that a dual config.status
> won't?

configure is doing the dual config.status. We don't have rules to do it. I was merely giving a workaround that works and is not a complicated cd $objdir && ./config.status && cd js/src && ./config.status.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.