ARM(BeagleBoard)向けTD-agent.debが欲しい

ということで作ってみた.

新しいtd-agentも出たみたいですし.

ここから最新版を落としてきます.
次に,apt-getで必要なモノをインストール

  • pbuilder
  • dh-make

足りないのではまってました
であとはtd-agentのREADMEに書かれてるように進めます.

$ ./make-deb-init.sh
$ ./make-deb.sh

うまく行ってると思ってたら…

.ext/include/armv7l-linux-eabi/ruby/config.h updated
ruby library version = 1.9.1
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-1.9.pc
make[1]: Leaving directory `/tmp/buildd/td-agent-1.1.4'
   debian/rules override_dh_auto_build
make[1]: Entering directory `/tmp/buildd/td-agent-1.1.4'
make
make[2]: Entering directory `/tmp/buildd/td-agent-1.1.4'
Makefile:772: warning: overriding commands for target `dist'
Makefile:530: warning: ignoring old commands for target `dist'
Making all in deps/jemalloc
make[3]: Entering directory `/tmp/buildd/td-agent-1.1.4/deps/jemalloc'
gcc -g -O2 -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclu
de -Iinclude -o src/jemalloc.pic.o src/jemalloc.c
In file included from include/jemalloc/internal/jemalloc_internal.h:388,
                 from src/jemalloc.c:2:
include/jemalloc/internal/atomic.h:164:4: error: #error "Missing implementation 
for 32-bit atomic operations"
src/jemalloc.c: In function 'wrtmessage':
src/jemalloc.c:103: warning: ignoring return value of 'write', declared with att
ribute warn_unused_result
make[3]: *** [src/jemalloc.pic.o] Error 1
make[3]: Leaving directory `/tmp/buildd/td-agent-1.1.4/deps/jemalloc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/td-agent-1.1.4'
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/tmp/buildd/td-agent-1.1.4'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package

と出てきたので今日はこれまで(link).
ちょっと調べてみるとRedisでも同様のビルドエラーが出てるみたい.
多分土曜日にやるかも.