[Armadillo:06186] Re: armadillo-500 コンパイルできません

Takenoshita Koyo email@hidden
2010年 11月 18日 (木) 16:31:21 JST


竹之下です。

頂いた情報だけですと、何を目的として、何をしたのかが
分からないため、適切な助言を差し上げることができません。

もう少し詳しく教えていただけますか?
以下のような情報があれば、何か分かるかもしれません。

--- 具体例 ---
* 目的
Armadillo-500のGPIOを操作するプログラムを作りたい。

* 環境
開発環境: ATDE2 v20101104
ターゲット: Armadillo-500
atmark-dist:v20090318
linux-kernel:v2.6.26-at6
                       ~~ ここが大事です

* 参考にした情報
Atmark Dist 開発ガイド: v1.0.7
       10. 新規アプリケーションの追加方法
       10.2. プロダクト別のアプリケーション

* 実行した手順

1. 以下のソースコードを作成。
atmark-dist/vendor/AtmarkTechno/Armadillo-500/test/test.c (?)
===
#include <stdio.h>
#include <asm/arch/mx31_pins.h>
#include <asm/arch/gpio.h>

int main(int argc, char *argv[])
{
	mxc_set_gpio_dataout();

	return 0;
}
===

3. 以下のMakefileを作成
(略)

4. 以下のコマンドでコンパイル
[PC ~/atmark-dist]$ make

* 得られた結果
(送っていただいたエラーメッセージ)

--- 具体例ここまで ---

メーリングリストを有意義に活用していただくために、
結城浩さんが公開している、「技術系メーリングリストで質問
するときのパターン・ランゲージ」
http://www.hyuki.com/writing/techask.html
をお勧めしています。ご一読ください。

On Thu, 18 Nov 2010 16:04:37 +0900
naru <email@hidden> wrote:

> #include <asm/arch/mx31_pins.h>
> #include <asm/arch/gpio.h>
> をインクルードしてコンパイルを行うと以下のエラーが出ます。
> 
> arm-linux-gcc  -c -O2 -I/usr/arm-linux/include
> -I/usr/lib/gcc/arm-linux-gnu/4.1.2//include -Dlinux -D__linux__ -Dunix
> -DEMBED -idirafter /home/user/work/atmark-dist-20090318/include -Wall
> -fno-common  -I/home/user/work/atmark-dist-20090318
> -I/home/user/work/atmark-dist-20090318/linux-2.6.x/include -o test.o
> test.c
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:7,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitops.h:
> In function ‘get_bitmask_order’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitops.h:29:
> warning: implicit declaration of function ‘fls’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitops.h:
> In function ‘hweight_long’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitops.h:45:
> warning: implicit declaration of function ‘hweight32’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitops.h:45:
> warning: implicit declaration of function ‘hweight64’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitops.h:
> In function ‘fls_long’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitops.h:112:
> warning: implicit declaration of function ‘fls64’
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/preempt.h:9,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:8,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/thread_info.h:
> At top level:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/thread_info.h:26:
> error: expected specifier-qualifier-list before ‘u32’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/thread_info.h:39:
> error: expected specifier-qualifier-list before ‘u64’
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/preempt.h:11,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:8,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/list.h:
> In function ‘__list_add_rcu’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/list.h:98:
> warning: implicit declaration of function ‘smp_wmb’
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:90,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:9,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_zero’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:141:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:141:
> error: (Each undeclared identifier is reported only once
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:141:
> error: for each function it appears in.)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:144:
> warning: implicit declaration of function ‘BITS_TO_LONGS’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_fill’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:156:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_copy’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:162:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_and’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:173:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_or’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:182:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_xor’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:191:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_andnot’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:200:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_complement’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:209:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_equal’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:218:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_intersects’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:227:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_subset’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:236:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_empty’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:244:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_full’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:252:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_weight’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:260:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_shift_right’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:268:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:
> In function ‘bitmap_shift_left’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/bitmap.h:277:
> error: ‘BITS_PER_LONG’ undeclared (first use in this function)
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:9,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> At top level:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:92:
> error: expected specifier-qualifier-list before ‘DECLARE_BITMAP’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpu_set’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:98:
> warning: implicit declaration of function ‘set_bit’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:98:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpu_clear’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:104:
> warning: implicit declaration of function ‘clear_bit’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:104:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_setall’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:110:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_clear’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:116:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpu_test_and_set’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:125:
> warning: implicit declaration of function ‘test_and_set_bit’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:125:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_and’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:132:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:132:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:132:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_or’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:139:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:139:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:139:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_xor’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:146:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:146:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:146:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_andnot’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:154:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:154:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:154:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_complement’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:161:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:161:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_equal’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:168:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:168:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_intersects’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:175:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:175:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_subset’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:182:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:182:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_empty’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:188:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_full’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:194:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_weight’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:200:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_shift_right’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:208:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:208:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_shift_left’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:216:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:216:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpumask_scnprintf’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:289:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpumask_parse_user’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:297:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpulist_scnprintf’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:305:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpulist_parse’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:311:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpu_remap’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:319:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:319:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_remap’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:327:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:327:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:327:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:327:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_onto’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:335:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:335:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:335:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:
> In function ‘__cpus_fold’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:343:
> error: ‘cpumask_t’ has no member named ‘bits’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/cpumask.h:343:
> error: ‘cpumask_t’ has no member named ‘bits’
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/hardware.h:91,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/hardware.h:16,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/irqs.h:14,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/irq.h:4,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/hardirq.h:6,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/hardirq.h:7,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:11,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/mxc.h:
> At top level:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/mxc.h:33:
> error: expected specifier-qualifier-list before ‘u32’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/mxc.h:82:
> error: expected specifier-qualifier-list before ‘u32’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/mxc.h:89:
> error: expected ‘)’ before ‘num’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/mxc.h:90:
> error: expected ‘)’ before ‘num’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/mxc.h:187:
> error: expected specifier-qualifier-list before ‘u32’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/mxc.h:195:
> error: expected specifier-qualifier-list before ‘u32’
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/irq.h:4,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/hardirq.h:6,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/hardirq.h:7,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:11,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/irqs.h:37:
> error: expected ‘)’ before ‘*’ token
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:11,
>                 from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/hardirq.h:60:2:
> error: #error PREEMPT_ACTIVE is too low!
> In file included from
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:27,
>                 from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:72:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘request_irq’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:78:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘devm_request_irq’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:
> In function ‘irq_set_affinity’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:114:
> error: ‘EINVAL’ undeclared (first use in this function)
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:
> At top level:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:225:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cli’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:229:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sti’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:233:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘save_flags’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:238:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘restore_flags’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:243:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘save_and_cli’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:
> In function ‘tasklet_disable_nosync’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:383:
> warning: implicit declaration of function ‘atomic_inc’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:384:
> warning: implicit declaration of function ‘smp_mb__after_atomic_inc’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:
> In function ‘tasklet_disable’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:391:
> warning: implicit declaration of function ‘smp_mb’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:
> In function ‘tasklet_enable’:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:396:
> warning: implicit declaration of function ‘smp_mb__before_atomic_dec’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:397:
> warning: implicit declaration of function ‘atomic_dec’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:
> At top level:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:467:
> warning: ‘struct seq_file’ declared inside parameter list
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/linux/interrupt.h:467:
> warning: its scope is only this definition or declaration, which is
> probably not what you want
> In file included from test.c:2:
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:78:
> error: expected declaration specifiers or ‘...’ before ‘bool’
> /home/user/work/atmark-dist-20090318/linux-2.6.x/include/asm/arch/gpio.h:152:
> error: expected declaration specifiers or ‘...’ before ‘u32’
> test.c: In function ‘main’:
> test.c:6: error: too many arguments to function ‘mxc_set_gpio_dataout’
> make: *** [test.o] エラー 1
> 
> 
> 何か設定する必要があるのでしょうか?
> 助言お願いします。
> 
> 開発環境
> Armadillo-500
> atmark-dist:v20090318
> linux-kernel:v2.6.26-a
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> 


-- 
Takenoshita Koyo <email@hidden>




armadillo メーリングリストの案内