Makefile:6: recipe for target 'all' failed


#1

Hi,

i flashed linaro on snapdragon board &
tried to execute the make but it was failed with following error msg. But it is working fine in the ubuntu.

make -C /lib/modules/4.0.0-linaro-lt-qcom/build M=/home/linaro/Downloads modules
make[1]: Entering directory '/usr/src/linux-headers-4.0.0-linaro-lt-qcom’
CC [M] /home/linaro/Downloads/lcd.o
/home/linaro/Downloads/lcd.c:90:12: warning: initialization from incompatible pointer type
.write = writeToLCD,
^
/home/linaro/Downloads/lcd.c:90:12: warning: (near initialization for ‘fops.write’)
/home/linaro/Downloads/lcd.c:81:16: warning: ‘lcd_read’ declared ‘static’ but never defined [-Wunused-function]
static ssize_t lcd_read(struct file *, char *, size_t, loff_t ); / reading data from lcd */
^
/home/linaro/Downloads/lcd.c:82:16: warning: ‘lcd_write’ declared ‘static’ but never defined [-Wunused-function]
static ssize_t lcd_write(struct file *, const char *, size_t, loff_t );/ write data to lcd */
^
scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: “(” unexpected
scripts/Makefile.build:264: recipe for target ‘/home/linaro/Downloads/lcd.o’ failed
make[2]: *** [/home/linaro/Downloads/lcd.o] Error 2
Makefile:1390: recipe for target ‘module/home/linaro/Downloads’ failed
make[1]: *** [module/home/linaro/Downloads] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.0.0-linaro-lt-qcom’
Makefile:6: recipe for target ‘all’ failed
make: *** [all] Error 2