I did attempt to build electron just now. With advice from @capouch (thanks for that!) it did indeed compile.
S/he is exactly right: the version of electron that is in directory out/R is 1,419,724,529 bytes in size. Running `readelf -s out/R/electron’ shows there must be more than 100,000 symbols in the executable file. I conclude that the debug version of electron must have been put accidentally in the out/R directory.
The version of electron which is in the out/D directory is 11,014,510 bytes.
I have not tried using either executable.
There was an undefined reference to symbol g_module_symbol. Adding ‘-lgmodule-2.0’ as a linker flag in the appropriate build.ninja files fixed that problem. Then I hit another issue where the Ubuntu libxss1 package needed to be installed. That allowed the build to succeed.
What I learned: you need to have Python 2.7 for the boostrap.py script to work. The requirement for libxss1 should also be published. I’ll contribute at least this back to the electron project https://github.com/atom/electron/issues/1830