Welcome to the Linux Foundation Forum!

Problem in kernel installation

Hi,

Suse linux is running in my system. I planned to install new kernel in my system. I downloaded new kernel from kernel.org and when i tried to compile it the following error was appeared. Can some one please help me to avoid this error.

Room:/usr/src/linux-2.6.30.5 # make

HOSTLD scripts/kconfig/conf

scripts/kconfig/conf -s arch/x86/Kconfig

CHK include/linux/version.h

UPD include/linux/version.h

CHK include/linux/utsrelease.h

UPD include/linux/utsrelease.h

SYMLINK include/asm -> include/asm-x86

CC kernel/bounds.s

In file included from include/linux/compiler-gcc.h:86,

from include/linux/compiler.h:40,

from include/linux/stddef.h:4,

from include/linux/posix_types.h:4,

from include/linux/types.h:14,

from include/linux/page-flags.h:8,

from kernel/bounds.c:9:

include/linux/compiler-gcc4.h:8:4: error: #error Your version of gcc miscompiles the __weak directive

make[1]: *** [kernel/bounds.s] Error 1

make: *** [prepare0] Error 2

Room:/usr/src/linux-2.6.30.5 #

Thanks in advance.

Comments

  • Update your gcc version.
  • Can you please tell me the URL to download the patch for upgrade gcc.

    The current version of gcc is gcc version 4.1.0

    Room:/usr/src#gcc -v
    Using built-in specs.
    Target: i586-suse-linux
    Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.0 --enable-ssp --disable-libssp --enable-java-awt=gtk --enable-gtk-cairo --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
    Thread model: posix
    gcc version 4.1.0 (SUSE Linux)
    Room:/usr/src/#

Categories

Upcoming Training