Error when when using chromeos=1

39 views
Skip to first unread message

David

unread,
Jun 30, 2015, 4:00:04 PM6/30/15
to chromi...@chromium.org
Hey,

So until recently I have been able to build chromium on ubuntu with the chromeos=1 flag to write browser_tests for the Files app.  

Now whenever I run the following I get an error during the last step. 
  • git fetch origin
  • git reset --hard origin/master
  • gclient sync
  • GYP_DEFINES="chromeos=1 component=shared_library remove_webcore_debug_symbols=1" gclient runhooks
The error I get is below and it only occurs when I add the chromeos=1 part. I have tried over several days of resyncing because I don't really know enough to debug it myself. 
Has something changed that I need to do or has anyone seen this error?

Updating projects from gyp files...
Using overrides found in /usr/local/google/home/dhaddock/.gyp/include.gypi
Exception: Failed to open None while trying to flatten browser/resources/settings/users_page/user_list.html. (Input/output error)
Traceback (most recent call last):
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 491, in CallLoadTargetBuildFile
    includes, depth, check, False)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 412, in LoadTargetBuildFile
    build_file_data, PHASE_EARLY, variables, build_file_path)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 1283, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 1298, in ProcessVariablesAndConditionsInList
    ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 1257, in ProcessVariablesAndConditionsInDict
    ProcessConditionsInDict(the_dict, phase, variables, build_file)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 1136, in ProcessConditionsInDict
    variables, build_file)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 1283, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 1298, in ProcessVariablesAndConditionsInList
    ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 1283, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 1302, in ProcessVariablesAndConditionsInList
    expanded = ExpandVariables(item, phase, variables, build_file)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/gyp/pylib/gyp/input.py", line 886, in ExpandVariables
    replacement = str(py_module.DoMain(parsed_contents[1:])).rstrip()
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit_info.py", line 150, in DoMain
    options.target_platform)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit_info.py", line 87, in Inputs
    node.RunPreSubstitutionGatherer()
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/node/structure.py", line 229, in RunPreSubstitutionGatherer
    self.gatherer.Parse()
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/gather/chrome_html.py", line 352, in Parse
    filename_expansion_function=self.filename_expansion_function)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/format/html_inline.py", line 375, in InlineToString
    (e.filename, input_filename, e.strerror))
Exception: Failed to open None while trying to flatten browser/resources/settings/users_page/user_list.html. (Input/output error)

Error processing node <?xml version="1.0" encoding="UTF-8"?>
<structure allowexternalscript="true" file="users_page/user_list.html" flattenhtml="true" name="IDR_SETTINGS_USERS_PAGE_USER_LIST_HTML" type="chrome_html" />
Error: Command '/usr/bin/python src/build/gyp_chromium' returned non-zero exit status 1 in /usr/local/google/home/dhaddock/chromium

Thiago Farina

unread,
Jun 30, 2015, 5:01:38 PM6/30/15
to dhad...@chromium.org, Chromium-dev
On Tue, Jun 30, 2015 at 5:00 PM, David <dhad...@chromium.org> wrote:
Hey,

So until recently I have been able to build chromium on ubuntu with the chromeos=1 flag to write browser_tests for the Files app.  

Now whenever I run the following I get an error during the last step. 
  • git fetch origin
  • git reset --hard origin/master
Did you try with `git pull --rebase` instead?


--
Thiago Farina

David Haddock

unread,
Jun 30, 2015, 5:14:03 PM6/30/15
to Thiago Farina, Chromium-dev
I tired 'git pull --rebase' but got the same result at the gclient runhooks step. 
Message has been deleted

Thiago Farina

unread,
Jun 30, 2015, 5:19:19 PM6/30/15
to dhad...@chromium.org, Chromium-dev
Are you checking out src-internal? Does it work without chromeos=1 and remove_webcore_debug_symbols=1? Have you tried setting GYP_DEFINES before `gclient sync`? (gclient sync will run runhooks at the end for you).

--
Thiago Farina

David Haddock

unread,
Jun 30, 2015, 5:49:11 PM6/30/15
to Thiago Farina, Chromium-dev
I just have a regular chromium checkout. 
Yes the gclient runhooks part completes when I remove chromeos=1. 
Setting GYP_DEFINES with the chromeos=1 part before gclient sync gives the same error when I then run gclient sync.

However, when try to build after excluding chromeos=1 from GYP_DEFINES, the build fails with a similar error in bold about processing a node.

[8592/19102] ACTION Generating resources from browser/resources/settings/settings_resources.grd
FAILED: cd ../../chrome; python ../tools/grit/grit.py -i browser/resources/settings/settings_resources.grd build -f ../tools/gritsettings/resource_ids -o ../out/Release/gen/chrome "--write-only-new=1" -D _chromium -E "CHROMIUM_BUILD=chromium" -D desktop_linux -D toolkit_views -D use_aura -D use_ash -D use_nss_certs -D remoting -D enable_extensions -D enable_plugins -D enable_printing -D enable_print_preview -D enable_themes -D enable_app_list -D enable_settings_app -D enable_google_now -D use_concatenated_impulse_responses -D enable_media_router -D enable_webrtc -D enable_task_manager -D enable_notifications -D enable_service_discovery
Error processing node <?xml version="1.0" encoding="UTF-8"?>
<structure file="settings_menu/settings_menu.html" name="IDR_SETTINGS_CR_SETTINGS_MENU_HTML" type="chrome_html" />
Traceback (most recent call last):
  File "../tools/grit/grit.py", line 15, in <module>
    grit.grit_runner.Main(sys.argv[1:])
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/grit_runner.py", line 268, in Main
    toolobject.Run(options, args[1:])
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/tool/build.py", line 228, in Run
    self.res.RunGatherers()
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/node/misc.py", line 496, in RunGatherers
    node.RunPreSubstitutionGatherer(debug=debug)
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/node/structure.py", line 229, in RunPreSubstitutionGatherer
    self.gatherer.Parse()
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/gather/chrome_html.py", line 357, in Parse
    util.ReadFile(filename, 'utf-8'),
  File "/usr/local/google/home/dhaddock/chromium/src/tools/grit/grit/util.py", line 208, in ReadFile
    data = f.read()
IOError: [Errno 5] Input/output error



Thiago Farina

unread,
Jun 30, 2015, 9:36:18 PM6/30/15
to David Haddock, Chromium-dev
Does it help with you clobber your output directory (rm -rf out/) and start over?

Has your hard disk enough space left?

--
Thiago Farina

David Haddock

unread,
Jun 30, 2015, 10:11:49 PM6/30/15
to Thiago Farina, Chromium-dev
Yeh that's what I ended up doing and it's working now. 

Thanks for helping anyway :)
Reply all
Reply to author
Forward
0 new messages