Skip to content

Instantly share code, notes, and snippets.

View oyiptong's full-sized avatar

Olivier Yiptong oyiptong

View GitHub Profile
#!/usr/bin/env ruby
require 'csv'
require 'json'
if ARGV.length == 0
puts "needs an argument. #{ARGV.length}"
exit(1)
end
rows =[]

Problems building due to NaCL:

$ gn gen out/macmac --args='cc_wrapper="ccache" is_component_build=true enable_nacl=false'
ERROR at //components/nacl/features.gni:6:1: Can't load input file.
import("//build/config/gclient_args.gni")
^---------------------------------------
Unable to load:
  /Users/olivier_yiptong/Projects/chromium/src/build/config/gclient_args.gni
I also checked in the secondary tree for:
barst Projects/chromium/src
$ time ninja -C out/Default chrome_public_apk
ninja: Entering directory `out/Default'
[7022/28616] ACTION //third_party/jsr-305:jsr_305_javalib__compile_java__javac(//build/toolchain/android:android_clang_arm)
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
[7626/28616] ACTION //third_party/opus:convert_rtcd_assembler(//build/toolchain/android:android_clang_arm)
perl /home/oyiptong/Projects/chromium/src/third_party/opus/src/celt/arm/arm2gnu.pl /home/oyiptong/Projects/chromium/src/third_party/opus/src/celt/arm/celt_pitch_xcorr_arm.s | sed "s/OPUS_ARM_MAY_HAVE_[A-Z]*/1/g" | sed "/.include/d" > gen/third_party/opus/celt_pitch_xcorr_arm_gnu.S
[12258/28616] ACTION //third_party/android_protobuf:protobuf_nano_javalib__compile_java__javac(//build/toolchain/android:android_clang_arm)

Building

kvothe Projects/chromium/src
$ time ninja -C out/Default chrome_public_apk                                                                                                                                                              
ninja: Entering directory `out/Default'
[1/1] Regenerating ninja files
if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
NEWLINE='
'
PROMPT='%{${fg_bold[blue]}%}%m%{$reset_color%} %{${fg[green]}%}%3~$NEWLINE%{${fg_bold[$CARETCOLOR]}%}$%{${reset_color}%} '
RPROMPT='%{$fg[red]%}${DOCKER_MACHINE_NAME}%{$reset_color%} ${return_code}'
$ ninja -Cout/lin webkit_unit_tests \
> && out/lin/webkit_unit_tests --single-process-tests \
cmdand> --gtest_filter="*Payment*:*Abort*:*Complete*"
ninja: Entering directory `out/lin'
[6471/18789] CC obj/third_party/ffmpeg/ffmpeg_internal/time.o
FAILED: obj/third_party/ffmpeg/ffmpeg_internal/time.o
../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/ffmpeg/ffmpeg_internal/time.o.d -DHAVE_AV_CONFIG_H -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DFF_API_CONVERGENCE_DURATION=0 -D_DARWIN_C_SOURCE -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=\"296321-1\" -DCR_XCODE_VERSION=0821 -DCOMPONENT_BUILD -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/ffmpeg/chromium/config/Chromium/mac/x64 -I../../third_party/ffmpeg -I../.. -Igen -I../../third_party/opus/src/
extern crate tokio_core;
extern crate futures;
extern crate net2;
extern crate error_type;
use std::{io, thread};
use std::error::Error as StdError;
use std::net::SocketAddr;
use std::sync::mpsc;
First load:
console.info: activity-streams: -3-2 0 TAB_OPEN
console.info: activity-streams: -3-2 61 WORKER_ATTACHED
console.info: activity-streams: -3-2 206 TOP_FRECENT_SITES_REQUEST
console.info: activity-streams: -3-2 214 TOP_FRECENT_SITES_RESPONSE 8
console.info: activity-streams: -3-2 215 RECENT_LINKS_REQUEST
console.info: activity-streams: -3-2 222 RECENT_LINKS_RESPONSE 7
console.info: activity-streams: -3-2 224 HIGHLIGHTS_LINKS_REQUEST
console.info: activity-streams: -3-2 230 HIGHLIGHTS_LINKS_RESPONSE 6
{
"xpinstall.signatures.required": false,
"[email protected]": "info",
"[email protected]": true,
"[email protected]": "https://onyx_tiles.stage.mozaws.net/v3/links/activity-stream",
"[email protected]": "https://embedly-proxy.stage.mozaws.net/v2/extract"
}
console.info: activity-streams: -5-2 0 TAB_OPEN
console.info: activity-streams: -5-2 69 WORKER_ATTACHED
console.info: activity-streams: -5-2 171 TOP_FRECENT_SITES_REQUEST
console.info: activity-streams: -5-2 177 RECENT_LINKS_REQUEST
console.info: activity-streams: -5-2 187 RECENT_BOOKMARKS_REQUEST
console.info: activity-streams: -5-2 191 SEARCH_STATE_REQUEST
console.info: activity-streams: -5-2 195 NOTIFY_PERFORMANCE:BASE_MOUNTED
console.info: activity-streams: -5-2 197 TAB_READY
console.info: activity-streams: -5-2 199 NOTIFY_PERFORMANCE:DOC_READY_STATE=interactive
console.info: activity-streams: -5-2 226 NOTIFY_PERFORMANCE:DOC_READY_STATE=complete