Marc Kleine-Budde wrote:
> Hey Markus,
>
> Markus Rathgeb wrote:
>> toolchain:
>> OSELAS.Toolchain-1.99.3.2
>>
>> ptxconfig:
>> powerpc-603e-linux-gnu_gcc-4.3.2_glibc-2.8_binutils-2.18_kernel-2.6.27-
>> sanitized.ptxconfig
>>
>> 1. Cannot build toolchain with current ptxdist-trunk (rev. 10822).
>> Get the following error:
>> "error in kgen"
>
> yeah, we pushed trunk a bit last week, no time to test with the
> toolchains though,
>
>> 2. Cannot build with "ptxdist-1.99.13".
>> The problem here is IMHO not the ptxdist version but the definition of
>> 'getline' in 'scripts/unifdef.c' and the using of recent glibc (e.g. 2.10.1).
>> Now getline is defined in: /usr/include/stdio.h
>
> sounds reasonable....
>
>> ------------------------------
>> target: kernel-headers.install
>> ------------------------------
>>
>> make -C /home/maggu2810/ptx/toolchain/OSELAS.Toolchain-1.99.3.2/platform-
>> powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-
>> sanitized/build-target/linux-2.6.27 ARCH=powerpc
>> CROSS_COMPILE=we_dont_have_a_cross_compiler_yet- -j2 headers_install
>> INSTALL_HDR_PATH=/opt/OSELAS.Toolchain-1.99.3/powerpc-603e-linux-
>> gnu/gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/sysroot-
>> powerpc-603e-linux-gnu/usr
>> make[1]: we_dont_have_a_cross_compiler_yet-gcc: Command not found
>> make[1]: Entering directory
>> `/home/maggu2810/ptx/toolchain/OSELAS.Toolchain-1.99.3.2/platform-
>> powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-
>> sanitized/build-target/linux-2.6.27'
>> CHK include/linux/version.h
>> UPD include/linux/version.h
>> HOSTCC scripts/unifdef
>> scripts/unifdef.c:209: error: conflicting types for 'getline'
>> /usr/include/stdio.h:651: error: previous declaration of 'getline' was here
>> make[2]: make[1]: Leaving directory
>
> I think we have to patch the kernel....
>
> copy the attached patch into the toolchain: patches/linux-2.6.27/generic
^^^^^^^^Marc -- Pengutronix e.K. | Marc Kleine-Budde | Linux Solutions for Science and Industry | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
From d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7 Mon Sep 17 00:00:00 2001 From: Justin P. Mattock <[email protected]> Date: Sat, 7 Mar 2009 13:31:29 +0100 Subject: [PATCH] kbuild: fix C libary confusion in unifdef.c due to getline() This fixes an error when compiling the kernel. CHK include/linux/version.h HOSTCC scripts/unifdef scripts/unifdef.c:209: error: conflicting types for 'getline' /usr/include/stdio.h:651: note: previous declaration of 'getline' was here make[1]: *** [scripts/unifdef] Error 1 make: *** [__headers] Error 2 Signed-off-by: Justin P. Mattock <[email protected]> Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> --- scripts/unifdef.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/unifdef.c b/scripts/unifdef.c index 552025e..05a31a6 100644 --- a/scripts/unifdef.c +++ b/scripts/unifdef.c @@ -206,7 +206,7 @@ static void done(void); static void error(const char *); static int findsym(const char *); static void flushline(bool); -static Linetype getline(void); +static Linetype get_line(void); static Linetype ifeval(const char **); static void ignoreoff(void); static void ignoreon(void); @@ -512,7 +512,7 @@ process(void) for (;;) { linenum++; - lineval = getline(); + lineval = get_line(); trans_table[ifstate[depth]][lineval](); debug("process %s -> %s depth %d", linetype_name[lineval], @@ -526,7 +526,7 @@ process(void) * help from skipcomment(). */ static Linetype -getline(void) +get_line(void) { const char *cp; int cursym; -- 1.6.3.1
signature.asc
Description: OpenPGP digital signature
-- ptxdist mailing list [email protected]
