Skip to content

Instantly share code, notes, and snippets.

View sgraham's full-sized avatar

Scott Graham sgraham

View GitHub Profile
@sgraham
sgraham / a.c
Created October 23, 2020 23:54
[scottmg:~]$ pwd
/Users/scottmg
[scottmg:~]$ cat a.c
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
int main() {
for (int count = 0; ; ++count) {
[scottmg:~/work/fuchsia ((c77f085ddb4...))]$ prebuilt/third_party/gn/mac-x64/gn gen out/not-default '--check=system' '--args=import("//products/core.gni") base_package_labels+=["//bundles/buildbot:core"] build_info_product="core" is_debug=false target_cpu="x64" universe_package_labels+=["//bundles:infratools"] use_goma=true' --fail-on-unused-args
Done. Made 71197 targets from 4396 files in 25965ms
[scottmg:~/work/fuchsia ((c77f085ddb4...))]$ prebuilt/third_party/ninja/mac-x64/ninja -C out/not-default.zircon -j 120 default
ninja: Entering directory `out/not-default.zircon'
[0->9422/9422 ~1] ACTION //kernel:kernel._build(//kernel:kernel-x64-clang)
[scottmg:~/work/fuchsia ((c77f085ddb4...))]$ prebuilt/third_party/ninja/mac-x64/ninja -C out/not-default.zircon -j 120 default -d explain -n -v
ninja: Entering directory `out/not-default.zircon'
ninja explain: restat of output kernel-x64-clang/obj/kernel/zircon.elf-gdb.py older than most recent input ../../../../../../bin/ln (1595358587712244336 vs 160073463100
using System.Diagnostics;
using System;
using System.Collections;
namespace Hackity
{
[CRepr]
struct WNDCLASSEXA
{
public uint32 cbSize;
FAILED: host_x64/obj/zircon/tools/kazoo/libkazoo_lib.module.modulemap.pcm
/usr/local/google/work/fuchsia/prebuilt/third_party/goma/linux-x64/gomacc ../../prebuilt/third_party/clang/linux-x64/bin/clang++ -MD -MF host_x64/obj/zircon/tools/kazoo/libkazoo_lib.module.modulemap.pcm.d -DTOOLCHAIN_VERSION=E7w1U9ii_0fi-8y4UowsFj1PB7_vwZiiqhesG6a_sygC -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -DRAPIDJSON_HAS_STDSTRING -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_CXX11_NOEXCEPT -I../.. -Ihost_x64/gen -I../../zircon -I../../zircon/tools/kazoo/include -I../../zircon/third_party/rapidjson -I../../zircon/third_party/rapidjson/include -I../../zircon/system/public -fcolor-diagnostics -fcrash-diagnostics-dir=clang-crashreports -fPIE --sysroot=../../prebuilt/third_party/sysroot/linux --target=x86_64-linux-gnu -fdebug-compilation-dir . -no-canonical-prefixes -fomit-frame-pointer -fdata-sections -ffunction-sections -O0 -g3 -Wall -Wextra -Wnewline-eof -Wno-unus
{
"additional_compile_targets": [
"all"
],
"files": [
"//base/memory/shared_memory_tracker.cc"
],
"test_targets": [
"//chrome/test:android_browsertests",
"//android_webview/test:android_webview_unittests",
[(a2e33082311...) scottmg@around /work/fuchsia]$ time prebuilt/third_party/ninja/linux-x64/ninja -C out/default
ninja: Entering directory `out/default'
ninja: no work to do.
real 0m2.906s
user 0m1.922s
sys 0m0.984s
[(a2e33082311...) scottmg@around /work/fuchsia]$ time prebuilt/third_party/ninja/linux-x64/ninja -C out/default
ninja: Entering directory `out/default'
ninja: no work to do.
CURRENT
[(a2e33082311...) scottmg@around /work/fuchsia]$ fx set core.x64 --with //bundles:tests --with //bundles/bringup:tests
Generating compile_commands took 494ms
Generating rust-project.json took 66ms
Done. Made 52952 targets from 3921 files in 7167ms
[(a2e33082311...) scottmg@around /work/fuchsia]$ fx build
ninja: Entering directory `/work/fuchsia/out/default.zircon'
[0->1/1 ~1 1.275s] Regenerating ninja files
[0->5538/5538 ~1 37.695s] STAMP obj/default.stamp
$ /system/test/sys/usb-virtual-bus-asix-88179-test
[==========] Flag Values:
--gtest_random_seed = 1585000178
[==========]
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from UsbAx88179Test
[ RUN ] UsbAx88179Test.SetupShutdownTest
driver_manager: failed to get root resource, assuming test environment and continuing
driver_manager: failed to get oom event, assuming test environment and continuing
There are 36 section headers, starting at offset 0x18917d0:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .text.boot0 PROGBITS ffffffff80100000 00001000
0000000000000050 0000000000000000 A 0 0 1
[ 2] .text.boot PROGBITS ffffffff80100050 00001050
[00010.051] 01073:01076> [ RUN ] InterruptTest.BindVcpuTest
[00010.051] 01073:01076>
[00010.052] 01073:01076> ../../zircon/system/utest/core/interrupt/interrupt-test.cc:254: Failure: Expected zx::interrupt::create(*root_resource_, kUnboundInterruptNumber, 0, &interrupt) is
[00010.052] 01073:01076>
[00010.052] 01073:01076> Expected: ZX_OK
[00010.052] 01073:01076>
[00010.052] 01073:01076> Which is: ZX_OK(0)
[00010.052] 01073:01076>
[00010.052] 01073:01076> Actual : zx::interrupt::create(*root_resource_, kUnboundInterruptNumber, 0, &interrupt)
[00010.052] 01073:01076>