Build failure dealing with firefox_sync.html

RESOLVED WONTFIX

Status

Firefox OS
Gaia::Build
RESOLVED WONTFIX
3 years ago
4 months ago

People

(Reporter: fabrice, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
When not starting from an empty profile/ and build_stage/ I get this failure quite often:

===========================================================================================================

[rebuild] rebuildAppDirs: ["/home/fabrice/dev/gaia/apps/bookmark","/home/fabrice/dev/gaia/apps/calendar","/home/fabrice/dev/gaia/apps/callscreen","/home/fabrice/dev/gaia/apps/clock","/home/fabrice/dev/gaia/apps/communications","/home/fabrice/dev/gaia/apps/costcontrol","/home/fabrice/dev/gaia/apps/default_theme","/home/fabrice/dev/gaia/apps/download","/home/fabrice/dev/gaia/apps/email","/home/fabrice/dev/gaia/apps/emergency-call","/home/fabrice/dev/gaia/apps/findmydevice","/home/fabrice/dev/gaia/apps/fl","/home/fabrice/dev/gaia/apps/gallery","/home/fabrice/dev/gaia/apps/homescreen","/home/fabrice/dev/gaia/apps/keyboard","/home/fabrice/dev/gaia/apps/marketplace.firefox.com","/home/fabrice/dev/gaia/apps/music","/home/fabrice/dev/gaia/apps/network-alerts","/home/fabrice/dev/gaia/apps/operatorvariant","/home/fabrice/dev/gaia/apps/pdfjs","/home/fabrice/dev/gaia/apps/ringtones","/home/fabrice/dev/gaia/apps/search","/home/fabrice/dev/gaia/apps/settings","/home/fabrice/dev/gaia/apps/sms","/home/fabrice/dev/gaia/apps/system","/home/fabrice/dev/gaia/apps/video","/home/fabrice/dev/gaia/apps/wallpaper","/home/fabrice/dev/gaia/apps/wappush","/home/fabrice/dev/gaia/shared"]
[svoperapps.js] PROFILE_DIR, GAIA_DISTRIBUTION_DIR, VARIANT_PATH are all required
[settings.js] Writing settings file: /home/fabrice/dev/gaia/profile/settings.json
[settings.js] Writing settings file: /home/fabrice/dev/gaia/profile/defaults/settings.json
[app] building calendar app...
[app] building clock app...
[app] building communications app...
[app] building costcontrol app...
Will run rjs optimizer...
[app] building email app...
[app] building findmydevice app...
[app] building gallery app...
[app] building homescreen app...
[app] building keyboard app...
[app] building music app...
[app] building operatorvariant app...
Warning: Can not find application camera at apps
Warning: Can not find application fm at apps
Warning: Can not find application bugzillalite at hosted_apps
Warning: Can not find application facebook at hosted_apps
Warning: Can not find application twitter at hosted_apps
[keyboard-load-layouts] The enabled layouts are set to: en, pt-BR, es, de, fr, fr-CA, pl, ko, zh-Hans-Pinyin, en-Dvorak
[keyboard-load-layouts] The downloadable layouts are set to: cy, hr, fr, sq, gv, fr-CH, dz-BT, lv, da, vi-Typewriter, sv, bn-Avro, wo, en-Dvorak, ko, bn-Probhat, ar, he, cs-qwerty, bg-Pho-Ban, fy, tr-Q, bg-Pho-Trad, tr-F, th, uk, es, de-Neo, my, en-Africa, ig, hi, vi-Qwerty, ro, ca, nb, fr-Dvorak-bepo, gd, en-Colemak, bg-BDS, mk, pl, sr-Cyrl, pt-PT, de, it, gl, lt, vi-Telex, fr-CA, sr-Latn, ta, es-Americas, en, te, en-Neo, nl, pt-BR, ru, sk, hu, ga, cs, af, bs, eu, eo, en-GB, ff, el
[operatorvariant] /home/fabrice/dev/gaia/distros/b2gdroid/variant.json not found. Single variant resources will not be added.

require.js optimize ok
[app] building search app...
[app] building settings app...
[app] building sms app...
[app] building system app...
[cmd] /usr/bin/git --git-dir=/home/fabrice/dev/gaia/.git log -1 --format=%H%n%ct HEAD
[settings-app-build] Writing git commit information to: /home/fabrice/dev/gaia/build_stage/settings/resources/gaia_commit.txt
[app] building wallpaper app...
[app] building wappush app...
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/system/js/sync_manager.js
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/system/js/sync_state_machine.js
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/system/test/unit/sync_manager_test.js
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/system/test/unit/sync_state_machine_test.js
[OK] rjs optimize
r.js optimize ok
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/elements/firefox_sync.html
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/js/panels/firefox_sync/firefox_sync.js
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/js/panels/firefox_sync/panel.js
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/js/modules/sync_manager_bridge.js
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/style/images/fxsync_error.png
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/style/images/fxsync_intro.png
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/test/unit/panels/firefox_sync/manager_bridge_test.js
[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/test/unit/panels/firefox_sync/panel_test.js
Exception: Error:  -*- build/utils.js: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/utils-xpc.js :: getFileContent :: line 82"  data: no]
file not found: /home/fabrice/dev/gaia/build_stage/settings/elements/firefox_sync.html

getFileContent@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/utils-xpc.js:98:11
HTMLOptimizer@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/webapp-optimize.js:35:37
WebappOptimize.prototype.processFile@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/webapp-optimize.js:567:23
WebappOptimize.prototype.execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/webapp-optimize.js:608:3
execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/webapp-optimize.js:622:1
exports.execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/post-app.js:24:3
exports.execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/build-app.js:17:3
CommonjsRunner.prototype.run@/home/fabrice/dev/gaia/build/xpcshell-commonjs.js:168:5
run@/home/fabrice/dev/gaia/build/xpcshell-commonjs.js:183:3
@-e:1:1

[failed] building settings app failed with exit code 1
make[6]: Leaving directory `/home/fabrice/dev/gaia'

===========================================================================================================

It seems that the preprocessor is removing a file that we need later:

[PREPROCESSOR] remove file: /home/fabrice/dev/gaia/build_stage/settings/elements/firefox_sync.html

Exception: Error:  -*- build/utils.js: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> file:///home/fabrice/dev/gaia/build/utils-xpc.js :: getFileContent :: line 82"  data: no]
file not found: /home/fabrice/dev/gaia/build_stage/settings/elements/firefox_sync.html

Comment 1

4 months ago
Firefox OS is not being worked on
Status: NEW → RESOLVED
Last Resolved: 4 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.