Compiling kernel-2.6.13...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi.  I'm trying to use CentOS4.2 for some audio work (ie. sound editing,
etc.).  I found a site called PlanetCCRMA
(http://ccrma.stanford.edu/planetccrma/software/) and decided that I
would give some of their applications a try (hoping that it would not
affect my system greatly!).

At first I tried the Fedora 3 packages (and they do work), but what I
really wanted to do is to download the source packages and rebuild them
for my system.  I was able to successfully build their custom
kernel-2.6.10-2.1.ll for my system but they have one available
(kernel-2.6.13) that would run my system a little more efficiently
(which I need because my system is a Pentium III and I just can't afford
a new system just yet).

Any how, I tried to compile the source rpm only to encounter an error to
the effect of:

./include/linux/kernel.h:10:20: stdarg.h: No such file or directory

Is there something wrong that I can't compile this kernel?

P.S.  I've also tried compiling other kernel versions that they have
such as 2.6.11 and 2.6.12 (with exactly the same error message).  I
"googled" the problem and found that it might have to do with gcc
(http://www.linuxquestions.org/questions/showthread.php?p=1732038).  Can
anyone help me compiling new kernel?  I've posted full error message
below.  Thanks!

Sincerely
Jose

--------------

[ Mon Dec 26 09:27 PM ]
[jose@sweety /usr/src/redhat/SPECS]$ rpmbuild --rebuild --target i686
kernel-2.6.13-0.3.rdt.src.rpm
Installing kernel-2.6.13-0.3.rdt.src.rpm
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
warning: user machbuild does not exist - using root
warning: group machbuild does not exist - using root
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.70576
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' '!' -d kernel-2.6.13/vanilla ']'
+ cd kernel-2.6.13
+ rm -rf linux-2.6.13
+ cp -rl vanilla linux-2.6.13
+ cd linux-2.6.13
+ echo 'Patch #19999 (kernel-subsublevel.patch):'
Patch #19999 (kernel-subsublevel.patch):
+ patch -p1 -s
+ echo 'Patch #20330 (patch-2.6.13-rt2):'
Patch #20330 (patch-2.6.13-rt2):
+ patch -p1 -s
+ echo 'Patch #802 (linux-2.6.12-nonintconfig.patch):'
Patch #802 (linux-2.6.12-nonintconfig.patch):
+ patch -p1 -s
+ echo 'Patch #900 (linux-2.6.7-modsign-core.patch):'
Patch #900 (linux-2.6.7-modsign-core.patch):
+ patch -p1 -s
+ echo 'Patch #901 (linux-2.6.12-modsign-crypto.patch):'
Patch #901 (linux-2.6.12-modsign-crypto.patch):
+ patch -p1 -s
+ echo 'Patch #902 (linux-2.6.7-modsign-ksign.patch):'
Patch #902 (linux-2.6.7-modsign-ksign.patch):
+ patch -p1 -s
+ echo 'Patch #903 (linux-2.6.7-modsign-mpilib.patch):'
Patch #903 (linux-2.6.7-modsign-mpilib.patch):
+ patch -p1 -s
+ echo 'Patch #904 (linux-2.6.7-modsign-script.patch):'
Patch #904 (linux-2.6.7-modsign-script.patch):
+ patch -p1 -s
+ echo 'Patch #905 (linux-2.6.7-modsign-include.patch):'
Patch #905 (linux-2.6.7-modsign-include.patch):
+ patch -p1 -s
+ echo 'Patch #3020 (linux-2.6.9-ipw2100.patch):'
Patch #3020 (linux-2.6.9-ipw2100.patch):
+ patch -p1 -s
+ echo 'Patch #3021 (linux-2.6.9-ipw2200.patch):'
Patch #3021 (linux-2.6.9-ipw2200.patch):
+ patch -p1 -s
+ echo 'Patch #3022 (linux-2.6.9-ieee80211.patch):'
Patch #3022 (linux-2.6.9-ieee80211.patch):
+ patch -p1 -s
+ echo 'Patch #20520 (linux-2.6.12-rc6-ieee80211.patch):'
Patch #20520 (linux-2.6.12-rc6-ieee80211.patch):
+ patch -p1 -s
+ cp /usr/src/redhat/SOURCES/COPYING.modules Documentation/
+ mkdir configs
+ cp -fv /usr/src/redhat/SOURCES/kernel-2.6.13-i586-smp.ccrma.config
/usr/src/redhat/SOURCES/kernel-2.6.13-i586.ccrma.config
/usr/src/redhat/SOURCES/kernel-2.6.13-i686-smp.ccrma.config
/usr/src/redhat/SOURCES/kernel-2.6.13-i686.ccrma.config .
`/usr/src/redhat/SOURCES/kernel-2.6.13-i586-smp.ccrma.config' ->
`./kernel-2.6.13-i586-smp.ccrma.config'
`/usr/src/redhat/SOURCES/kernel-2.6.13-i586.ccrma.config' ->
`./kernel-2.6.13-i586.ccrma.config'
`/usr/src/redhat/SOURCES/kernel-2.6.13-i686-smp.ccrma.config' ->
`./kernel-2.6.13-i686-smp.ccrma.config'
`/usr/src/redhat/SOURCES/kernel-2.6.13-i686.ccrma.config' ->
`./kernel-2.6.13-i686.ccrma.config'
+ for i in '*.config'
+ perl -p -i -e 's|CONFIG_PREEMPT_RT=y|# CONFIG_PREEMPT_RT is not set|g'
kernel-2.6.13-i586-smp.ccrma.config
+ perl -p -i -e 's|# CONFIG_PREEMPT_DESKTOP is not
set|CONFIG_PREEMPT_DESKTOP=y|g' kernel-2.6.13-i586-smp.ccrma.config
+ perl -p -i -e
's|CONFIG_PREEMPT_HARDIRQS=y|CONFIG_PREEMPT_HARDIRQS=y\n#
CONFIG_SPINLOCK_BKL is not set|g' kernel-2.6.13-i586-smp.ccrma.config
+ :
+ for i in '*.config'
+ perl -p -i -e 's|CONFIG_PREEMPT_RT=y|# CONFIG_PREEMPT_RT is not set|g'
kernel-2.6.13-i586.ccrma.config
+ perl -p -i -e 's|# CONFIG_PREEMPT_DESKTOP is not
set|CONFIG_PREEMPT_DESKTOP=y|g' kernel-2.6.13-i586.ccrma.config
+ perl -p -i -e
's|CONFIG_PREEMPT_HARDIRQS=y|CONFIG_PREEMPT_HARDIRQS=y\n#
CONFIG_SPINLOCK_BKL is not set|g' kernel-2.6.13-i586.ccrma.config
+ :
+ for i in '*.config'
+ perl -p -i -e 's|CONFIG_PREEMPT_RT=y|# CONFIG_PREEMPT_RT is not set|g'
kernel-2.6.13-i686-smp.ccrma.config
+ perl -p -i -e 's|# CONFIG_PREEMPT_DESKTOP is not
set|CONFIG_PREEMPT_DESKTOP=y|g' kernel-2.6.13-i686-smp.ccrma.config
+ perl -p -i -e
's|CONFIG_PREEMPT_HARDIRQS=y|CONFIG_PREEMPT_HARDIRQS=y\n#
CONFIG_SPINLOCK_BKL is not set|g' kernel-2.6.13-i686-smp.ccrma.config
+ :
+ for i in '*.config'
+ perl -p -i -e 's|CONFIG_PREEMPT_RT=y|# CONFIG_PREEMPT_RT is not set|g'
kernel-2.6.13-i686.ccrma.config
+ perl -p -i -e 's|# CONFIG_PREEMPT_DESKTOP is not
set|CONFIG_PREEMPT_DESKTOP=y|g' kernel-2.6.13-i686.ccrma.config
+ perl -p -i -e
's|CONFIG_PREEMPT_HARDIRQS=y|CONFIG_PREEMPT_HARDIRQS=y\n#
CONFIG_SPINLOCK_BKL is not set|g' kernel-2.6.13-i686.ccrma.config
+ :
+ for i in '*.config'
+ mv kernel-2.6.13-i586-smp.ccrma.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=i386
+ '[' i386 '!=' xen ']'
+ make ARCH=i386 nonint_oldconfig
+ echo '# i386'
+ cat .config
+ for i in '*.config'
+ mv kernel-2.6.13-i586.ccrma.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=i386
+ '[' i386 '!=' xen ']'
+ make ARCH=i386 nonint_oldconfig
+ echo '# i386'
+ cat .config
+ for i in '*.config'
+ mv kernel-2.6.13-i686-smp.ccrma.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=i386
+ '[' i386 '!=' xen ']'
+ make ARCH=i386 nonint_oldconfig
+ echo '# i386'
+ cat .config
+ for i in '*.config'
+ mv kernel-2.6.13-i686.ccrma.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=i386
+ '[' i386 '!=' xen ']'
+ make ARCH=i386 nonint_oldconfig
+ echo '# i386'
+ cat .config
+ perl -p -i -e 's/^SUBLEVEL.*/SUBLEVEL = 13/' Makefile
+ perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -prep/' Makefile
+ find . -name '*.orig' -exec rm -fv '{}' ';'
removed `./crypto/api.c.orig'
removed `./crypto/Kconfig.orig'
removed `./include/linux/module.h.orig'
removed `./include/linux/crypto.h.orig'
removed `./init/Kconfig.orig'
removed `./kernel/irq/handle.c.orig'
removed `./kernel/Makefile.orig'
removed `./kernel/module.c.orig'
removed `./scripts/kconfig/conf.c.orig'
removed `./scripts/kconfig/Makefile.orig'
+ find . -name '*~' -exec rm -fv '{}' ';'
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.41487
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd kernel-2.6.13
+ LANG=C
+ export LANG
+ unset DISPLAY
+ gpg --homedir . --batch --gen-key /usr/src/redhat/SOURCES/genkey
gpg: WARNING: unsafe permissions on homedir "."
++++++++++++++++++++.+++++++++++++++.+++++.++++++++++.++++++++++.+++++..++++++++++++++++++++++++++++++.++++++++++.++++++++++.+++++.+++++++++++++++.!.+++++.+++++++++++++++++++++++++++++++++++++++++++++..+++++.+++++.+++++.+++++++++++++++++++++++++++++++++++++++++++++.++++++++++...+++++!.++++++++++++++++++++++++++++++.+++++++++++++++++++++++++..++++++++++.++++++++++..+++++.+++++++++++++++++++++++++.++++++++++.++++++++++!++++++++++.++++++++++.+++++.+++++.+++++++++++++++..+++++..+++++..+++++++++++++++++++++++++.+++++.++++++++++++++++++++++++++++++.++++++++++!+++++++++++++++.+++++...++++++++++.+++++.+++++.++++++++++..+++++.+++++++++++++++.+++++++++++++++++++++++++++++++++++.++++++++++.++++++++++!.+++++.+++++..++++++++++.+++++++++++++++++++++++++.+++++++++++++++..+++++.++++++++++..++++++++++++++++++++++++++++++++++++++++.++++++++++!+++++..+++++.++++++++++++++++++++++++++++++.+++++.+++++.+++++...+++++.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++!+++++.+++++++++++
+++++++++++++++++++++++++++++++++++++++.++++++++++.+++++++++++++++.+++++++++++++++.++++++++++++++++++++++++++++++!++++++++++++++++++++++++++++++++++++++++..+++++++++++++++.+++++++++++++++.+++++++++++++++.+++++.+++++++++++++++++++++++++++++++++++!++++++++++..++++++++++.++++++++++.+++++++++++++++++++++++++..+++++..++++++++++
+ gpg --homedir . --export --keyring ./kernel.pub Red
gpg: WARNING: unsafe permissions on homedir "."
+ make linux-2.6.13/scripts/bin2c
/usr/bin/gcc     linux-2.6.13/scripts/bin2c.c   -o
linux-2.6.13/scripts/bin2c
+ linux-2.6.13/scripts/bin2c ksign_def_public_key __initdata
+ cd linux-2.6.13
+ rm -rf /var/tmp/kernel-2.6.13-0.3.rdt-root
+ mkdir -p /var/tmp/kernel-2.6.13-0.3.rdt-root/boot
+ BuildKernel
+ '[' -n '' ']'
+ Config=kernel-2.6.13-i686.ccrma.config
+ DevelDir=/usr/src/kernels/2.6.13-0.3.rdt-i686
+ DevelLink=
+ KernelVer=2.6.13-0.3.rdt
+ echo BUILDING A KERNEL FOR i686...
BUILDING A KERNEL FOR i686...
+ perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -0.3.rdt/' Makefile
+ make -s mrproper
+ cp configs/kernel-2.6.13-i686.ccrma.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=i386
+ echo USING ARCH=i386
USING ARCH=i386
+ make -s ARCH=i386 nonint_oldconfig
+ make -s ARCH=i386 include/linux/version.h
  CHK     include/linux/version.h
  UPD     include/linux/version.h
+ make -s ARCH=i386 -j3 bzImage
  CHK     include/linux/version.h
  SYMLINK include/asm -> include/asm-i386
  SPLIT   include/linux/autoconf.h -> include/config/*
In file included from ./include/asm/system.h:5,
                 from ./include/asm/processor.h:18,
                 from ./include/asm/thread_info.h:17,
                 from ./include/linux/thread_info.h:21,
                 from ./include/linux/preempt.h:11,
                 from ./include/linux/spinlock.h:9,
                 from ./include/linux/capability.h:45,
                 from ./include/linux/sched.h:7,
                 from arch/i386/kernel/asm-offsets.c:7:
./include/linux/kernel.h:10:20: stdarg.h: No such file or directory
In file included from ./include/asm/system.h:5,
                 from ./include/asm/processor.h:18,
                 from ./include/asm/thread_info.h:17,
                 from ./include/linux/thread_info.h:21,
                 from ./include/linux/preempt.h:11,
                 from ./include/linux/spinlock.h:9,
                 from ./include/linux/capability.h:45,
                 from ./include/linux/sched.h:7,
                 from arch/i386/kernel/asm-offsets.c:7:
./include/linux/kernel.h:102: error: syntax error before "va_list"
./include/linux/kernel.h:106: error: syntax error before "va_list"
./include/linux/kernel.h:110: error: syntax error before "va_list"
./include/linux/kernel.h:115: error: syntax error before "va_list"
./include/linux/kernel.h:127: error: syntax error before "va_list"
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [arch/i386/kernel/asm-offsets.s] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.41487 (%build)


RPM build errors:
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.41487 (%build)





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux