genodelabs/genode — Issue #52: Build fails for linux_x86
Author: blitz
Created: 2011-12-23 15:26:59+00:00
State: open

Build fails because of missing definitions.

Steps to reproduce:
% ... checkout git head ...
% ./tool/create_builddir linux_x86 BUILD_DIR=build-linux
successfully created build directory at build-linux
% cd build-linux
% make run/demo
using run script /home/julian/src/genode/genode/base-linux/run/env
using run script /home/julian/src/genode/genode/os/run/demo.run
[...]
Library ipc
COMPILE ipc.o
In file included from /home/julian/src/genode/genode/base-linux/src/base/ipc/ipc.cc:50:0:
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h: In function ‘int lx_create_thread(void (*)(void*), void*, void*)’:
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h:397:14: error: ‘CLONE_VM’ was not declared in this scope
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h:397:25: error: ‘CLONE_FS’ was not declared in this scope
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h:397:36: error: ‘CLONE_FILES’ was not declared in this scope
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h:397:50: error: ‘CLONE_SIGHAND’ was not declared in this scope
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h:398:14: error: ‘CLONE_THREAD’ was not declared in this scope
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h:398:29: error: ‘CLONE_SYSVSEM’ was not declared in this scope
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h: In function ‘int lx_create_process(int (*)(void*), void*, void*)’:
/home/julian/src/genode/genode/base-linux/src/platform/linux_syscalls.h:412:14: error: ‘CLONE_VFORK’ was not declared in this scope
make[3]: *** [ipc.o] Error 1
make[2]: *** [ipc.lib] Error 2
make[1]: *** [gen_deps_and_build_targets] Error 2
make[1]: Leaving directory `/home/julian/src/genode/genode/build-linux'
Error: Genode build failed
make: *** [run/demo] Error 252

Environment:
Fedora 16 x86_64
glibc-headers-2.14.90-21
$ /usr/local/genode-gcc/bin/genode-x86-gcc --version
genode-x86-gcc (GCC) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.