Skip to content

Instantly share code, notes, and snippets.

@J5lx
Created November 7, 2016 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J5lx/68c196b73920a90a38e9cc01c9acc2ec to your computer and use it in GitHub Desktop.
Save J5lx/68c196b73920a90a38e9cc01c9acc2ec to your computer and use it in GitHub Desktop.
Log of failed DKMS build of the Darling kernel module with a realtime kernel
DKMS make.log for darling-mach-r25.0c2da6e for kernel 4.8.6-rt5-1-rt (x86_64)
Mon Nov 7 23:04:56 CET 2016
make: Entering directory '/usr/lib/modules/4.8.6-rt5-1-rt/build'
CC [M] /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.o
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:27:0: warning: "rwlock_init" redefined
# define rwlock_init(lock) \
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:8:0: note: this is the location of the previous definition
#define rwlock_init(rwl) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:61:0: warning: "read_trylock" redefined
#define read_trylock(lock) __cond_lock(lock, _raw_read_trylock(lock))
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:27:0: note: this is the location of the previous definition
#define read_trylock(lock) __cond_lock(lock, rt_read_trylock(lock))
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:62:0: warning: "write_trylock" redefined
#define write_trylock(lock) __cond_lock(lock, _raw_write_trylock(lock))
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:28:0: note: this is the location of the previous definition
#define write_trylock(lock) __cond_lock(lock, rt_write_trylock(lock))
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:64:0: warning: "write_lock" redefined
#define write_lock(lock) _raw_write_lock(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:55:0: note: this is the location of the previous definition
#define write_lock(lock) rt_write_lock(lock)
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:65:0: warning: "read_lock" redefined
#define read_lock(lock) _raw_read_lock(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:45:0: note: this is the location of the previous definition
#define read_lock(lock) rt_read_lock(lock)
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:69:0: warning: "read_lock_irqsave" redefined
#define read_lock_irqsave(lock, flags) \
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:33:0: note: this is the location of the previous definition
#define read_lock_irqsave(lock, flags) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:74:0: warning: "write_lock_irqsave" redefined
#define write_lock_irqsave(lock, flags) \
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:39:0: note: this is the location of the previous definition
#define write_lock_irqsave(lock, flags) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:95:0: warning: "read_lock_irq" redefined
#define read_lock_irq(lock) _raw_read_lock_irq(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:53:0: note: this is the location of the previous definition
#define read_lock_irq(lock) read_lock(lock)
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:96:0: warning: "read_lock_bh" redefined
#define read_lock_bh(lock) _raw_read_lock_bh(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:47:0: note: this is the location of the previous definition
#define read_lock_bh(lock) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:97:0: warning: "write_lock_irq" redefined
#define write_lock_irq(lock) _raw_write_lock_irq(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:63:0: note: this is the location of the previous definition
#define write_lock_irq(lock) write_lock(lock)
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:98:0: warning: "write_lock_bh" redefined
#define write_lock_bh(lock) _raw_write_lock_bh(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:57:0: note: this is the location of the previous definition
#define write_lock_bh(lock) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:99:0: warning: "read_unlock" redefined
#define read_unlock(lock) _raw_read_unlock(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:65:0: note: this is the location of the previous definition
#define read_unlock(lock) rt_read_unlock(lock)
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:100:0: warning: "write_unlock" redefined
#define write_unlock(lock) _raw_write_unlock(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:75:0: note: this is the location of the previous definition
#define write_unlock(lock) rt_write_unlock(lock)
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:101:0: warning: "read_unlock_irq" redefined
#define read_unlock_irq(lock) _raw_read_unlock_irq(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:73:0: note: this is the location of the previous definition
#define read_unlock_irq(lock) read_unlock(lock)
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:102:0: warning: "write_unlock_irq" redefined
#define write_unlock_irq(lock) _raw_write_unlock_irq(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:83:0: note: this is the location of the previous definition
#define write_unlock_irq(lock) write_unlock(lock)
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:104:0: warning: "read_unlock_irqrestore" redefined
#define read_unlock_irqrestore(lock, flags) \
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:85:0: note: this is the location of the previous definition
#define read_unlock_irqrestore(lock, flags) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:109:0: warning: "read_unlock_bh" redefined
#define read_unlock_bh(lock) _raw_read_unlock_bh(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:67:0: note: this is the location of the previous definition
#define read_unlock_bh(lock) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:111:0: warning: "write_unlock_irqrestore" redefined
#define write_unlock_irqrestore(lock, flags) \
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:92:0: note: this is the location of the previous definition
#define write_unlock_irqrestore(lock, flags) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:116:0: warning: "write_unlock_bh" redefined
#define write_unlock_bh(lock) _raw_write_unlock_bh(lock)
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:77:0: note: this is the location of the previous definition
#define write_unlock_bh(lock) \
In file included from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:23:0:
./include/linux/rwlock.h:118:0: warning: "write_trylock_irqsave" redefined
#define write_trylock_irqsave(lock, flags) \
In file included from ./include/linux/spinlock.h:275:0,
from ./include/linux/mutex_rt.h:11,
from ./include/linux/mutex.h:30,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
./include/linux/rwlock_rt.h:30:0: note: this is the location of the previous definition
#define write_trylock_irqsave(lock, flags) \
In file included from ./include/linux/spinlock_types.h:20:0,
from ./include/linux/mutex.h:15,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_port.h:24,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.h:23,
from /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:21:
/usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c: In function 'ipc_port_make_task':
./include/linux/rwlock_types_rt.h:27:2: error: expected expression before '{' token
{ .lock = __RT_MUTEX_INITIALIZER_SAVE_STATE(name.lock), \
^
./include/linux/rwlock.h:28:17: note: in expansion of macro '__RW_LOCK_UNLOCKED'
do { *(lock) = __RW_LOCK_UNLOCKED(lock); } while (0)
^~~~~~~~~~~~~~~~~~
/usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.c:52:2: note: in expansion of macro 'rwlock_init'
rwlock_init(&task->threads_lock);
^~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:290: /usr/src/darling-mach-r25.0c2da6e/lkm/ipc_server.o] Error 1
make: *** [Makefile:1471: _module_/usr/src/darling-mach-r25.0c2da6e/lkm] Error 2
make: Leaving directory '/usr/lib/modules/4.8.6-rt5-1-rt/build'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment