3.10-rc1: commit ccdfcc398594 broke uClibc build.
Subsystems (2)
The #include <linux/kernel.h> added to include/uapi/linux/netlink.h causes the uClibc build to go:
In file included from include/linux/kernel.h:4,
from include/linux/netlink.h:4,
from include/linux/rtnetlink.h:5,
from libc/inet/netlinkaccess.h:27,
from libc/inet/if_index.c:37:include/linux/sysinfo.h:8: error: expected specifier-qualifier-list before '__kernel_long_t'
make: *** [libc/inet/if_index.o] Error 1
If I comment out that line, it builds fine. The kernel builds (for my config) either way.
Rob
Widening the audience...
Quoted 8 lines · Rob Landley
The #include <
linux/kernel.h> added toinclude/uapi/linux/netlink.hcauses the uClibc build to go:In file included from
include/linux/kernel.h:4,from include/linux/netlink.h:4, from include/linux/rtnetlink.h:5, from libc/inet/netlinkaccess.h:27, from libc/inet/if_index.c:37:
Quoted 6 lines
include/linux/sysinfo.h:8: error: expected specifier-qualifier-list before '__kernel_long_t'
make: *** [libc/inet/if_index.o] Error 1If I comment out that line, it builds fine. The kernel builds (for my config) either way.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 1 line · Geert Uytterhoeven
Widening the audience...
Do, linux-net is no more...
Quoted 13 lines · Rob Landley
Quoted 12 lines
The #include <
linux/kernel.h> added toinclude/uapi/linux/netlink.hcauses the uClibc build to go:In file included from
include/linux/kernel.h:4,from include/linux/netlink.h:4, from include/linux/rtnetlink.h:5, from libc/inet/netlinkaccess.h:27, from libc/inet/if_index.c:37:
include/linux/sysinfo.h:8: error: expected specifier-qualifier-list before '__kernel_long_t'
make: *** [libc/inet/if_index.o] Error 1
Quoted 2 lines
Quoted 2 lines
If I comment out that line, it builds fine. The kernel builds (for my config) either way.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 14 lines · Geert Uytterhoeven
The #include <
linux/kernel.h> added toinclude/uapi/linux/netlink.hcauses the uClibc build to go:In file included from
include/linux/kernel.h:4,from include/linux/netlink.h:4, from include/linux/rtnetlink.h:5, from libc/inet/netlinkaccess.h:27, from libc/inet/if_index.c:37:Quoted 6 lines
include/linux/sysinfo.h:8: error: expected specifier-qualifier-list before '__kernel_long_t'
make: *** [libc/inet/if_index.o] Error 1If I comment out that line, it builds fine. The kernel builds (for my config) either way.
Comment out which line? Line 8 of include/linux/sysinfo.h or the new #include line?
Also, what arch are you compiling for?
David
Quoted 16 lines · David Howells
Quoted 1 line · Geert Uytterhoeven
The #include <
linux/kernel.h> added toinclude/uapi/linux/netlink.hcauses
Quoted 8 lines
the uClibc build to go:
In file included from
include/linux/kernel.h:4,from include/linux/netlink.h:4, from include/linux/rtnetlink.h:5, from libc/inet/netlinkaccess.h:27, from libc/inet/if_index.c:37:Quoted 1 line
include/linux/sysinfo.h:8: error: expectedspecifier-qualifier-list before
Quoted 3 lines
Quoted 3 lines
'
__kernel_long_t'
make: *** [libc/inet/if_index.o] Error 1
Quoted 6 lines
Quoted 1 line
Quoted 1 line
If I comment out that line, it builds fine. The kernel builds
(for my
Quoted 1 line
Quoted 1 line
config) either way.
Comment out which line? Line 8 of
include/linux/sysinfo.hor the new #include line?
http://landley.net/hg/aboriginal/file/1616/sources/patches/linux-fixuClibc.patch
Quoted 1 line
Also, what arch are you compiling for?
My Aboriginal Linux project does arm, mips, powerpc, sparc, sh4, x86, x86_64, m68k, and I'm poking at adding alpha.
I believe the uClibc build breaks in a target-independent manner. I just rebuilt armv5l without the patch to confirm:
CC libc/inet/if_index.os
In file included from /home/landley/aboriginal/aboriginal/build/simple-cross-compiler-armv5l/include/linux/kernel.h:4,
from/home/landley/aboriginal/aboriginal/build/simple-cross-compiler-armv5l/include/linux/netlink.h:4,
from/home/landley/aboriginal/aboriginal/build/simple-cross-compiler-armv5l/include/linux/rtnetlink.h:5,
from libc/inet/netlinkaccess.h:27,
from libc/inet/if_index.c:37:/home/landley/aboriginal/aboriginal/build/simple-cross-compiler-armv5l/include/linux/sysinfo.h:8: error: expected specifier-qualifier-list before '__kernel_long_t'
make: *** [libc/inet/if_index.os] Error 1
make: *** Waiting for unfinished jobs....
Rob