[Aoetools-discuss] build error ( gcc 4.8.1, glibc 2.18, kernel 3.10.14)
Brought to you by:
ecashin,
elcapitansam
From: Serge L. <ser...@gm...> - 2013-10-14 21:11:18
|
Hello, I was constructing a new build environment (gcc 4.8.1 , glibc 2.18) and found out that build of aoe6-84 / aoe6-85pre1 fails with the following error: make[1]: Entering directory `/data/tmp/linux-3.10' CC [M] /data/tmp/aoe6-84/linux/drivers/block/aoe/aoedev.o In file included from /data/tmp/aoe6-84/linux/drivers/block/aoe/aoedev.c:15:0: /data/tmp/aoe6-84/linux/drivers/block/aoe/aoe.h:16:0: warning: "DEFINE_SPINLOCK" redefined [enabled by default] #define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED ^ In file included from include/linux/spinlock.h:81:0, from include/linux/seqlock.h:29, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:17, from include/linux/blkdev.h:4, from /data/tmp/aoe6-84/linux/drivers/block/aoe/aoedev.c:8: include/linux/spinlock_types.h:84:0: note: this is the location of the previous definition #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x) ^ In file included from /data/tmp/aoe6-84/linux/drivers/block/aoe/aoedev.c:15:0: /data/tmp/aoe6-84/linux/drivers/block/aoe/aoe.h:16:43: error: 'SPIN_LOCK_UNLOCKED' undeclared here (not in a function) #define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED ^ /data/tmp/aoe6-84/linux/drivers/block/aoe/aoedev.c:26:8: note: in expansion of macro 'DEFINE_SPINLOCK' static DEFINE_SPINLOCK(devlist_lock); ^ make[2]: *** [/data/tmp/aoe6-84/linux/drivers/block/aoe/aoedev.o] Error 1 make[1]: *** [_module_/data/tmp/aoe6-84/linux/drivers/block/aoe] Error 2 Thanks, Serge |