kBuild: Compiling RuntimeR3 - r3/linux/sems-linux.cpp
/usr/include/linux/bitops.h: In function 'int get_bitmask_order(unsigned int)':
/usr/include/linux/bitops.h:15: error: 'fls' was not declared in this scope
/usr/include/linux/bitops.h: In function 'int get_count_order(unsigned int)':
/usr/include/linux/bitops.h:23: error: 'fls' was not declared in this scope
/usr/include/linux/bitops.h: In function 'long unsigned int hweight_long(long unsigned int)':
/usr/include/linux/bitops.h:31: error: 'hweight32' was not declared in this scope
/usr/include/linux/bitops.h:31: error: 'hweight64' was not declared in this scope
/usr/include/linux/bitops.h: In function 'unsigned int fls_long(long unsigned int)':
/usr/include/linux/bitops.h:59: error: 'fls' was not declared in this scope
/usr/include/linux/bitops.h:60: error: 'fls64' was not declared in this scope
/usr/include/asm-x86_64/thread_info.h: In function 'thread_info* current_thread_info()':
/usr/include/asm-x86_64/thread_info.h:61: error: ISO C++ forbids braced-groups within expressions
/usr/include/asm-x86_64/thread_info.h:61: error: invalid conversion from 'void*' to 'thread_info*'
/usr/include/asm-x86_64/current.h: In function 'task_struct* get_current()':
/usr/include/asm-x86_64/current.h:11: error: ISO C++ forbids braced-groups within expressions
/usr/include/asm-x86_64/processor.h: At global scope:
/usr/include/asm-x86_64/processor.h:70: error: 'cpumask_t' does not name a type
/usr/include/linux/calc64.h: In function 'long unsigned int do_div_llr(long long int, long int, long int*)':
/usr/include/linux/calc64.h:25: error: 'do_div' was not declared in this scope
/usr/include/linux/calc64.h: In function 'long int div_long_long_rem_signed(long long int, long int, long int*)':
/usr/include/linux/calc64.h:40: error: 'unlikely' was not declared in this scope
/usr/include/linux/jiffies.h: In function '__u64 jiffies_64_to_clock_t(__u64)':
/usr/include/linux/jiffies.h:417: error: 'do_div' was not declared in this scope
/usr/include/linux/jiffies.h: In function '__u64 nsec_to_clock_t(__u64)':
/usr/include/linux/jiffies.h:433: error: 'do_div' was not declared in this scope
/usr/include/asm-x86_64/semaphore.h: At global scope:
/usr/include/asm-x86_64/semaphore.h:47: error: 'wait_queue_head_t' does not name a type
/usr/include/asm-x86_64/semaphore.h: In function 'void sema_init(semaphore*, int)':
/usr/include/asm-x86_64/semaphore.h:73: error: 'struct semaphore' has no member named 'wait'
/usr/include/asm-x86_64/semaphore.h:73: error: 'init_waitqueue_head' was not declared in this scope
/usr/include/asm-x86_64/semaphore.h: In function 'void down(semaphore*)':
/usr/include/asm-x86_64/semaphore.h:103: error: 'might_sleep' was not declared in this scope
/usr/include/asm-x86_64/semaphore.h: In function 'int down_interruptible(semaphore*)':
/usr/include/asm-x86_64/semaphore.h:127: error: 'might_sleep' was not declared in this scope
/usr/include/linux/completion.h: At global scope:
/usr/include/linux/completion.h:15: error: 'wait_queue_head_t' does not name a type
/usr/include/linux/completion.h: In function 'void init_completion(completion*)':
/usr/include/linux/completion.h:27: error: 'struct completion' has no member named 'wait'
/usr/include/linux/completion.h:27: error: 'init_waitqueue_head' was not declared in this scope
/usr/include/linux/unistd.h: At global scope:
/usr/include/linux/unistd.h:4: error: declaration of 'int* __errno_location()' throws different exceptions
/usr/include/gentoo-multilib/amd64/bits/errno.h:43: error: from previous declaration 'int* __errno_location() throw ()'
/usr/include/linux/seccomp.h: In function 'void secure_computing(int)':
/usr/include/linux/seccomp.h:18: error: 'unlikely' was not declared in this scope
/usr/include/linux/seccomp.h: In function 'int has_secure_computing(thread_info*)':
/usr/include/linux/seccomp.h:24: error: 'unlikely' was not declared in this scope
/usr/include/linux/ktime.h: In function 'ktime_t ktime_set(long int, long unsigned int)':
/usr/include/linux/ktime.h:136: error: expected primary-expression before ')' token
/usr/include/linux/ktime.h:136: error: expected ';' before '{' token
/usr/include/linux/ktime.h:136: error: expected primary-expression before '.' token
/usr/include/linux/ktime.h:136: error: expected primary-expression before '{' token
/usr/include/linux/ktime.h:136: error: expected `;' before '{' token
/usr/include/linux/ktime.h: In function 'ktime_t timespec_to_ktime(timespec)':
/usr/include/linux/ktime.h:204: error: expected primary-expression before ')' token
/usr/include/linux/ktime.h:204: error: expected ';' before '{' token
/usr/include/linux/ktime.h:204: error: expected primary-expression before '.' token
/usr/include/linux/ktime.h:204: error: expected primary-expression before '{' token
/usr/include/linux/ktime.h:204: error: expected `;' before '{' token
/usr/include/linux/ktime.h: In function 'ktime_t timeval_to_ktime(timeval)':
/usr/include/linux/ktime.h:217: error: expected primary-expression before ')' token
/usr/include/linux/ktime.h:217: error: expected ';' before '{' token
/usr/include/linux/ktime.h:217: error: expected primary-expression before '.' token
/usr/include/linux/ktime.h:217: error: expected primary-expression before '{' token
/usr/include/linux/ktime.h:217: error: expected `;' before '{' token
/usr/include/linux/ktime.h: In function 'timespec ktime_to_timespec(ktime_t)':
/usr/include/linux/ktime.h:230: error: expected primary-expression before 'struct'
/usr/include/linux/ktime.h:230: error: expected `)' before 'struct'
/usr/include/linux/ktime.h: In function 'timeval ktime_to_timeval(ktime_t)':
/usr/include/linux/ktime.h:243: error: expected primary-expression before 'struct'
/usr/include/linux/ktime.h:243: error: expected `)' before 'struct'
kmk[3]: *** [/home/mike/src/vbox/out/linux.amd64/release/obj/src/VBox/Runtime/RuntimeR3/r3/linux/sems-linux.o] Error 1
The failing command:
@g++ -c -O2 -g -Wall -pedantic -Wno-long-long -Wno-trigraphs -Wno-variadic-macros -pipe -O2 -fno-omit-frame-pointer -fno-strict-aliasing -I/home/mike/src/vbox/src/libs/liblzf-1.51 -I/home/mike/src/vbox/include -I/home/mike/src/vbox/src/VBox/Runtime -I/home/mike/src/vbox/out/linux.amd64/release -Iinclude -DVBOX -DVBOX_OSE -D__LINUX__ -D_FILE_OFFSET_BITS=64 -D__AMD64__ -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=32 -DIN_RT_R3 -DIN_SUP_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -Wp,-MD,/home/mike/src/vbox/out/linux.amd64/release/obj/src/VBox/Runtime/RuntimeR3/r3/linux/sems-linux.o.dep -Wp,-MT,/home/mike/src/vbox/out/linux.amd64/release/obj/src/VBox/Runtime/RuntimeR3/r3/linux/sems-linux.o -Wp,-MP -o /home/mike/src/vbox/out/linux.amd64/release/obj/src/VBox/Runtime/RuntimeR3/r3/linux/sems-linux.o /home/mike/src/vbox/src/VBox/Runtime/r3/linux/sems-linux.cpp
kmk[3]: Leaving directory `/home/mike/src/vbox/src/VBox/Runtime'
kmk[2]: *** [pass_libraries_before] Error 2
kmk[2]: Leaving directory `/home/mike/src/vbox/src/VBox'
kmk[1]: *** [pass_libraries_before] Error 2
kmk[1]: Leaving directory `/home/mike/src/vbox/src'
kmk: *** [pass_libraries_before] Error 2