Skip to content
This repository

Compilation fails on 2.6.32-220.13.1.el6.x86_64 #69

Open
pjc23 opened this Issue June 05, 2012 · 2 comments

3 participants

pjc23 chungbv kgovps-com
pjc23
pjc23 commented June 05, 2012

$ make KERNEL_TREE=/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64

I'm getting the following output when running the MAKE command above:

=== START OF OUTPUT IN STDOUT ===

include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:46: warning: "SHIFT_HZ" is not defined
In file included from include/linux/elf.h:7,
from include/linux/module.h:14,
from /root/flashcache/src/flashcache_conf.c:26:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/elf.h: In function ‘start_ia32_thread’:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/elf.h:166: error: implicit declaration of function ‘load_gs_index’
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/elf.h: In function ‘elf_common_init’:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/elf.h:181: error: ‘struct thread_struct’ has no member named ‘fs’
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/elf.h: At top level:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/elf.h:370: error: requested alignment is not a constant
In file included from include/linux/tracepoint.h:18,
from include/linux/module.h:18,
from /root/flashcache/src/flashcache_conf.c:26:
include/linux/rcupdate.h:77:2: error: #error "Unknown RCU implementation specified to kernel configuration"
In file included from include/linux/tracepoint.h:18,
from include/linux/module.h:18,
from /root/flashcache/src/flashcache_conf.c:26:
include/linux/rcupdate.h: In function ‘rcu_read_lock’:
include/linux/rcupdate.h:127: error: implicit declaration of function ‘__rcu_read_lock’
include/linux/rcupdate.h: In function ‘rcu_read_unlock’:
include/linux/rcupdate.h:151: error: implicit declaration of function ‘__rcu_read_unlock’
include/linux/rcupdate.h: In function ‘rcu_read_lock_bh’:
include/linux/rcupdate.h:167: error: implicit declaration of function ‘__rcu_read_lock_bh’
include/linux/rcupdate.h: In function ‘rcu_read_unlock_bh’:
include/linux/rcupdate.h:181: error: implicit declaration of function ‘__rcu_read_unlock_bh’
In file included from include/linux/slab_def.h:144,
from include/linux/slab.h:166,
from include/linux/percpu.h:5,
from /home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/local.h:4,
from include/linux/module.h:20,
from /root/flashcache/src/flashcache_conf.c:26:
include/linux/kmalloc_sizes.h:5:5: warning: "CONFIG_X86_L1_CACHE_SHIFT" is not defined
include/linux/kmalloc_sizes.h:9:5: warning: "CONFIG_X86_L1_CACHE_SHIFT" is not defined
In file included from include/linux/module.h:21,
from /root/flashcache/src/flashcache_conf.c:26:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/module.h:59:2: error: #error unknown processor family
In file included from include/linux/mm.h:14,
from include/linux/highmem.h:5,
from include/linux/bio.h:22,
from /root/flashcache/src/flashcache_conf.c:30:
include/linux/mm_types.h:27:5: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
include/linux/mm_types.h:71:5: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
In file included from /home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/x86_init.h:5,
from /home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/pgtable.h:19,
from include/linux/mm.h:39,
from include/linux/highmem.h:5,
from include/linux/bio.h:22,
from /root/flashcache/src/flashcache_conf.c:30:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/bootparam.h: At top level:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/bootparam.h:96: error: field ‘edid_info’ has incomplete type
In file included from include/linux/mm.h:39,
from include/linux/highmem.h:5,
from include/linux/bio.h:22,
from /root/flashcache/src/flashcache_conf.c:30:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/pgtable.h: In function ‘pmd_page_vaddr’:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/pgtable.h:359: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/pgtable.h: In function ‘pud_page_vaddr’:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/pgtable.h:430: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/pgtable.h: In function ‘pgd_page_vaddr’:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/pgtable.h:470: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
In file included from include/linux/highmem.h:5,
from include/linux/bio.h:22,
from /root/flashcache/src/flashcache_conf.c:30:
include/linux/mm.h: In function ‘virt_to_head_page’:
include/linux/mm.h:359: error: implicit declaration of function ‘__pfn_to_page’
include/linux/mm.h:359: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
In file included from include/linux/highmem.h:5,
from include/linux/bio.h:22,
from /root/flashcache/src/flashcache_conf.c:30:
include/linux/mm.h:510:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:558:62: warning: "NR_PAGEFLAGS" is not defined
In file included from include/linux/highmem.h:5,
from include/linux/bio.h:22,
from /root/flashcache/src/flashcache_conf.c:30:
include/linux/mm.h: In function ‘lowmem_page_address’:
include/linux/mm.h:648: error: implicit declaration of function ‘__page_to_pfn’
include/linux/mm.h:648: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
include/linux/mm.h:1034:5: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
In file included from include/linux/sched.h:79,
from include/linux/ioprio.h:4,
from include/linux/bio.h:24,
from /root/flashcache/src/flashcache_conf.c:30:
include/linux/proportions.h: In function ‘prop_inc_percpu’:
include/linux/proportions.h:75: error: implicit declaration of function ‘local_irq_save’
include/linux/proportions.h:77: error: implicit declaration of function ‘local_irq_restore’
In file included from include/linux/ioprio.h:4,
from include/linux/bio.h:24,
from /root/flashcache/src/flashcache_conf.c:30:
include/linux/sched.h:390:5: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
In file included from include/linux/hardirq.h:10,
from include/linux/pagemap.h:15,
from /root/flashcache/src/flashcache_conf.c:35:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/hardirq.h: At top level:
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/arch/x86/include/asm/hardirq.h:29: error: requested alignment is not a constant
In file included from /root/flashcache/src/flashcache_conf.c:35:
include/linux/pagemap.h: In function ‘fault_in_pages_writeable’:
include/linux/pagemap.h:418: error: implicit declaration of function ‘__copy_to_user_ll’
/root/flashcache/src/flashcache_conf.c:39:27: error: linux/version.h: No such file or directory
/root/flashcache/src/flashcache_conf.c:45:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:45:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:45:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:51:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:51:27: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:51:41: error: missing binary operator before token "("
In file included from /root/flashcache/src/flashcache_conf.c:54:
include/linux/device-mapper.h: At top level:
include/linux/device-mapper.h:51: warning: ‘struct request’ declared inside parameter list
include/linux/device-mapper.h:51: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/device-mapper.h:66: warning: ‘struct request’ declared inside parameter list
include/linux/device-mapper.h:83: warning: ‘struct bvec_merge_data’ declared inside parameter list
include/linux/device-mapper.h:95: warning: ‘struct queue_limits’ declared inside parameter list
include/linux/device-mapper.h:324: warning: ‘struct request’ declared inside parameter list
include/linux/device-mapper.h:503: warning: ‘struct request’ declared inside parameter list
include/linux/device-mapper.h:504: warning: ‘struct request’ declared inside parameter list
include/linux/device-mapper.h:505: warning: ‘struct request’ declared inside parameter list
include/linux/device-mapper.h:506: warning: ‘struct request_queue’ declared inside parameter list
In file included from /root/flashcache/src/flashcache_conf.c:59:
/root/flashcache/src/flashcache.h:247:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache.h:247:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache.h:247:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache.h:310:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache.h:310:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache.h:310:40: error: missing binary operator before token "("
In file included from /root/flashcache/src/flashcache_conf.c:59:
/root/flashcache/src/flashcache.h:322: error: field ‘md_io_bvec’ has incomplete type
/root/flashcache/src/flashcache.h:539:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache.h:539:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache.h:539:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache.h:567:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache.h:567:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache.h:567:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache.h:579:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache.h:579:27: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache.h:579:41: error: missing binary operator before token "("
In file included from /root/flashcache/src/flashcache_conf.c:60:
/root/flashcache/src/flashcache_ioctl.h:54:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_ioctl.h:54:27: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_ioctl.h:54:41: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:104:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:104:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:104:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:124:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:124:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:124:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:189:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:189:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:189:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c: In function ‘flashcache_writeback_md_store’:
/root/flashcache/src/flashcache_conf.c:201: error: implicit declaration of function ‘vmalloc’
/root/flashcache/src/flashcache_conf.c:201: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:277: error: implicit declaration of function ‘vfree’
/root/flashcache/src/flashcache_conf.c:279: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c: In function ‘flashcache_writethrough_create’:
/root/flashcache/src/flashcache_conf.c:366: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:389:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:389:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:389:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c: In function ‘flashcache_writeback_create’:
/root/flashcache/src/flashcache_conf.c:400: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:449: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:464: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:574:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:574:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:574:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c: In function ‘flashcache_writeback_load’:
/root/flashcache/src/flashcache_conf.c:592: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:661: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:668: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:763: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:797:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:797:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:797:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:821:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:821:27: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:821:41: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c: In function ‘flashcache_get_dev’:
/root/flashcache/src/flashcache_conf.c:830: warning: passing argument 4 of ‘dm_get_device’ makes pointer from integer without a cast
include/linux/device-mapper.h:122: note: expected ‘struct dm_dev **’ but argument is of type ‘sector_t’
/root/flashcache/src/flashcache_conf.c:830: error: too many arguments to function ‘dm_get_device’
/root/flashcache/src/flashcache_conf.c: In function ‘flashcache_ctr’:
/root/flashcache/src/flashcache_conf.c:1043: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:1072: warning: cast to pointer from integer of different size
/root/flashcache/src/flashcache_conf.c:1143:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1143:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1143:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1612:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1612:27: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1612:41: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1618:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1618:27: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1618:41: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1636:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1636:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1636:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1649:6: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1649:28: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1649:42: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c: In function ‘flashcache_init’:
/root/flashcache/src/flashcache_conf.c:1652: error: ‘flashcache_io_client’ undeclared (first use in this function)
/root/flashcache/src/flashcache_conf.c:1652: error: too many arguments to function ‘dm_io_client_create’
/root/flashcache/src/flashcache_conf.c:1659:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1659:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1659:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1661:8: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1661:30: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1661:44: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1667: error: too many arguments to function ‘dm_kcopyd_client_create’
/root/flashcache/src/flashcache_conf.c:1667: warning: assignment makes integer from pointer without a cast
/root/flashcache/src/flashcache_conf.c:1677:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1677:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1677:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1705:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1705:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1705:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1713:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1713:26: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1713:40: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c: In function ‘flashcache_exit’:
/root/flashcache/src/flashcache_conf.c:1716: warning: passing argument 1 of ‘dm_kcopyd_client_destroy’ from incompatible pointer type
include/linux/dm-kcopyd.h:29: note: expected ‘struct dm_kcopyd_client ’ but argument is of type ‘struct kcopyd_client
/root/flashcache/src/flashcache_conf.c:1718:5: warning: "LINUX_VERSION_CODE" is not defined
/root/flashcache/src/flashcache_conf.c:1718:27: warning: "KERNEL_VERSION" is not defined
/root/flashcache/src/flashcache_conf.c:1718:41: error: missing binary operator before token "("
/root/flashcache/src/flashcache_conf.c:1721: error: implicit declaration of function ‘dm_io_put’
make[3]: *
[/root/flashcache/src/flashcache_conf.o] Error 1
make[2]: *** [module/root/flashcache/src] Error 2
make[1]: *** [modules] Error 2
make: *** [all] Error 2

=== END OF OUTPUT IN STDOUT ===

The output above is incomplete (too long to scroll up and copy in putty). I tried to redirect the output to a file but below is only what I got (as opposed to the long output displayed in stdout):

=== START OF OUTPUT IN FILE ===

make -C src KERNEL_TREE=/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64 PWD=/root/flashcache/src all
make[1]: Entering directory /root/flashcache/src'
make -C /home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64 M=/root/flashcache/src modules V=0
make[2]: Entering directory
/home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64'

ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

WARNING: Symbol version dump /home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /root/flashcache/src/flashcache_conf.o
make[2]: Leaving directory /home/rpmbuilder/rpmbuild/BUILD/kernel-2.6.32-220.13.1.el6/linux-2.6.32-220.13.1.el6.x86_64'
make[1]: Leaving directory
/root/flashcache/src'

=== END OF OUTPUT IN FILE ===

Any ideas as to what to do? I get the same issue on another machine with kernel version 2.6.32-220.7.1.el6.x86_64

chungbv

How to fix that error ? Thanks !

kgovps-com

For all of you bumping into this in regards to searching for: "LINUX_VERSION_CODE" is not defined issue

My version.h was empty.
cp /usr/src/kernels/VERSION-HERE/include/generated/uapi/linux/version.h /usr/src/kernels/VERSION-HERE/include/linux/version.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.