Build error during Pi Tutorial

Sysprogs forums Forums VisualKernel Build error during Pi Tutorial

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7164
    mmessuri
    Participant

    Ok, I was following the Visual Kernel PI tutorial (installed the tool chain and did the build per the instructions) and am now running into a problem that I am not able to solve (due to lack of knowledge).  The problem comes during step 10 of the Basic Module: “VisualKernel will test the specified settings by trying to build a basic kernel module:” and here it is:

    Tool arguments:
    make: Entering directory ‘/home/joedirt/raspberry/linux’
    test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
    echo >&2; \
    echo >&2 ” ERROR: Kernel configuration is invalid.”; \
    echo >&2 ” include/generated/autoconf.h or include/config/auto.conf are missing.”;\
    echo >&2 ” Run ‘make oldconfig && make prepare’ on kernel src to fix it.”; \
    echo >&2 ; \
    /bin/false)
    mkdir -p /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/.tmp_versions ; rm -f /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/.tmp_versions/*
    make -f ./scripts/Makefile.build obj=/tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb
    /home/joedirt/raspberry/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc -Wp,-MD,/tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/.VisualGDBSpecDetectModule_main.o.d -nostdinc -isystem /home/joedirt/raspberry/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/include -I./arch/arm/include -Iarch/arm/include/generated/uapi -Iarch/arm/include/generated -Iinclude -I./arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fno-ipa-sra -mabi=apcs-gnu -mno-thumb-interwork -marm -msoft-float -Uarm -fno-delete-null-pointer-checks -O2 –param=allow-store-data-races=0 -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DMODULE -D”KBUILD_STR(s)=#s” -D”KBUILD_BASENAME=KBUILD_STR(VisualGDBSpecDetectModule_main)” -D”KBUILD_MODNAME=KBUILD_STR(VisualGDBSpecDetectModule)” -c -o /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/.tmp_VisualGDBSpecDetectModule_main.o /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c
    scripts/Makefile.build:258: recipe for target ‘/tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.o’ failed
    Makefile:1384: recipe for target ‘_module_/tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb’ failed
    make: Leaving directory ‘/home/joedirt/raspberry/linux’
    In file included from include/linux/irqflags.h:15:0,
    from ./arch/arm/include/asm/bitops.h:27,
    from include/linux/bitops.h:36,
    from include/linux/kernel.h:10,
    from include/linux/list.h:8,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/irqflags.h:21:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ >= 6
    ^
    In file included from ./arch/arm/include/asm/bitops.h:28:0,
    from include/linux/bitops.h:36,
    from include/linux/kernel.h:10,
    from include/linux/list.h:8,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/barrier.h:9:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ >= 7 || \
    ^
    ./arch/arm/include/asm/barrier.h:10:3: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    (__LINUX_ARM_ARCH__ == 6 && defined(CONFIG_CPU_32v6K))
    ^
    ./arch/arm/include/asm/barrier.h:16:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ >= 7
    ^
    ./arch/arm/include/asm/barrier.h:20:35: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #elif defined(CONFIG_CPU_XSC3) || __LINUX_ARM_ARCH__ == 6
    ^
    In file included from include/linux/bitops.h:36:0,
    from include/linux/kernel.h:10,
    from include/linux/list.h:8,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/bitops.h:215:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ < 5
    ^
    In file included from ./arch/arm/include/asm/bitops.h:218:0,
    from include/linux/bitops.h:36,
    from include/linux/kernel.h:10,
    from include/linux/list.h:8,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    include/asm-generic/bitops/__fls.h: In function ‘__fls’:
    include/asm-generic/bitops/__fls.h:17:2: warning: left shift count >= width of type [enabled by default]
    if (!(word & (~0ul << 32))) {
    ^
    include/asm-generic/bitops/__fls.h:19:3: warning: left shift count >= width of type [enabled by default]
    word <<= 32;
    ^
    include/asm-generic/bitops/__fls.h:22:2: warning: left shift count >= width of type [enabled by default]
    if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
    ^
    include/asm-generic/bitops/__fls.h:26:2: warning: left shift count >= width of type [enabled by default]
    if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
    ^
    include/asm-generic/bitops/__fls.h:30:2: warning: left shift count >= width of type [enabled by default]
    if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
    ^
    include/asm-generic/bitops/__fls.h:34:2: warning: left shift count >= width of type [enabled by default]
    if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
    ^
    include/asm-generic/bitops/__fls.h:38:2: warning: left shift count >= width of type [enabled by default]
    if (!(word & (~0ul << (BITS_PER_LONG-1))))
    ^
    In file included from ./arch/arm/include/asm/bitops.h:219:0,
    from include/linux/bitops.h:36,
    from include/linux/kernel.h:10,
    from include/linux/list.h:8,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    include/asm-generic/bitops/__ffs.h: In function ‘__ffs’:
    include/asm-generic/bitops/__ffs.h:19:3: warning: right shift count >= width of type [enabled by default]
    word >>= 32;
    ^
    In file included from ./arch/arm/include/asm/swab.h:18:0,
    from include/uapi/linux/swab.h:6,
    from include/linux/swab.h:4,
    from include/uapi/linux/byteorder/little_endian.h:12,
    from include/linux/byteorder/little_endian.h:4,
    from ./arch/arm/include/uapi/asm/byteorder.h:21,
    from include/asm-generic/bitops/le.h:5,
    from ./arch/arm/include/asm/bitops.h:340,
    from include/linux/bitops.h:36,
    from include/linux/kernel.h:10,
    from include/linux/list.h:8,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/uapi/asm/swab.h: At top level:
    ./arch/arm/include/uapi/asm/swab.h:26:29: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if !defined(__KERNEL__) || __LINUX_ARM_ARCH__ < 6
    ^
    In file included from include/uapi/linux/swab.h:6:0,
    from include/linux/swab.h:4,
    from include/uapi/linux/byteorder/little_endian.h:12,
    from include/linux/byteorder/little_endian.h:4,
    from ./arch/arm/include/uapi/asm/byteorder.h:21,
    from include/asm-generic/bitops/le.h:5,
    from ./arch/arm/include/asm/bitops.h:340,
    from include/linux/bitops.h:36,
    from include/linux/kernel.h:10,
    from include/linux/list.h:8,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/swab.h:20:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ >= 6
    ^
    In file included from ./arch/arm/include/asm/thread_info.h:16:0,
    from include/linux/thread_info.h:54,
    from include/asm-generic/preempt.h:4,
    from arch/arm/include/generated/asm/preempt.h:1,
    from include/linux/preempt.h:18,
    from include/linux/spinlock.h:50,
    from include/linux/seqlock.h:35,
    from include/linux/time.h:5,
    from include/linux/stat.h:18,
    from include/linux/module.h:10,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/fpstate.h:32:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ < 6
    ^
    In file included from ./arch/arm/include/asm/thread_info.h:17:0,
    from include/linux/thread_info.h:54,
    from include/asm-generic/preempt.h:4,
    from arch/arm/include/generated/asm/preempt.h:1,
    from include/linux/preempt.h:18,
    from include/linux/spinlock.h:50,
    from include/linux/seqlock.h:35,
    from include/linux/time.h:5,
    from include/linux/stat.h:18,
    from include/linux/module.h:10,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/page.h:107:2: error: #error Unknown user operations model
    #error Unknown user operations model
    ^
    In file included from include/linux/list.h:7:0,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/memory.h:42:24: warning: “CONFIG_PAGE_OFFSETUL” is not defined [-Wundef]
    #define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) – UL(SZ_16M))
    ^
    ./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
    #define __AC(X,Y) (X##Y)
    ^
    ./arch/arm/include/asm/memory.h:31:15: note: in expansion of macro ‘_AC’
    #define UL(x) _AC(x, UL)
    ^
    ./arch/arm/include/asm/memory.h:42:21: note: in expansion of macro ‘UL’
    #define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) – UL(SZ_16M))
    ^
    ./arch/arm/include/asm/memory.h:61:5: note: in expansion of macro ‘TASK_SIZE’
    #if TASK_SIZE > MODULES_VADDR
    ^
    ./arch/arm/include/asm/memory.h:34:25: warning: “CONFIG_PAGE_OFFSETUL” is not defined [-Wundef]
    #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
    ^
    ./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
    #define __AC(X,Y) (X##Y)
    ^
    ./arch/arm/include/asm/memory.h:31:15: note: in expansion of macro ‘_AC’
    #define UL(x) _AC(x, UL)
    ^
    ./arch/arm/include/asm/memory.h:34:22: note: in expansion of macro ‘UL’
    #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
    ^
    ./arch/arm/include/asm/memory.h:55:25: note: in expansion of macro ‘PAGE_OFFSET’
    #define MODULES_VADDR (PAGE_OFFSET – SZ_16M)
    ^
    ./arch/arm/include/asm/memory.h:61:17: note: in expansion of macro ‘MODULES_VADDR’
    #if TASK_SIZE > MODULES_VADDR
    ^
    In file included from ./arch/arm/include/asm/page.h:163:0,
    from ./arch/arm/include/asm/thread_info.h:17,
    from include/linux/thread_info.h:54,
    from include/asm-generic/preempt.h:4,
    from arch/arm/include/generated/asm/preempt.h:1,
    from include/linux/preempt.h:18,
    from include/linux/spinlock.h:50,
    from include/linux/seqlock.h:35,
    from include/linux/time.h:5,
    from include/linux/stat.h:18,
    from include/linux/module.h:10,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/memory.h:55:37: warning: the right operand of “>” changes sign when promoted [enabled by default]
    #define MODULES_VADDR (PAGE_OFFSET – SZ_16M)
    ^
    ./arch/arm/include/asm/memory.h:61:17: note: in expansion of macro ‘MODULES_VADDR’
    #if TASK_SIZE > MODULES_VADDR
    ^
    In file included from include/linux/list.h:7:0,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/memory.h: In function ‘__virt_to_phys’:
    ./arch/arm/include/asm/memory.h:34:25: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
    #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
    ^
    ./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
    #define __AC(X,Y) (X##Y)
    ^
    ./arch/arm/include/asm/memory.h:31:15: note: in expansion of macro ‘_AC’
    #define UL(x) _AC(x, UL)
    ^
    ./arch/arm/include/asm/memory.h:34:22: note: in expansion of macro ‘UL’
    #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
    ^
    ./arch/arm/include/asm/memory.h:257:26: note: in expansion of macro ‘PAGE_OFFSET’
    return (phys_addr_t)x – PAGE_OFFSET + PHYS_OFFSET;
    ^
    ./arch/arm/include/asm/memory.h:34:25: note: each undeclared identifier is reported only once for each function it appears in
    #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
    ^
    ./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
    #define __AC(X,Y) (X##Y)
    ^
    ./arch/arm/include/asm/memory.h:31:15: note: in expansion of macro ‘_AC’
    #define UL(x) _AC(x, UL)
    ^
    ./arch/arm/include/asm/memory.h:34:22: note: in expansion of macro ‘UL’
    #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
    ^
    ./arch/arm/include/asm/memory.h:257:26: note: in expansion of macro ‘PAGE_OFFSET’
    return (phys_addr_t)x – PAGE_OFFSET + PHYS_OFFSET;
    ^
    ./arch/arm/include/asm/memory.h:155:29: error: ‘CONFIG_PHYS_OFFSETUL’ undeclared (first use in this function)
    #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
    ^
    ./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
    #define __AC(X,Y) (X##Y)
    ^
    ./arch/arm/include/asm/memory.h:31:15: note: in expansion of macro ‘_AC’
    #define UL(x) _AC(x, UL)
    ^
    ./arch/arm/include/asm/memory.h:155:26: note: in expansion of macro ‘UL’
    #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
    ^
    ./arch/arm/include/asm/memory.h:252:21: note: in expansion of macro ‘PLAT_PHYS_OFFSET’
    #define PHYS_OFFSET PLAT_PHYS_OFFSET
    ^
    ./arch/arm/include/asm/memory.h:257:40: note: in expansion of macro ‘PHYS_OFFSET’
    return (phys_addr_t)x – PAGE_OFFSET + PHYS_OFFSET;
    ^
    ./arch/arm/include/asm/memory.h: In function ‘__phys_to_virt’:
    ./arch/arm/include/asm/memory.h:155:29: error: ‘CONFIG_PHYS_OFFSETUL’ undeclared (first use in this function)
    #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
    ^
    ./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
    #define __AC(X,Y) (X##Y)
    ^
    ./arch/arm/include/asm/memory.h:31:15: note: in expansion of macro ‘_AC’
    #define UL(x) _AC(x, UL)
    ^
    ./arch/arm/include/asm/memory.h:155:26: note: in expansion of macro ‘UL’
    #define PLAT_PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
    ^
    ./arch/arm/include/asm/memory.h:252:21: note: in expansion of macro ‘PLAT_PHYS_OFFSET’
    #define PHYS_OFFSET PLAT_PHYS_OFFSET
    ^
    ./arch/arm/include/asm/memory.h:262:13: note: in expansion of macro ‘PHYS_OFFSET’
    return x – PHYS_OFFSET + PAGE_OFFSET;
    ^
    ./arch/arm/include/asm/memory.h:34:25: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
    #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
    ^
    ./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
    #define __AC(X,Y) (X##Y)
    ^
    ./arch/arm/include/asm/memory.h:31:15: note: in expansion of macro ‘_AC’
    #define UL(x) _AC(x, UL)
    ^
    ./arch/arm/include/asm/memory.h:34:22: note: in expansion of macro ‘UL’
    #define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
    ^
    ./arch/arm/include/asm/memory.h:262:27: note: in expansion of macro ‘PAGE_OFFSET’
    return x – PHYS_OFFSET + PAGE_OFFSET;
    ^
    In file included from include/linux/spinlock_up.h:8:0,
    from include/linux/spinlock.h:89,
    from include/linux/seqlock.h:35,
    from include/linux/time.h:5,
    from include/linux/stat.h:18,
    from include/linux/module.h:10,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/processor.h: At top level:
    ./arch/arm/include/asm/processor.h:79:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ == 6 || defined(CONFIG_ARM_ERRATA_754327)
    ^
    ./arch/arm/include/asm/processor.h:107:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ >= 5
    ^
    In file included from ./arch/arm/include/asm/atomic.h:19:0,
    from include/linux/atomic.h:4,
    from include/linux/spinlock.h:416,
    from include/linux/seqlock.h:35,
    from include/linux/time.h:5,
    from include/linux/stat.h:18,
    from include/linux/module.h:10,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/cmpxchg.h: In function ‘__xchg’:
    ./arch/arm/include/asm/cmpxchg.h:34:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ >= 6
    ^
    ./arch/arm/include/asm/cmpxchg.h:42:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ >= 6
    ^
    In file included from ./arch/arm/include/asm/atomic.h:19:0,
    from include/linux/atomic.h:4,
    from include/linux/spinlock.h:416,
    from include/linux/seqlock.h:35,
    from include/linux/time.h:5,
    from include/linux/stat.h:18,
    from include/linux/module.h:10,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/cmpxchg.h: At top level:
    ./arch/arm/include/asm/cmpxchg.h:110:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ < 6
    ^
    In file included from include/linux/atomic.h:4:0,
    from include/linux/spinlock.h:416,
    from include/linux/seqlock.h:35,
    from include/linux/time.h:5,
    from include/linux/stat.h:18,
    from include/linux/module.h:10,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/atomic.h:33:5: warning: “__LINUX_ARM_ARCH__” is not defined [-Wundef]
    #if __LINUX_ARM_ARCH__ >= 6
    ^
    ./arch/arm/include/asm/atomic.h:217:3: error: conflicting types for ‘atomic64_t’
    } atomic64_t;
    ^
    In file included from include/linux/init.h:5:0,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:1:
    include/linux/types.h:182:3: note: previous declaration of ‘atomic64_t’ was here
    } atomic64_t;
    ^
    In file included from include/linux/page-flags-layout.h:25:0,
    from include/linux/mmzone.h:18,
    from include/linux/gfp.h:5,
    from include/linux/kmod.h:22,
    from include/linux/module.h:13,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    ./arch/arm/include/asm/sparsemem.h:21:2: error: #error Sparsemem is not supported on this platform
    #error Sparsemem is not supported on this platform
    ^
    In file included from include/linux/ktime.h:297:0,
    from include/linux/timer.h:5,
    from include/linux/workqueue.h:8,
    from include/linux/srcu.h:34,
    from include/linux/notifier.h:15,
    from include/linux/memory_hotplug.h:6,
    from include/linux/mmzone.h:789,
    from include/linux/gfp.h:5,
    from include/linux/kmod.h:22,
    from include/linux/module.h:13,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    include/linux/timekeeping.h: In function ‘do_settimeofday’:
    include/linux/timekeeping.h:44:2: warning: passing argument 1 of ‘do_settimeofday64’ from incompatible pointer type [enabled by default]
    return do_settimeofday64(ts);
    ^
    include/linux/timekeeping.h:13:12: note: expected ‘const struct timespec64 *’ but argument is of type ‘const struct timespec *’
    extern int do_settimeofday64(const struct timespec64 *ts);
    ^
    include/linux/timekeeping.h: In function ‘__getnstimeofday’:
    include/linux/timekeeping.h:49:2: warning: passing argument 1 of ‘__getnstimeofday64’ from incompatible pointer type [enabled by default]
    return __getnstimeofday64(ts);
    ^
    include/linux/timekeeping.h:34:12: note: expected ‘struct timespec64 *’ but argument is of type ‘struct timespec *’
    extern int __getnstimeofday64(struct timespec64 *tv);
    ^
    include/linux/timekeeping.h: In function ‘getnstimeofday’:
    include/linux/timekeeping.h:54:2: warning: passing argument 1 of ‘getnstimeofday64’ from incompatible pointer type [enabled by default]
    getnstimeofday64(ts);
    ^
    include/linux/timekeeping.h:35:13: note: expected ‘struct timespec64 *’ but argument is of type ‘struct timespec *’
    extern void getnstimeofday64(struct timespec64 *tv);
    ^
    include/linux/timekeeping.h: In function ‘ktime_get_ts’:
    include/linux/timekeeping.h:59:2: warning: passing argument 1 of ‘ktime_get_ts64’ from incompatible pointer type [enabled by default]
    ktime_get_ts64(ts);
    ^
    include/linux/timekeeping.h:30:13: note: expected ‘struct timespec64 *’ but argument is of type ‘struct timespec *’
    extern void ktime_get_ts64(struct timespec64 *ts);
    ^
    include/linux/timekeeping.h: In function ‘ktime_get_real_ts’:
    include/linux/timekeeping.h:64:2: warning: passing argument 1 of ‘getnstimeofday64’ from incompatible pointer type [enabled by default]
    getnstimeofday64(ts);
    ^
    include/linux/timekeeping.h:35:13: note: expected ‘struct timespec64 *’ but argument is of type ‘struct timespec *’
    extern void getnstimeofday64(struct timespec64 *tv);
    ^
    include/linux/timekeeping.h: In function ‘getrawmonotonic’:
    include/linux/timekeeping.h:69:2: warning: passing argument 1 of ‘getrawmonotonic64’ from incompatible pointer type [enabled by default]
    getrawmonotonic64(ts);
    ^
    include/linux/timekeeping.h:29:13: note: expected ‘struct timespec64 *’ but argument is of type ‘struct timespec *’
    extern void getrawmonotonic64(struct timespec64 *ts);
    ^
    include/linux/timekeeping.h: In function ‘get_monotonic_coarse’:
    include/linux/timekeeping.h:74:2: error: incompatible types when returning type ‘struct timespec64’ but ‘struct timespec’ was expected
    return get_monotonic_coarse64();
    ^
    include/linux/timekeeping.h: In function ‘getboottime’:
    include/linux/timekeeping.h:79:2: warning: passing argument 1 of ‘getboottime64’ from incompatible pointer type [enabled by default]
    return getboottime64(ts);
    ^
    include/linux/timekeeping.h:36:13: note: expected ‘struct timespec64 *’ but argument is of type ‘struct timespec *’
    extern void getboottime64(struct timespec64 *ts);
    ^
    In file included from include/linux/gfp.h:5:0,
    from include/linux/kmod.h:22,
    from include/linux/module.h:13,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    include/linux/mmzone.h: At top level:
    include/linux/mmzone.h:1070:36: warning: “SECTION_SIZE_BITS” is not defined [-Wundef]
    #if (MAX_ORDER – 1 + PAGE_SHIFT) > SECTION_SIZE_BITS
    ^
    include/linux/mmzone.h:1071:2: error: #error Allocator MAX_ORDER exceeds SECTION_SIZE
    #error Allocator MAX_ORDER exceeds SECTION_SIZE
    ^
    In file included from include/linux/list.h:8:0,
    from include/linux/module.h:9,
    from /tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.c:2:
    include/linux/page-flags-layout.h:28:25: error: ‘MAX_PHYSMEM_BITS’ undeclared here (not in a function)
    #define SECTIONS_SHIFT (MAX_PHYSMEM_BITS – SECTION_SIZE_BITS)
    ^
    include/linux/kernel.h:67:30: note: in definition of macro ‘DIV_ROUND_UP’
    #define DIV_ROUND_UP(n,d) (((n) + (d) – 1) / (d))
    ^
    include/linux/mmzone.h:1062:34: note: in expansion of macro ‘SECTIONS_SHIFT’
    #define NR_MEM_SECTIONS (1UL << SECTIONS_SHIFT)
    ^
    include/linux/mmzone.h:1120:39: note: in expansion of macro ‘NR_MEM_SECTIONS’
    #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT)
    ^
    include/linux/mmzone.h:1124:40: note: in expansion of macro ‘NR_SECTION_ROOTS’
    extern struct mem_section *mem_section[NR_SECTION_ROOTS];
    ^
    include/linux/page-flags-layout.h:28:44: error: ‘SECTION_SIZE_BITS’ undeclared here (not in a function)
    #define SECTIONS_SHIFT (MAX_PHYSMEM_BITS – SECTION_SIZE_BITS)
    ^
    include/linux/kernel.h:67:30: note: in definition of macro ‘DIV_ROUND_UP’
    #define DIV_ROUND_UP(n,d) (((n) + (d) – 1) / (d))
    ^
    include/linux/mmzone.h:1062:34: note: in expansion of macro ‘SECTIONS_SHIFT’
    #define NR_MEM_SECTIONS (1UL << SECTIONS_SHIFT)
    ^
    include/linux/mmzone.h:1120:39: note: in expansion of macro ‘NR_MEM_SECTIONS’
    #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT)
    ^
    include/linux/mmzone.h:1124:40: note: in expansion of macro ‘NR_SECTION_ROOTS’
    extern struct mem_section *mem_section[NR_SECTION_ROOTS];
    ^
    make[1]: *** [/tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb/VisualGDBSpecDetectModule_main.o] Error 1
    make: *** [_module_/tmp/VisualGDB-7c78f1a7-238e-4048-850a-d4f0fbe165bb] Error 2

    if someone could help out with this I would greatly appreciate it.

    BTW:  My build vm is:

    joedirt@ubuntu:~/raspberry/linux/include/config$ uname -a
    Linux ubuntu 3.19.0-31-generic #36-Ubuntu SMP Wed Oct 7 15:04:02 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

    joedirt@ubuntu:~/raspberry/linux/include/config$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 15.04
    Release: 15.04
    Codename: vivid

    running inside VMWare 10

    #7323
    support
    Keymaster

    It looks like the configuration file is missing. Normally it should be created when you build the kernel as described in this tutorial. Have you managed to build the kernel successfully?

    #7326
    mmessuri
    Participant

    Bazis:

    I was never able to build the kernel and gave up trying.

    #7332
    support
    Keymaster

    Hi,

    Sorry to hear that. Building the kernel can be indeed tricky, but we tried to cover all the complexities in our kernel building tutorial. Did you encounter problems not mentioned there?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.