{"action":"created","issue":{"url":"https://api.github.com/repos/libos-nuse/lkl-linux/issues/2","repository_url":"https://api.github.com/repos/libos-nuse/lkl-linux","labels_url":"https://api.github.com/repos/libos-nuse/lkl-linux/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/libos-nuse/lkl-linux/issues/2/comments","events_url":"https://api.github.com/repos/libos-nuse/lkl-linux/issues/2/events","html_url":"https://github.com/libos-nuse/lkl-linux/issues/2","id":126948420,"number":2,"title":"Build problem on branch rump-hypcall","user":{"login":"pscollins","id":3996875,"avatar_url":"https://avatars.githubusercontent.com/u/3996875?v=3","gravatar_id":"","url":"https://api.github.com/users/pscollins","html_url":"https://github.com/pscollins","followers_url":"https://api.github.com/users/pscollins/followers","following_url":"https://api.github.com/users/pscollins/following{/other_user}","gists_url":"https://api.github.com/users/pscollins/gists{/gist_id}","starred_url":"https://api.github.com/users/pscollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pscollins/subscriptions","organizations_url":"https://api.github.com/users/pscollins/orgs","repos_url":"https://api.github.com/users/pscollins/repos","events_url":"https://api.github.com/users/pscollins/events{/privacy}","received_events_url":"https://api.github.com/users/pscollins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-01-15T20:10:33Z","updated_at":"2016-07-12T23:59:29Z","closed_at":null,"body":"I'm looking into the rump-hypcall branch since it seems to be the most updated from master; I get the following error (I `make clean`'d and `make mrproper`'d after my previous failed builds), following the build instructions from the main lkl repo:\r\n\r\n    ➜  libos-lkl-linux git:(rump-hypcall) cd tools/lkl \r\n    ➜  lkl git:(rump-hypcall) make RUMP_PREFIX=~/tcp-userspace/frankenlibc/librumpuser\r\n    make -C ../.. ARCH=lkl defconfig\r\n    make[1]: Entering directory `/usr/local/google/home/pscollins/tcp-userspace/libos-lkl-linux'\r\n      HOSTCC  scripts/basic/fixdep\r\n      HOSTCC  scripts/kconfig/conf.o\r\n      SHIPPED scripts/kconfig/zconf.tab.c\r\n      SHIPPED scripts/kconfig/zconf.lex.c\r\n      SHIPPED scripts/kconfig/zconf.hash.c\r\n      HOSTCC  scripts/kconfig/zconf.tab.o\r\n      HOSTLD  scripts/kconfig/conf\r\n    scripts/kconfig/conf  --defconfig Kconfig\r\n    kernel/time/Kconfig:155:warning: range is invalid\r\n    ./arch/lkl/defconfig:96:warning: override: reassigning to symbol NET\r\n    ./arch/lkl/defconfig:97:warning: override: reassigning to symbol INET\r\n    ./arch/lkl/defconfig:99:warning: override: reassigning to symbol NETDEVICES\r\n    ./arch/lkl/defconfig:102:warning: override: reassigning to symbol VIRTIO_NET\r\n    ./arch/lkl/defconfig:104:warning: override: reassigning to symbol EPOLL\r\n    #\r\n    # configuration written to .config\r\n    #\r\n    make[1]: Leaving directory `/usr/local/google/home/pscollins/tcp-userspace/libos-lkl-linux'\r\n    make -C ../.. ARCH=lkl  install INSTALL_PATH=/usr/local/google/home/pscollins/tcp-userspace/libos-lkl-linux/tools/lkl\r\n    make[1]: Entering directory `/usr/local/google/home/pscollins/tcp-userspace/libos-lkl-linux'\r\n    scripts/kconfig/conf  --silentoldconfig Kconfig\r\n    kernel/time/Kconfig:155:warning: range is invalid\r\n    make[1]: Leaving directory `/usr/local/google/home/pscollins/tcp-userspace/libos-lkl-linux'\r\n    make[1]: Entering directory `/usr/local/google/home/pscollins/tcp-userspace/libos-lkl-linux'\r\n      CHK     include/config/kernel.release\r\n      UPD     include/config/kernel.release\r\n      WRAP    arch/lkl/include/generated/asm/atomic.h\r\n      WRAP    arch/lkl/include/generated/asm/barrier.h\r\n      WRAP    arch/lkl/include/generated/asm/bitops.h\r\n      WRAP    arch/lkl/include/generated/asm/bug.h\r\n      WRAP    arch/lkl/include/generated/asm/bugs.h\r\n      WRAP    arch/lkl/include/generated/asm/cache.h\r\n      WRAP    arch/lkl/include/generated/asm/cacheflush.h\r\n      WRAP    arch/lkl/include/generated/asm/checksum.h\r\n      WRAP    arch/lkl/include/generated/asm/cmpxchg-local.h\r\n      WRAP    arch/lkl/include/generated/asm/cmpxchg.h\r\n      WRAP    arch/lkl/include/generated/asm/cputime.h\r\n      WRAP    arch/lkl/include/generated/asm/current.h\r\n      WRAP    arch/lkl/include/generated/asm/delay.h\r\n      WRAP    arch/lkl/include/generated/asm/device.h\r\n      WRAP    arch/lkl/include/generated/asm/div64.h\r\n      WRAP    arch/lkl/include/generated/asm/emergency-restart.h\r\n      WRAP    arch/lkl/include/generated/asm/errno.h\r\n      WRAP    arch/lkl/include/generated/asm/exec.h\r\n      WRAP    arch/lkl/include/generated/asm/ftrace.h\r\n      WRAP    arch/lkl/include/generated/asm/futex.h\r\n      WRAP    arch/lkl/include/generated/asm/hardirq.h\r\n      WRAP    arch/lkl/include/generated/asm/hw_irq.h\r\n      WRAP    arch/lkl/include/generated/asm/ioctl.h\r\n      WRAP    arch/lkl/include/generated/asm/ipcbuf.h\r\n      WRAP    arch/lkl/include/generated/asm/irq_regs.h\r\n      WRAP    arch/lkl/include/generated/asm/irqflags.h\r\n      WRAP    arch/lkl/include/generated/asm/irq_work.h\r\n      WRAP    arch/lkl/include/generated/asm/kdebug.h\r\n      WRAP    arch/lkl/include/generated/asm/kmap_types.h\r\n      WRAP    arch/lkl/include/generated/asm/linkage.h\r\n      WRAP    arch/lkl/include/generated/asm/local.h\r\n      WRAP    arch/lkl/include/generated/asm/local64.h\r\n      WRAP    arch/lkl/include/generated/asm/mcs_spinlock.h\r\n      WRAP    arch/lkl/include/generated/asm/mmu.h\r\n      WRAP    arch/lkl/include/generated/asm/mmu_context.h\r\n      WRAP    arch/lkl/include/generated/asm/module.h\r\n      WRAP    arch/lkl/include/generated/asm/msgbuf.h\r\n      WRAP    arch/lkl/include/generated/asm/page.h\r\n      WRAP    arch/lkl/include/generated/asm/param.h\r\n      WRAP    arch/lkl/include/generated/asm/parport.h\r\n      WRAP    arch/lkl/include/generated/asm/pci_iomap.h\r\n      WRAP    arch/lkl/include/generated/asm/percpu.h\r\n      WRAP    arch/lkl/include/generated/asm/pgalloc.h\r\n      WRAP    arch/lkl/include/generated/asm/poll.h\r\n      WRAP    arch/lkl/include/generated/asm/preempt.h\r\n      WRAP    arch/lkl/include/generated/asm/resource.h\r\n      WRAP    arch/lkl/include/generated/asm/rwsem.h\r\n      WRAP    arch/lkl/include/generated/asm/scatterlist.h\r\n      WRAP    arch/lkl/include/generated/asm/seccomp.h\r\n      WRAP    arch/lkl/include/generated/asm/sections.h\r\n      WRAP    arch/lkl/include/generated/asm/segment.h\r\n      WRAP    arch/lkl/include/generated/asm/sembuf.h\r\n      WRAP    arch/lkl/include/generated/asm/serial.h\r\n      WRAP    arch/lkl/include/generated/asm/shmbuf.h\r\n      WRAP    arch/lkl/include/generated/asm/siginfo.h\r\n      WRAP    arch/lkl/include/generated/asm/signal.h\r\n      WRAP    arch/lkl/include/generated/asm/simd.h\r\n      WRAP    arch/lkl/include/generated/asm/sizes.h\r\n      WRAP    arch/lkl/include/generated/asm/socket.h\r\n      WRAP    arch/lkl/include/generated/asm/sockios.h\r\n      WRAP    arch/lkl/include/generated/asm/stat.h\r\n      WRAP    arch/lkl/include/generated/asm/statfs.h\r\n      WRAP    arch/lkl/include/generated/asm/string.h\r\n      WRAP    arch/lkl/include/generated/asm/swab.h\r\n      WRAP    arch/lkl/include/generated/asm/switch_to.h\r\n      WRAP    arch/lkl/include/generated/asm/termbits.h\r\n      WRAP    arch/lkl/include/generated/asm/termios.h\r\n      WRAP    arch/lkl/include/generated/asm/time.h\r\n      WRAP    arch/lkl/include/generated/asm/timex.h\r\n      WRAP    arch/lkl/include/generated/asm/tlb.h\r\n      WRAP    arch/lkl/include/generated/asm/tlbflush.h\r\n      WRAP    arch/lkl/include/generated/asm/topology.h\r\n      WRAP    arch/lkl/include/generated/asm/trace_clock.h\r\n      WRAP    arch/lkl/include/generated/asm/unaligned.h\r\n      WRAP    arch/lkl/include/generated/asm/vga.h\r\n      WRAP    arch/lkl/include/generated/asm/word-at-a-time.h\r\n      WRAP    arch/lkl/include/generated/asm/xor.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/auxvec.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/elf.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/errno.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/fcntl.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/ioctl.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/ioctls.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/ipcbuf.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/kvm_para.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/mman.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/msgbuf.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/param.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/poll.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/posix_types.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/ptrace.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/resource.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/sembuf.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/setup.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/shmbuf.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/shmparam.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/siginfo.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/signal.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/socket.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/sockios.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/stat.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/statfs.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/swab.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/termbits.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/termios.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/timex.h\r\n      WRAP    arch/lkl/include/generated/uapi/asm/types.h\r\n      CHK     include/generated/uapi/linux/version.h\r\n      UPD     include/generated/uapi/linux/version.h\r\n      CHK     include/generated/utsrelease.h\r\n      UPD     include/generated/utsrelease.h\r\n      CC      kernel/bounds.s\r\n      CHK     include/generated/bounds.h\r\n      UPD     include/generated/bounds.h\r\n      CHK     include/generated/timeconst.h\r\n      UPD     include/generated/timeconst.h\r\n      CC      arch/lkl/kernel/asm-offsets.s\r\n      CHK     include/generated/asm-offsets.h\r\n      UPD     include/generated/asm-offsets.h\r\n      CALL    scripts/checksyscalls.sh\r\n      CC      scripts/mod/empty.o\r\n      HOSTCC  scripts/mod/mk_elfconfig\r\n      MKELF   scripts/mod/elfconfig.h\r\n      HOSTCC  scripts/mod/modpost.o\r\n      CC      scripts/mod/devicetable-offsets.s\r\n      GEN     scripts/mod/devicetable-offsets.h\r\n      HOSTCC  scripts/mod/file2alias.o\r\n      HOSTCC  scripts/mod/sumversion.o\r\n      HOSTLD  scripts/mod/modpost\r\n      HOSTCC  scripts/kallsyms\r\n      CC      init/main.o\r\n    In file included from ./arch/lkl/include/asm/pgtable.h:12:0,\r\n                     from include/linux/mm.h:55,\r\n                     from include/linux/ring_buffer.h:5,\r\n                     from include/linux/trace_events.h:5,\r\n                     from include/trace/syscall.h:6,\r\n                     from include/linux/syscalls.h:81,\r\n                     from init/main.c:18:\r\n    ./arch/lkl/include/asm/io.h: In function ‘__raw_readb’:\r\n    ./arch/lkl/include/asm/io.h:15:2: error: implicit declaration of function ‘rumpuser_iomem_access’ [-Werror=implicit-function-declaration]\r\n      ret = rumpuser_iomem_access(addr, &value, sizeof(value), 0);\r\n      ^\r\n    ./arch/lkl/include/asm/io.h: In function ‘ioremap’:\r\n    ./arch/lkl/include/asm/io.h:100:2: error: implicit declaration of function ‘rumpuser_ioremap’ [-Werror=implicit-function-declaration]\r\n      return rumpuser_ioremap(offset, size);\r\n      ^\r\n    ./arch/lkl/include/asm/io.h:100:2: warning: return makes pointer from integer without a cast [enabled by default]\r\n    cc1: some warnings being treated as errors\r\n    make[2]: *** [init/main.o] Error 1\r\n    make[1]: *** [init] Error 2\r\n    make[1]: Leaving directory `/usr/local/google/home/pscollins/tcp-userspace/libos-lkl-linux'\r\n    make: *** [lib/lkl.o] Error 2\r\n    \r\n\r\nI can't find references to this function anywhere online, is there a missing file that should be committed? "},"comment":{"url":"https://api.github.com/repos/libos-nuse/lkl-linux/issues/comments/232217086","html_url":"https://github.com/libos-nuse/lkl-linux/issues/2#issuecomment-232217086","issue_url":"https://api.github.com/repos/libos-nuse/lkl-linux/issues/2","id":232217086,"user":{"login":"thehajime","id":1279306,"avatar_url":"https://avatars.githubusercontent.com/u/1279306?v=3","gravatar_id":"","url":"https://api.github.com/users/thehajime","html_url":"https://github.com/thehajime","followers_url":"https://api.github.com/users/thehajime/followers","following_url":"https://api.github.com/users/thehajime/following{/other_user}","gists_url":"https://api.github.com/users/thehajime/gists{/gist_id}","starred_url":"https://api.github.com/users/thehajime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehajime/subscriptions","organizations_url":"https://api.github.com/users/thehajime/orgs","repos_url":"https://api.github.com/users/thehajime/repos","events_url":"https://api.github.com/users/thehajime/events{/privacy}","received_events_url":"https://api.github.com/users/thehajime/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T23:59:29Z","updated_at":"2016-07-12T23:59:29Z","body":"> I hope it is okay to hijack this issue. I have also tried building that branch and failed :-)\r\n> The thing, is that I do not want frankenlibc. Can this branch be used to get a library-LKL with a rump-syscallproxy server?\r\n\r\nsyscall proxy is currently disabled (though already implemented).\r\nI haven't come up with the nice integration with this branch and syscall proxy so far; maybe we need to link rump hypcall and syscall proxy from src-netbsd repository as the previous implementation (libos-nuse/linux-libos-tools) does.\r\n\r\n> The only requirement I have is the syscall proxy, apart from that I want to use LKL as a library as is. That means I want to be able to access both the host and the LKL-syscalls in the same process. Thus frankenlibc is not what I want, if I understand it correctly.\r\n\r\n\r\nyou're right - if you need to call the host syscalls as well as lkl syscalls, you can't use frankenlibc as it is.\r\n"}}
{"actor":{"display_login":"thehajime"}}