Hi All,
I am having issue when trying to build a custom kernel in CentOS 4.4. Current Kernel Version is 2.6.9-42.ELsmp and the server is HP Proliant DL380 G3. I downloaded the source rpm and then installed it. Gave the command, rpmbuild -bp --target=i686 /usr/src/redhat/SPECS/kernel-2.6.spec. But it throws me an error after patch operations. The following is the error.
`/usr/src/redhat/SOURCES/kernel-2.6.9-i586-smp.config' -> `./kernel-2.6.9-i586-smp.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i586.config' -> `./kernel-2.6.9-i586.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686-hugemem.config' -> `./kernel-2.6.9-i686-hugemem.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686-smp.config' -> `./kernel-2.6.9-i686-smp.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686.config' -> `./kernel-2.6.9-i686.config' + for i in '*.config' + mv kernel-2.6.9-i586-smp.config .config ++ echo kernel-2.6.9-i586-smp.config ++ cut -d- -f3 ++ cut -d. -f1 ++ sed -e s/i.86/i386/ -e s/s390x/s390/ -e s/ppc64.series/ppc64/ + make ARCH=i386 nonint_oldconfig gcc: installation problem, cannot exec `cc1': No such file or directory make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.50765 (%prep)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.50765 (%prep) Does any other package needs to be installed for fixing this? gcc, glibc-devel, gcc-c++ are already installed.
Regards,
Kurian Thayil.
Kurian Thayil wrote:
Hi All,
I am having issue when trying to build a custom kernel in CentOS 4.4. Current Kernel Version is 2.6.9-42.ELsmp and the server is HP Proliant DL380 G3. I downloaded the source rpm and then installed it. Gave the command, rpmbuild -bp --target=i686 /usr/src/redhat/SPECS/kernel-2.6.spec. But it throws me an error after patch operations. The following is the error.
`/usr/src/redhat/SOURCES/kernel-2.6.9-i586-smp.config' -> `./kernel-2.6.9-i586-smp.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i586.config' -> `./kernel-2.6.9-i586.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686-hugemem.config' -> `./kernel-2.6.9-i686-hugemem.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686-smp.config' -> `./kernel-2.6.9-i686-smp.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686.config' -> `./kernel-2.6.9-i686.config'
- for i in '*.config'
- mv kernel-2.6.9-i586-smp.config .config
++ echo kernel-2.6.9-i586-smp.config ++ cut -d- -f3 ++ cut -d. -f1 ++ sed -e s/i.86/i386/ -e s/s390x/s390/ -e s/ppc64.series/ppc64/
- make ARCH=i386 nonint_oldconfig
gcc: installation problem, cannot exec `cc1': No such file or directory make[1]: *** [scripts/basic/fixdep] Error 1
Looks like you don't have cpp, the C preprocessor, installed.
Try 'yum install cpp'.
Hi Ned,
The package cpp was already installed.
[root@astind02 customKernelcompile]# rpm -qa |grep cpp cpp-3.4.6-3 [root@astind02 customKernelcompile]# rpm -qa |grep gcc gcc-c++-3.4.6-3 libgcc-3.4.6-3 gcc-3.4.6-3
Any hint on this??
Regards,
Kurian Thayil.
On Mon, Jun 29, 2009 at 3:08 PM, Ned Slider ned@unixmail.co.uk wrote:
Kurian Thayil wrote:
Hi All,
I am having issue when trying to build a custom kernel in CentOS 4.4. Current Kernel Version is 2.6.9-42.ELsmp and the server is HP Proliant
DL380
G3. I downloaded the source rpm and then installed it. Gave the command, rpmbuild -bp --target=i686 /usr/src/redhat/SPECS/kernel-2.6.spec. But it throws me an error after patch operations. The following is the error.
`/usr/src/redhat/SOURCES/kernel-2.6.9-i586-smp.config' -> `./kernel-2.6.9-i586-smp.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i586.config' -> `./kernel-2.6.9-i586.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686-hugemem.config' -> `./kernel-2.6.9-i686-hugemem.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686-smp.config' -> `./kernel-2.6.9-i686-smp.config' `/usr/src/redhat/SOURCES/kernel-2.6.9-i686.config' -> `./kernel-2.6.9-i686.config'
- for i in '*.config'
- mv kernel-2.6.9-i586-smp.config .config
++ echo kernel-2.6.9-i586-smp.config ++ cut -d- -f3 ++ cut -d. -f1 ++ sed -e s/i.86/i386/ -e s/s390x/s390/ -e s/ppc64.series/ppc64/
- make ARCH=i386 nonint_oldconfig
gcc: installation problem, cannot exec `cc1': No such file or directory make[1]: *** [scripts/basic/fixdep] Error 1
Looks like you don't have cpp, the C preprocessor, installed.
Try 'yum install cpp'.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Kurian Thayil wrote:
Hi Ned,
The package cpp was already installed.
[root@astind02 customKernelcompile]# rpm -qa |grep cpp cpp-3.4.6-3 [root@astind02 customKernelcompile]# rpm -qa |grep gcc gcc-c++-3.4.6-3 libgcc-3.4.6-3 gcc-3.4.6-3
Any hint on this??
hmm, not sure. Perhaps you could try following the very detailed HowTo on the wiki:
http://wiki.centos.org/HowTos/Custom_Kernel
I know the authors of that page do an excellent job of maintaining it to make sure the information is valid and up to date.
Hi Ned,
Got i working. Upgraded cpp package to 3.4.10 and it got working. Successfully compiled a custom kernel. I am wondering why I wasn able to do this with the cpp package bundled with CentOS 4.4?
Regards,
Kurian Thayil.
On Mon, 2009-06-29 at 11:35 +0100, Ned Slider wrote:
Kurian Thayil wrote:
Hi Ned,
The package cpp was already installed.
[root@astind02 customKernelcompile]# rpm -qa |grep cpp cpp-3.4.6-3 [root@astind02 customKernelcompile]# rpm -qa |grep gcc gcc-c++-3.4.6-3 libgcc-3.4.6-3 gcc-3.4.6-3
Any hint on this??
hmm, not sure. Perhaps you could try following the very detailed HowTo on the wiki:
http://wiki.centos.org/HowTos/Custom_Kernel
I know the authors of that page do an excellent job of maintaining it to make sure the information is valid and up to date.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos