LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Errors (override) with .config file (https://www.linuxquestions.org/questions/linux-kernel-70/errors-override-with-config-file-743435/)

phar0z 07-28-2009 11:47 AM

Errors (override) with .config file
 
I've used the autokernconf tool to build a minimal, flexible kernel configuration file.

The minimal .config file is in the right directory.
Code:

67 root@ubuntux $ cd /usr/src/linux && ls .config
.config


Click here
if you would like to see what my .config file contains.

Unfortunately some errors come up while I'm trying to compile the new kernel with my own minimal .config file:

Code:

7 root@ubuntux $ make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
exec debian/rules  DEBIAN_REVISION=2.6.30.3-custom-10.00.Custom  APPEND_TO_VERSION=-custom  INITRD=YES  kernel_image kernel_headers                               
====== making target debian/stamp/build/kernel [new prereqs: conf.vars]======   
This is kernel package version 11.015.                                           
if [ -f include/linux/version.h ]; then uts_ver=$(grep 'define UTS_RELEASE' include/linux/version.h | perl -nle  'm/^\s*\#define\s+UTS_RELEASE\s+("?)(\S+)\1/g && print $2;'); if [ "X$uts_ver" != "X" ]; then echo "The UTS Release version in include/linux/version.h"; echo "        \"$uts_ver\" "; echo "does not match current version " ; echo "          \"2.6.30.3-custom\" " ; echo "Reconfiguring." ; touch Makefile; fi; fi                                                                 
test ! -f scripts/package/builddeb.kpkg-dist || mv -f scripts/package/builddeb.kpkg-dist scripts/package/builddeb                                                 
test ! -f scripts/package/Makefile.kpkg-dist || mv -f scripts/package/Makefile.kpkg-dist scripts/package/Makefile                                                 
/usr/bin/make  EXTRAVERSION=.3-custom  ARCH=i386 \                               
                            bzImage                                             
make[1]: Map '/usr/src/linux-2.6.30.3' wordt binnengegaan                       
scripts/kconfig/conf -s arch/x86/Kconfig                                         
.config:8:warning: override: reassigning to symbol ACPI                         
.config:10:warning: override: reassigning to symbol ACPI                         
.config:14:warning: override: reassigning to symbol ACPI                         
.config:17:warning: override: reassigning to symbol ACPI                         
.config:18:warning: override: reassigning to symbol ACPI                         
.config:19:warning: override: reassigning to symbol ACPI_BUTTON                 
.config:20:warning: override: reassigning to symbol ACPI                         
.config:21:warning: override: reassigning to symbol PNP                         
.config:22:warning: override: reassigning to symbol PNPACPI                     
.config:27:warning: override: reassigning to symbol FUSE_FS                     
.config:56:warning: override: reassigning to symbol SOUND                       
.config:63:warning: override: reassigning to symbol HOTPLUG_PCI_SHPC             
.config:65:warning: override: reassigning to symbol PCI                         
.config:67:warning: override: reassigning to symbol PCI                         
.config:80:warning: override: reassigning to symbol PCI                         
.config:81:warning: override: reassigning to symbol USB                         
.config:82:warning: override: reassigning to symbol USB_EHCI_HCD                 
.config:83:warning: override: reassigning to symbol USB_FHCI_HCD                 
.config:84:warning: override: reassigning to symbol USB_HWA_HCD                 
.config:85:warning: override: reassigning to symbol USB_ISP116X_HCD             
.config:86:warning: override: reassigning to symbol USB_ISP1760_HCD             
.config:87:warning: override: reassigning to symbol USB_OHCI_HCD                 
.config:88:warning: override: reassigning to symbol USB_R8A66597_HCD             
.config:89:warning: override: reassigning to symbol USB_SL811_HCD               
.config:90:warning: override: reassigning to symbol USB_U132_HCD                 
.config:91:warning: override: reassigning to symbol USB_UHCI_HCD
.config:94:warning: override: reassigning to symbol AGP
.config:103:warning: override: reassigning to symbol ATH5K
.config:106:warning: override: reassigning to symbol X86
.config:117:warning: override: reassigning to symbol NEW_LEDS
.config:134:warning: override: reassigning to symbol PARPORT
.config:135:warning: override: reassigning to symbol PARPORT_PC
.config:137:warning: override: reassigning to symbol BLK_DEV_FD
.config:139:warning: override: reassigning to symbol RTC_LIB
.config:140:warning: override: reassigning to symbol SND
.config:150:warning: override: reassigning to symbol USB_HID
.config:153:warning: override: reassigning to symbol INPUT
.config:156:warning: override: reassigning to symbol PCI
.config:157:warning: override: reassigning to symbol USB
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW)

As you can see it refuses to compile. What would be the best way to fix this issue? You can also see that it's about to write a new .config file from scratch at the end.

I only want to compile a new kernel with this minimal .config file, provided by autokernconf.

phar0z 08-03-2009 10:34 AM

I've found the solution for this issue. These errors were caused by several duplicate lines in my .config file.

I've fixed it with:
Code:

sort .config | uniq -u >> .config2 && mv .config2 .config


All times are GMT -5. The time now is 09:33 AM.