読者です 読者をやめる 読者になる 読者になる

Arch LinuxでOSvのビルドを試す

osv

Arch Linuxでビルドしたいものだなと思い、いくつか試した結果、mrubyのイメージは作ることができた( ´∀`)bグッ!

makeはこのようにbuild_envを付ける。

masami@saga:~/codes/osv (master)$ make build_env=host image=mruby

で、しばらく待つとビルドが無事に成功。

Adding /usr/lib/libgcc_s.so.1...
Adding /usr/lib/libboost_filesystem-mt.so.1.53.0...
  IMGEDIT usr.img
rm tests/tst-chdir.o tests/tst-ring-spsc-wraparound.o tests/misc-bsd-callout.o tests/misc-console.o tests/tst-readdir.o tests/tst-utimes.o java/java.o tests/tst-epoll.o tests/misc-tcp-close-without-reading.o java/jni/monitor.o tests/tst-fs-link.o tests/tst-concurrent-init.o tests/misc-sockets.o tests/libstatic-thread-variable.o tests/tst-tcp-listen.o tests/tst-vblk.o tests/misc-tcp-hash-srv.o tests/misc-tcp.o tests/misc-tcp-sendonly.o tests/misc-fsx.o tests/tst-sigwait.o tests/misc-bdev-rw.o tests/misc-leak.o tests/tst-remove.o tests/tst-fpu.o tools/ifconfig/ifconfig.o tests/tst-static-thread-variable.o tests/tst-hello.o tests/tst-promise.o tests/misc-scheduler.o java/jni/balloon.o tests/tst-tracepoint.o tests/tst-zfs-mount.o tests/tst-solaris-taskq.o tests/tst-elf-permissions.o tests/misc-lfring.o java/jni/stty.o tests/tst-condvar.o tests/misc-lock-perf.o tests/tst-memmove.o tests/testrunner.o tests/misc-bdev-write.o tests/tst-mmap-file.o tests/misc-zfs-io.o tests/misc-mutex.o tests/tst-nway-merger.o tests/misc-random.o tests/tst-truncate.o tests/tst-ramdisk.o tests/tst-hub.o tests/tst-resolve.o tests/tst-sleep.o tests/tst-vfs.o tests/misc-ctxsw.o tests/misc-panic.o tests/tst-commands.o tests/misc-urandom.o tests/tst-threadcomplete.o tests/tst-async.o tests/tst-af-local.o tests/tst-align.o tests/tst-clock.o tests/tst-timerfd.o tests/misc-printf.o tests/tst-utimensat.o tests/misc-free-perf.o tests/misc-loadbalance.o tests/misc-readbench.o java/jni/networking.o tests/tst-kill.o tests/tst-cxxlocale.o tests/misc-zfs-arc.o tests/tst-read.o tests/tst-pipe.o tests/tst-libc-locking.o tests/misc-zfs-disk.o tests/tst-futimesat.o tests/tst-strerror_r.o tests/tst-symlink.o tests/tst-stat.o tests/tst-uio.o tests/tst-bsd-evh.o tests/tst-queue-mpsc.o tests/tst-yield.o java/jni/power.o tests/misc-wake.o java/jni/elf-loader.o java/jni/tracepoint.o tests/tst-timer-set.o tests/tst-poll.o tests/tst-wait-for.o tests/misc-mmap-anon-perf.o tests/misc-fs-stress.o tests/tst-dlfcn.o tools/route/lsroute.o tests/tst-mmap.o tests/tst-huge.o tests/tst-sampler.o tests/tst-pthread.o tests/tst-except.o tests/tst-pthread-clock.o tests/misc-mmap-big-file.o tests/tst-bsd-taskqueue.o tests/tst-bsd-tcp1.o tests/tst-rcu-list.o tests/tst-rename.o tests/tst-bitset-iter.o tests/tst-preempt.o tests/misc-malloc.o tests/tst-bsd-kthread.o tests/tst-shm.o tests/misc-procfs.o tests/tst-tcp-nbwrite.o tests/misc-memcpy.o tests/tst-fallocate.o tests/misc-bdev-wlatency.o tests/tst-dns-resolver.o
make[1]: Leaving directory '/home/masami/codes/osv/build/release.x64'

見ての通りmodifyなしでイケてます。

masami@saga:~/codes/osv (master)$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        modules/tests/usr.manifest

nothing added to commit but untracked files present (use "git add" to track)

ちなみに環境はこう。dockerもkvmも使ってない素のArch Linux環境です。

masami@saga:~/codes/osv (master)$ uname -a
Linux saga 3.16.0-rc2-tip+ #1 SMP PREEMPT Thu Jun 26 23:24:41 JST 2014 x86_64 GNU/Linux

実行するとこのように。

masami@saga:~/codes/osv (master)$ ./scripts/run.py
OSv v0.09-279-g059f3f9
eth0: 192.168.122.15
mruby-eshell

$ ls
[".", "..", "tools", "tmp", "zfs.so", "libuutil.so", "dev", "usr", "etc", "zpool.so", "libzfs.so", "proc"]
$

ちなみにmake build_env=hostだとsnmp.acl.template...のとこでしばらく止まっててTOPで見てたらステータスSで寝てるっぽかったので中断した。。。

Adding /usr/lib/jvm/java/jre/lib/zi/Asia/Kathmandu...
Adding /usr/lib/jvm/java/jre/lib/zi/Asia/Ho_Chi_Minh...
Adding /usr/lib/jvm/java/jre/lib/zi/Etc/GMT+7...
Adding /usr/lib/jvm/java/jre/lib/zi/America/Guatemala...
Adding /usr/lib/jvm/java/jre/lib/zi/SystemV/CST6...
Adding /usr/lib/jvm/java/jre/lib/zi/Asia/Manila...
Adding /usr/lib/jvm/java/jre/lib/zi/Asia/Tashkent...
Adding /usr/lib/jvm/java/jre/lib/zi/Pacific/Midway...
Adding /usr/lib/jvm/java/jre/lib/zi/Africa/Tunis...
Adding /usr/lib/jvm/java/jre/lib/zi/Europe/Sofia...
Adding /usr/lib/jvm/java/jre/lib/zi/America/Yellowknife...
Adding /usr/lib/jvm/java/jre/lib/management/snmp.acl.template...