AnsweredAssumed Answered

Error while cross compiling my driver with the toolchain

Question asked by mutyalarao neelapala on Aug 24, 2015
Latest reply on Aug 28, 2015 by mutyalarao neelapala

Platform : IMX6SL.

kernel : 3.14

 

make[1]: Entering directory `/home/test/vikas/Driver_src/host/common_hal'
Compiling gpl and non gpl modules
make -C/home/test/fsl-community-bsp/build/tmp/work/imx6slevk-poky-linux-gnueabi/linux-fslc-mx6/3.14-1.0.x+gitAUTOINC+966457723b-r0/git/ SUBDIRS=/home/test/vikas/Driver_src/host/common_hal modules
make[2]: Entering directory `/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source'

 

  WARNING: Symbol version dump /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/Module.symvers
           is missing; modules will have no dependencies and modversions.

 

  CC [M]  /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.o
In file included from include/linux/irqflags.h:15:0,
                 from /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/bitops.h:27,
                 from include/linux/bitops.h:36,
                 from include/linux/kernel.h:10,
                 from include/linux/plist.h:78,
                 from include/linux/pm_qos.h:7,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/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 include/linux/bitops.h:36:0,
                 from include/linux/kernel.h:10,
                 from include/linux/plist.h:78,
                 from include/linux/pm_qos.h:7,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/bitops.h:217:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ < 5
     ^
In file included from /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/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 /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/uapi/asm/byteorder.h:21,
                 from include/asm-generic/bitops/le.h:5,
                 from /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/bitops.h:342,
                 from include/linux/bitops.h:36,
                 from include/linux/kernel.h:10,
                 from include/linux/plist.h:78,
                 from include/linux/pm_qos.h:7,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/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 /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/uapi/asm/byteorder.h:21,
                 from include/asm-generic/bitops/le.h:5,
                 from /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/bitops.h:342,
                 from include/linux/bitops.h:36,
                 from include/linux/kernel.h:10,
                 from include/linux/plist.h:78,
                 from include/linux/pm_qos.h:7,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/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 /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/thread_info.h:16:0,
                 from include/linux/thread_info.h:54,
                 from include/asm-generic/current.h:4,
                 from include/linux/mutex.h:13,
                 from include/linux/notifier.h:13,
                 from include/linux/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/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 /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/domain.h:14:0,
                 from /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/thread_info.h:28,
                 from include/linux/thread_info.h:54,
                 from include/asm-generic/current.h:4,
                 from include/linux/mutex.h:13,
                 from include/linux/notifier.h:13,
                 from include/linux/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/barrier.h:9:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ >= 7 ||  \
     ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/barrier.h:10:3: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
  (__LINUX_ARM_ARCH__ == 6 && defined(CONFIG_CPU_32v6K))
   ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/barrier.h:16:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ >= 7
     ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/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/prefetch.h:14:0,
                 from /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/atomic.h:15,
                 from include/linux/atomic.h:4,
                 from include/linux/mutex.h:18,
                 from include/linux/notifier.h:13,
                 from include/linux/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/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)
     ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/processor.h:105:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ >= 5
     ^
In file included from /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/atomic.h:19:0,
                 from include/linux/atomic.h:4,
                 from include/linux/mutex.h:18,
                 from include/linux/notifier.h:13,
                 from include/linux/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/cmpxchg.h: In function '__xchg':
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/cmpxchg.h:33:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ >= 6
     ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/cmpxchg.h:40:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ >= 6
     ^
In file included from /home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/atomic.h:19:0,
                 from include/linux/atomic.h:4,
                 from include/linux/mutex.h:18,
                 from include/linux/notifier.h:13,
                 from include/linux/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/cmpxchg.h: At top level:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/cmpxchg.h:108:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ < 6
     ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/cmpxchg.h:112:2: error: #error "SMP is not supported on this platform"
#error "SMP is not supported on this platform"
  ^
In file included from include/linux/atomic.h:4:0,
                 from include/linux/mutex.h:18,
                 from include/linux/notifier.h:13,
                 from include/linux/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/atomic.h:33:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ >= 6
     ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/atomic.h:144:2: error: #error SMP not supported on pre-ARMv6 CPUs
#error SMP not supported on pre-ARMv6 CPUs
  ^
In file included from include/linux/spinlock.h:87:0,
                 from include/linux/rwsem.h:15,
                 from include/linux/notifier.h:14,
                 from include/linux/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/spinlock.h:4:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
#if __LINUX_ARM_ARCH__ < 6
     ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/spinlock.h:5:2: error: #error SMP not supported on pre-ARMv6 CPUs
#error SMP not supported on pre-ARMv6 CPUs
  ^
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/spinlock.h: In function 'arch_spin_lock':
/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source/arch/arm/include/asm/spinlock.h:76:3: error: implicit declaration of function 'wfe' [-Werror=implicit-function-declaration]
   wfe();
   ^
In file included from include/linux/rwsem.h:40:0,
                 from include/linux/notifier.h:14,
                 from include/linux/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
include/asm-generic/rwsem.h: In function '__down_read_trylock':
include/asm-generic/rwsem.h:45:3: error: implicit declaration of function 'cmpxchg' [-Werror=implicit-function-declaration]
   if (tmp == cmpxchg(&sem->count, tmp,
   ^
In file included from include/linux/ktime.h:25: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/pm_qos.h:8,
                 from include/linux/netdevice.h:28,
                 from /home/test/vikas/Driver_src/host/common_hal/include/linux/onebox_common.h:21,
                 from /home/test/vikas/Driver_src/host/common_hal/intfdep/sdio/osd_sdio/linux/onebox_sdio_main_osd.c:17:
include/linux/jiffies.h: At top level:
include/linux/jiffies.h:9:38: fatal error: asm/param.h: No such file or directory
#include <asm/param.h>   /* for HZ */
                                      ^
cc1: some warnings being treated as errors
compilation terminated.
make[3]: *** [/home/test/vikas/Driver_src/host/intfdep/sdio/osd_sdio/linux/main_osd.o] Error 1
make[2]: *** [_module_/home/test/vikas/Driver_src/host/] Error 2
make[2]: Leaving directory `/home/test/fsl-community-bsp/build/tmp/work-shared/imx6slevk/kernel-source'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/test/vikas/Driver_src/host/common_hal'
make: *** [obx_common_hal] Error 2
root@test-VirtualBox:/home/test/vikas/Driver_src/host#

 

I am getting so many errors, What could be the problem, I have taked fsl-community-bsp with 3.14 kernel???

Please suggest me how to proceed???

 

Thank you in advance!!!!!

Outcomes