Closed Bug 1206659 Opened 10 years ago Closed 9 years ago

recent hg build failed because of multiple preprocessing rules

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: kuh3h3, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux i686; rv:1.0) Goanna/20150920 Gecko/20100101 Firefox/38.9 PaleMoon/26.0.0b2 Build ID: 20150921155524 Steps to reproduce: get recent hg source. firefox build(on fedora 22) Actual results: make[1]: Entering directory '/home/reandr/firebuild/mybuild/browser/app' make[2]: Entering directory '/home/reandr/firebuild/mybuild/browser/app/profile/extensions' make[3]: Entering directory '/home/reandr/firebuild/mybuild/browser/app/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}' /home/reandr/firebuild/mysrc/config/rules.mk:1524: *** Multiple preprocessing rules are creating a install.rdf file. Stop. make[3]: Leaving directory '/home/reandr/firebuild/mybuild/browser/app/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}' /home/reandr/firebuild/mysrc/config/recurse.mk:125: recipe for target 'export' failed make[2]: *** [export] Error 2 make[2]: Leaving directory '/home/reandr/firebuild/mybuild/browser/app/profile/extensions' /home/reandr/firebuild/mysrc/config/recurse.mk:125: recipe for target 'export' failed make[1]: *** [export] Error 2 make[1]: Leaving directory '/home/reandr/firebuild/mybuild/browser/app' /home/reandr/firebuild/mysrc/config/rules.mk:549: recipe for target 'default' failed make: *** [default] Error 2 Expected results: build ok
Version: 38 Branch → Trunk
Severity: normal → blocker
OS: Unspecified → Linux
Hardware: Unspecified → x86
Component: Untriaged → Build Config
Flags: needinfo?(gps)
Product: Firefox → Core
This error comes up when the build configuration is invalid due to multiple preprocessing rules for a single output. This should ideally be caught at moz.build processing time. However, not all preprocessing rules are currently captured by moz.build, so the check needs to exist in rules.mk. You should not see this error unless you edited moz.build or Makefile.in files. Did you? If not, what revision is this and what does your mozconfig look like?
Flags: needinfo?(gps) → needinfo?(kuh3h3)
i did not modify moz.build or Makefile.in or any other. my mozconfig is ac_add_options --enable-official-branding export MOZILLA_OFFICIAL=1 mk_add_options MOZ_CO_PROJECT=browser ac_add_options --enable-application=browser mk_add_options MOZ_OBJDIR=/home/reandr/firebuild/mybuild/ mk_add_options AUTOCLOBBER=1 ac_add_options --disable-crashreporter ac_add_options --disable-parental-controls ac_add_options --disable-accessibility ac_add_options --disable-necko-wifi ac_add_options --disable-installer ac_add_options --disable-updater ac_add_options --disable-websms-backend ac_add_options --disable-libnotify ac_add_options --disable-dbus ac_add_options --disable-tests ac_add_options --disable-mochitests ac_add_options --disable-debug ac_add_options --disable-debug-symbols ac_add_options --enable-gstreamer=1.0 ac_add_options --enable-gio ac_add_options --enable-system-sqlite ac_add_options --with-system-libevent ac_add_options --with-system-libvpx ac_add_options --enable-system-cairo ac_add_options --enable-system-ffi ac_add_options --enable-system-pixman ac_add_options --with-pthreads ac_add_options --with-system-bz2 ac_add_options --with-system-jpeg ac_add_options --with-system-png ac_add_options --with-system-zlib ac_add_options --enable-strip ac_add_options --enable-optimize="-O3 -msse2 -mfpmath=sse" ac_add_options --enable-safe-browsing ac_add_options --enable-url-classifier ac_add_options --enable-chrome-format=omni ac_add_options --x-libraries=/usr/lib
Flags: needinfo?(kuh3h3)
what version? recent hg still same error. changeset: 265984:45f01961ecd0 tag: central tag: tip parent: 265954:b56aeea0c470 parent: 265983:40ddc543dd16 user: Carsten "Tomcat" Book <cbook@mozilla.com> date: Mon Oct 05 12:02:03 2015 +0200 summary: merge mozilla-inbound to mozilla-central a=merge ------------------------ if comment out this line in config/rules.mk. i can compile and run ok. 1523,1528c1523,1528 < PP_TARGETS_ALL_RESULT_NAMES := $(notdir $(PP_TARGETS_ALL_RESULTS)) < $(foreach file,$(sort $(PP_TARGETS_ALL_RESULT_NAMES)), \ < $(if $(filter-out 1,$(words $(filter $(file),$(PP_TARGETS_ALL_RESULT_NAMES)))), \ < $(error Multiple preprocessing rules are creating a $(file) file) \ < ) \ < ) --- > #PP_TARGETS_ALL_RESULT_NAMES := $(notdir $(PP_TARGETS_ALL_RESULTS)) > #$(foreach file,$(sort $(PP_TARGETS_ALL_RESULT_NAMES)), \ > #$(if $(filter-out 1,$(words $(filter $(file),$(PP_TARGETS_ALL_RESULT_NAMES)))), \ > #$(error Multiple preprocessing rules are creating a $(file) file) \ > #) \ > #)
after clean rebuild,same error. wget http://ftp.mozilla.org/pub/mozilla.org/firefox/bundles/mozilla-central.hg cd mysrc hg unbundle ../mozilla-central.hg cp ../hgrc mysrc/.hg/ ------------------- [reandr@kuh3h3 firebuild]$ more hgrc [paths] default = https://hg.mozilla.org/mozilla-central/ [extensions] progress = ------------------- hg pull hg update -C no other modifications there.
I think this got resolved through work to port PP_TARGETS to moz.build.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.