Skip to content

Instantly share code, notes, and snippets.

@nandub
nandub / gist:fd91fcfcc751149fe7ba
Created August 6, 2014 16:49
crosstool-ng fails on osx without zconf patch
In file included from zconf.tab.c:234:
./zconf.hash.c:177:8: warning: implicit declaration of function 'offsetof' is invalid in
C99 [-Wimplicit-function-declaration]
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str2), ...
^
./zconf.hash.c:177:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str2), ...
^
./zconf.hash.c:178:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str3), ...
@nandub
nandub / bb-kernel.log
Created August 1, 2014 21:14
BB Kernel
Building the kernel
Cloning into '/tmp/bb-kernel'...
Switched to a new branch '3.14'
Branch 3.14 set up to track remote branch 3.14 from origin.
Cloning into '.'...
Checking out files: 6% (3263/47433)
Checking out files: 7% (3321/47433)
Checking out files: 8% (3795/47433)
Checking out files: 9% (4269/47433)
Checking out files: 10% (4744/47433)
@nandub
nandub / outofmemory_dump
Created July 23, 2014 23:24
usb_flasher
[ 1533.233214] CPU: 0 PID: 572 Comm: rsyslogd Tainted: GF O 3.11.0-26-generic #45-Ubuntu
[ 1533.233215] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[ 1533.233217] 0000000000000000 ffff88003bc3f990 ffffffff816ea0a1 00000000000200da
[ 1533.233219] ffff88003bc3fa00 ffffffff816e4ffc 0000000000005589 0000000001320122
[ 1533.233220] 0000000000000000 0000000000000000 ffff88003afe0000 0000000000000000
[ 1533.233222] Call Trace:
[ 1533.233228] [<ffffffff816ea0a1>] dump_stack+0x45/0x56
[ 1533.233231] [<ffffffff816e4ffc>] dump_header+0x7f/0x1c2
[ 1533.233235] [<ffffffff81143189>] oom_kill_process+0x1a9/0x310
[ 1533.233238] [<ffffffff812ddf45>] ? security_capable_noaudit+0x15/0x20
@nandub
nandub / cross_build_16601.log
Last active August 29, 2015 13:56
CJDNS cross compiling for Beaglebone Black - SUCCESS
Compiler CC: arm-linux-gnueabihf-gcc
Compiler CFLAGS: -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -g
Compiler LDFLAGS: -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -g
Initialize 1ms
Copy dependencies
Build NaCl
Creating directories
Getting system type
System is [armeabi_neon]
Using premade plan at [node_build/plans/armeabi_neon_plan.json]
@nandub
nandub / cjdroute_cross_build_31381.gdb
Created January 2, 2014 08:29
CJDNS cross compiling for Beaglebone Black using NEON fails
gdb cjdroute_cross_build_31381
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
@nandub
nandub / build.log
Created December 25, 2013 22:53
cjdns stable-0.5 successful build
***********Starting CMAKE Step***********
-- The C compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
2.8.12.1
c compiler: /usr/bin/cc
c++ compiler:
-- Performing Test HAS_NO_UNUSED_RESULT
@nandub
nandub / gist:8111553
Created December 24, 2013 10:46
Mac OS X Build Fail
Already up-to-date.
HEAD is now at b40ddce don't compile with -pie, only link with it
Removing build_darwin/
Initialize 1ms
Copy dependencies
Build NaCl
Creating directories
Getting system type
System is [amd64]
Using premade plan at [node_build/plans/apple_amd64_plan.json]
@nandub
nandub / mxe-automake-log
Created October 20, 2013 02:46
help2man: can't get `--help' info from automake-1.13
uname -a
Darwin Fernandos-MacBook-Pro.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
git show-branch --list --reflog=1
[refs/heads/master@{0}] (3 hours ago) pull: Fast-forward
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
ProductName: Mac OS X
ProductVersion: 10.8.5
BuildVersion: 12F45
rm -rf '/opt/mxe/tmp-automake'
mkdir -p '/opt/mxe/tmp-automake'
@nandub
nandub / gist:6929334
Last active December 25, 2015 06:09
Latest update from master fails on Mac OS X Lion
cd `/opt/mxe` && git pull
remote: Counting objects: 90, done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 68 (delta 51), reused 32 (delta 16)
Unpacking objects: 100% (68/68), done.
From https://github.com/mxe/mxe
ca7e78d..e6be142 master -> origin/master
Updating ca7e78d..e6be142
Fast-forward
@nandub
nandub / python dtrace
Created January 19, 2013 22:37
python dtrace debugging
read_nocancel(0x6, "odings/ascii.pyR\a\0", 0x1000) = 0 0
close_nocancel(0x6) = 0 0
close_nocancel(0x5) = 0 0
psynch_cvwait(0x7F82A2CE7F58, 0x630100006400, 0x6300) = 0 0
psynch_cvwait(0x7F82A2CE7F58, 0x640100006500, 0x6400) = 0 0
select(0x7, 0x110462040, 0x0, 0x0, 0x110462030) = 0 0
select(0x8, 0x1104E5040, 0x0, 0x0, 0x1104E5030) = 0 0
psynch_cvsignal(0x7F82A2CE7F58, 0x7A0000007B00, 0x7A00) = 257 0
select(0x6, 0x1103DF040, 0x0, 0x0, 0x1103DF030) = 0 0
select(0x9, 0x110568040, 0x0, 0x0, 0x110568030) = 0 0