[PlanetCCRMA] Re: rpmbuild error on 2.6.10 kernel

Janina Sajka janina@rednote.net
Fri Jan 7 18:19:01 2005


Thomas Nossmann writes:
> Hi,
> 
> Am Donnerstag, 6. Januar 2005 21:44 schrieb Janina Sajka:
> > Hi, Fernando:
> >
> > Got the following error attempting to rpmbuild -bp for the 2.6.10 ccrma
> > kernel src:
> >
> > CONFIG_SECURITY_REALTIME
> > CONFIG_CRYPTO_ANUBIS
> > make[1]: *** [nonint_oldconfig] Error 54
> > make: *** [nonint_oldconfig] Error 2
> > error: Bad exit status from /var/tmp/rpm-tmp.74107 (%prep)
> 
> Same problem here - i tried to build the sourcecode package from a fresh 
> installed srpm.

It doesn't like --target noarch for some reason. Perhaps kernel docs
aren't being built?

In any case, taking that out fixed my problem. Instead, I used:

rpmbuild -bp --target i686 kernel.spec

I think i586 will work. For me, though, x86_64 did not.

> 
> Regards, Thomas
> 
> [root@ws SPECS]# rpmbuild -bb --target noarch kernel.spec
> Building target platforms: noarch
> Building for target noarch
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.92350
> + umask 022
> + cd /usr/src/redhat/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /usr/src/redhat/BUILD
> + rm -rf kernel-2.6.10
> + /bin/mkdir -p kernel-2.6.10
> + cd kernel-2.6.10
> + /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/linux-2.6.10.tar.bz2
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chown -Rhf root .
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chgrp -Rhf root .
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + cd linux-2.6.10
> + echo 'Patch #20001 (linux-2.6.10-rc2-mm3-rt2.patch.gz):'
> Patch #20001 (linux-2.6.10-rc2-mm3-rt2.patch.gz):
> + /usr/bin/gzip -d
> + patch -p1 -s
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + echo 'Patch #20500 (linux-2.6.10-rc3-mm1-capabilityfix.patch):'
> Patch #20500 (linux-2.6.10-rc3-mm1-capabilityfix.patch):
> + patch -p1 -s
> + echo 'Patch #501 (linux-2.6.10-nonintconfig.patch):'
> Patch #501 (linux-2.6.10-nonintconfig.patch):
> + patch -p1 -s
> + echo 'Patch #600 (linux-2.6.7-modsign-core.patch):'
> Patch #600 (linux-2.6.7-modsign-core.patch):
> + patch -p1 -s
> + echo 'Patch #601 (linux-2.6.7-modsign-crypto.patch):'
> Patch #601 (linux-2.6.7-modsign-crypto.patch):
> + patch -p1 -s
> + echo 'Patch #602 (linux-2.6.7-modsign-ksign.patch):'
> Patch #602 (linux-2.6.7-modsign-ksign.patch):
> + patch -p1 -s
> + echo 'Patch #603 (linux-2.6.7-modsign-mpilib.patch):'
> Patch #603 (linux-2.6.7-modsign-mpilib.patch):
> + patch -p1 -s
> + echo 'Patch #604 (linux-2.6.7-modsign-script.patch):'
> Patch #604 (linux-2.6.7-modsign-script.patch):
> + patch -p1 -s
> + echo 'Patch #605 (linux-2.6.7-modsign-include.patch):'
> Patch #605 (linux-2.6.7-modsign-include.patch):
> + patch -p1 -s
> + echo 'Patch #606 (linux-2.6.9-sha1.patch):'
> Patch #606 (linux-2.6.9-sha1.patch):
> + patch -p1 -s
> + cp /usr/src/redhat/SOURCES/COPYING.modules Documentation/
> + mkdir configs
> + cp 
> -fv /usr/src/redhat/SOURCES/kernel-2.6.10-i586-smp.ccrma.config /usr/src/redhat/SOURCES/kernel-2.6.10-i586-smp.config /usr/src/redhat/SOURCES/kernel-2.6.10-i586.ccrma.config /usr/src/redhat/SOURCES/kernel-2.6.10-i586.config /usr/src/redhat/SOURCES/kernel-2.6.10-i686-smp.ccrma.config /usr/src/redhat/SOURCES/kernel-2.6.10-i686-smp.config /usr/src/redhat/SOURCES/kernel-2.6.10-i686.ccrma.config /usr/src/redhat/SOURCES/kernel-2.6.10-i686.config /usr/src/redhat/SOURCES/kernel-2.6.10-ia64.config /usr/src/redhat/SOURCES/kernel-2.6.10-ppc.config /usr/src/redhat/SOURCES/kernel-2.6.10-ppc64.config /usr/src/redhat/SOURCES/kernel-2.6.10-ppc64iseries.config /usr/src/redhat/SOURCES/kernel-2.6.10-s390.config /usr/src/redhat/SOURCES/kernel-2.6.10-s390x.config /usr/src/redhat/SOURCES/kernel-2.6.10-x86_64-smp.config /usr/src/redhat/SOURCES/kernel-2.6.10-x86_64.config .
> `/usr/src/redhat/SOURCES/kernel-2.6.10-i586-smp.ccrma.config' -> 
> `./kernel-2.6.10-i586-smp.ccrma.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-i586-smp.config' -> 
> `./kernel-2.6.10-i586-smp.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-i586.ccrma.config' -> 
> `./kernel-2.6.10-i586.ccrma.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-i586.config' -> 
> `./kernel-2.6.10-i586.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-i686-smp.ccrma.config' -> 
> `./kernel-2.6.10-i686-smp.ccrma.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-i686-smp.config' -> 
> `./kernel-2.6.10-i686-smp.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-i686.ccrma.config' -> 
> `./kernel-2.6.10-i686.ccrma.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-i686.config' -> 
> `./kernel-2.6.10-i686.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-ia64.config' -> 
> `./kernel-2.6.10-ia64.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-ppc.config' -> 
> `./kernel-2.6.10-ppc.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-ppc64.config' -> 
> `./kernel-2.6.10-ppc64.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-ppc64iseries.config' -> 
> `./kernel-2.6.10-ppc64iseries.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-s390.config' -> 
> `./kernel-2.6.10-s390.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-s390x.config' -> 
> `./kernel-2.6.10-s390x.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-x86_64-smp.config' -> 
> `./kernel-2.6.10-x86_64-smp.config'
> `/usr/src/redhat/SOURCES/kernel-2.6.10-x86_64.config' -> 
> `./kernel-2.6.10-x86_64.config'
> + mv kernel-2.6.10-i586-smp.ccrma.config .config
> ++ echo kernel-2.6.10-i586-smp.ccrma.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
> + cp .config configs/kernel-2.6.10-i586-smp.ccrma.config
> + mv kernel-2.6.10-i586-smp.config .config
> ++ echo kernel-2.6.10-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
> .config:37: trying to assign nonexistent symbol PREEMPT_VOLUNTARY
> .config:229: trying to assign nonexistent symbol BLK_DEV_DELKIN
> .config:230: trying to assign nonexistent symbol BLK_DEV_IT8212
> .config:256: trying to assign nonexistent symbol IDE_TASKFILE_IO
> .config:360: trying to assign nonexistent symbol SCSI_MEGARAID
> .config:535: trying to assign nonexistent symbol NETDUMP
> .config:536: trying to assign nonexistent symbol DISKDUMP
> .config:537: trying to assign nonexistent symbol SCSI_DUMP
> .config:720: trying to assign nonexistent symbol NET_HW_FLOWCONTROL
> .config:1444: trying to assign nonexistent symbol CRASH
> .config:1609: trying to assign nonexistent symbol DVB_ALPS_TDLB7
> .config:1610: trying to assign nonexistent symbol DVB_ALPS_TDMB7
> .config:1613: trying to assign nonexistent symbol DVB_GRUNDIG_29504_491
> .config:1614: trying to assign nonexistent symbol DVB_GRUNDIG_29504_401
> .config:1618: trying to assign nonexistent symbol DVB_TWINHAN_DST
> .config:2028: trying to assign nonexistent symbol USB_PWC
> .config:2246: trying to assign nonexistent symbol TUX
> .config:2247: trying to assign nonexistent symbol TUX_EXTCGI
> .config:2248: trying to assign nonexistent symbol TUX_EXTENDED_LOG
> .config:2249: trying to assign nonexistent symbol TUX_DEBUG
> .config:2277: trying to assign nonexistent symbol SECURITY_SELINUX_AVC_STATS
> .config:2393: trying to assign nonexistent symbol X86_4G
> .config:2407: trying to assign nonexistent symbol CRASH
> .config:2463: trying to assign nonexistent symbol TUX
> .config:2486: trying to assign nonexistent symbol KEXEC
> .config:2487: trying to assign nonexistent symbol NETDUMP
> .config:2508: trying to assign nonexistent symbol X86_4G
> CONFIG_KOBJECT_UEVENT
> CONFIG_MODULE_SRCVERSION_ALL
> CONFIG_ACPI_VIDEO
> CONFIG_ACPI_IBM
> CONFIG_CPU_FREQ_DEBUG
> CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE
> CONFIG_X86_CPUFREQ_NFORCE2
> CONFIG_PCCARD
> CONFIG_MTD_TS5500
> CONFIG_PNPACPI
> CONFIG_BLK_DEV_RAM_COUNT
> CONFIG_INITRAMFS_SOURCE
> CONFIG_CDROM_PKTCDVD
> CONFIG_IOSCHED_CFQ
> CONFIG_MEGARAID_NEWGEN
> CONFIG_MEGARAID_LEGACY
> CONFIG_SCSI_SATA_ULI
> CONFIG_SCSI_QLOGIC_1280_1040
> CONFIG_MD_FAULTY
> CONFIG_IP_TCPDIAG
> CONFIG_IP_NF_CONNTRACK_MARK
> CONFIG_IP_NF_MATCH_HASHLIMIT
> CONFIG_ISDN_DIVERSION
> CONFIG_I2C_AMD756_S4882
> CONFIG_I2C_STUB
> CONFIG_SENSORS_ADM1026
> CONFIG_SENSORS_LM63
> CONFIG_SENSORS_LM87
> CONFIG_SENSORS_PC87360
> CONFIG_DVB_DIBUSB
> CONFIG_DVB_CINERGYT2
> CONFIG_DVB_B2C2_USB
> CONFIG_DVB_TDA80XX
> CONFIG_DVB_CX22702
> CONFIG_DVB_DIB3000MB
> CONFIG_DVB_DIB3000MC
> CONFIG_FB_TILEBLITTING
> CONFIG_FB_INTEL
> CONFIG_FB_ATY_GENERIC_LCD
> CONFIG_FB_SAVAGE
> CONFIG_SND_BT87X_OVERCLOCK
> CONFIG_USB_SL811_HCD
> CONFIG_USB_KC2190
> CONFIG_USB_SERIAL_CYPRESS_M8
> CONFIG_USB_SERIAL_IPW
> CONFIG_USB_PHIDGETKIT
> CONFIG_MMC
> CONFIG_CIFS_EXPERIMENTAL
> CONFIG_DEBUG_KOBJECT
> CONFIG_4KSTACKS
> CONFIG_KEYS
> CONFIG_SECURITY_SECLVL
> CONFIG_SECURITY_REALTIME
> CONFIG_CRYPTO_ANUBIS
> make[1]: *** [nonint_oldconfig] Error 54
> make: *** [nonint_oldconfig] Error 2
> Fehler: Bad exit status from /var/tmp/rpm-tmp.92350 (%prep)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.92350 (%prep)
> [root@ws SPECS]#     
> 
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma

-- 

Janina Sajka				Phone: +1.202.494.7040
Partner, Capital Accessibility LLC	http://www.CapitalAccessibility.Com

Chair, Accessibility Workgroup		Free Standards Group (FSG)
janina@freestandards.org		http://a11y.org

If Linux can't solve your computing problem, you need a different problem.