当前位置: 技术问答>linux和unix
编译 arm linux的时候报error,请高手帮忙解决
来源: 互联网 发布时间:2017-04-16
本文导语: 编译arm linux的时候,出现如下错误,请帮忙解决. In file included from /usr/src/arm-linux/linux-2.6.39.1/arch/arm/include/asm/gpio.h:5:0, from include/linux/gpio.h:7, from drivers/gpio/sx150x.c:17:...
编译arm linux的时候,出现如下错误,请帮忙解决.
In file included from /usr/src/arm-linux/linux-2.6.39.1/arch/arm/include/asm/gpio.h:5:0,
from include/linux/gpio.h:7,
from drivers/gpio/sx150x.c:17:
arch/arm/mach-at91/include/mach/gpio.h:193:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_GPIO_periph’
arch/arm/mach-at91/include/mach/gpio.h:194:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_A_periph’
arch/arm/mach-at91/include/mach/gpio.h:195:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_B_periph’
arch/arm/mach-at91/include/mach/gpio.h:196:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_gpio_input’
arch/arm/mach-at91/include/mach/gpio.h:197:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_gpio_output’
arch/arm/mach-at91/include/mach/gpio.h:198:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_deglitch’
arch/arm/mach-at91/include/mach/gpio.h:199:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_multi_drive’
make[2]: *** [drivers/gpio/sx150x.o] Error 1
make[1]: *** [drivers/gpio] Error 2
make: *** [drivers] Error 2
In file included from /usr/src/arm-linux/linux-2.6.39.1/arch/arm/include/asm/gpio.h:5:0,
from include/linux/gpio.h:7,
from drivers/gpio/sx150x.c:17:
arch/arm/mach-at91/include/mach/gpio.h:193:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_GPIO_periph’
arch/arm/mach-at91/include/mach/gpio.h:194:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_A_periph’
arch/arm/mach-at91/include/mach/gpio.h:195:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_B_periph’
arch/arm/mach-at91/include/mach/gpio.h:196:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_gpio_input’
arch/arm/mach-at91/include/mach/gpio.h:197:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_gpio_output’
arch/arm/mach-at91/include/mach/gpio.h:198:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_deglitch’
arch/arm/mach-at91/include/mach/gpio.h:199:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘at91_set_multi_drive’
make[2]: *** [drivers/gpio/sx150x.o] Error 1
make[1]: *** [drivers/gpio] Error 2
make: *** [drivers] Error 2
|
这之前的宏定义不识别吧,你可以.c里加上相应的头文件#include 试试