Skip to contentSkip to conversation

More uml build failures on 2.16.19-rc3 and 2.6.18.1

DISCUSSION Mitch 3 participants 3 messages Oct 24, 2006

lore
Share & tools
lore

Mitch

author
#0 lore raw

I'm still having build failures on 2.6.18.1 and even the latest -rc3

Anyone ?
M

home /usr/src/sources/kernel/linux-2.6.18% !ma
make ARCH=um
SYMLINK arch/um/include/kern_constants.h
CC arch/um/sys-i386/user-offsets.s
arch/um/sys-i386/user-offsets.c: In function 'foo':
arch/um/sys-i386/user-offsets.c:19: warning: implicit declaration of function 'offsetof' arch/um/sys-i386/user-offsets.c:19: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:20: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:21: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:22: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:23: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:24: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:25: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:26: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:27: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:28: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:29: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:30: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:31: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:32: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:33: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:34: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:35: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:36: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:37: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:38: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:39: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:40: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:41: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:42: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:43: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:44: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:45: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:46: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:47: error: syntax error before 'struct' arch/um/sys-i386/user-offsets.c:48: error: syntax error before 'struct' make[1]: *** [arch/um/sys-i386/user-offsets.s] Error 1
make: *** [arch/um/sys-i386/user-offsets.s] Error 2

#1 lore raw
Quoted 1 line · Mitch

I'm still having build failures on 2.6.18.1 and even the latest -rc3

Did you remember to do make mrproper? If yes, can we have your .config, please.

#2 lore raw
In reply to Mitch
Quoted 9 lines · Mitch

I'm still having build failures on 2.6.18.1 and even the latest -rc3

home /usr/src/sources/kernel/linux-2.6.18% !ma
make ARCH=um
SYMLINK arch/um/include/kern_constants.h
CC arch/um/sys-i386/user-offsets.s
arch/um/sys-i386/user-offsets.c: In function 'foo':
arch/um/sys-i386/user-offsets.c:19: warning: implicit declaration of function 'offsetof'

The last time I saw this, someone had replaced the glibc kernel headers with a link to include/ within a kernel pool. There, offsetof is wrapped in #ifdef __KERNEL__, and inaccessible to userspace.

The glibc headers have a usable offsetof, so fix that, and UML should build.

Jeff