make distclean
make smdk2410_config
make
错误:
gcc -Wall -pedantic -O -I/usr/include -c -o astest.o astest.c
astest.c: In function 'process_section':
astest.c:31: error: 'struct bfd_section' has no member named '_cooked_size'
astest.c:31: error: 'struct bfd_section' has no member named '_raw_size'
astest.c:35: warning: format '%ld' expects type 'long int', but argument 4 has type 'file_ptr'
astest.c:38: warning: format '%ld' expects type 'long int', but argument 2 has type 'file_ptr'
astest.c:38: warning: format '%ld' expects type 'long int', but argument 3 has type 'file_ptr'
astest.c:41: warning: format '%ld' expects type 'long int', but argument 2 has type 'file_ptr'
make[2]: *** [astest.o] 错误 1
make[2]: Leaving directory `/HHARM9-EDU/ppcboot-2.0.0/tools/gdb'
make[1]: *** [subdirs] 错误 1
make[1]: Leaving directory `/HHARM9-EDU/ppcboot-2.0.0/tools'
make: *** [subdirs] 错误 1
make smdk2410_config
make
错误:
gcc -Wall -pedantic -O -I/usr/include -c -o astest.o astest.c
astest.c: In function 'process_section':
astest.c:31: error: 'struct bfd_section' has no member named '_cooked_size'
astest.c:31: error: 'struct bfd_section' has no member named '_raw_size'
astest.c:35: warning: format '%ld' expects type 'long int', but argument 4 has type 'file_ptr'
astest.c:38: warning: format '%ld' expects type 'long int', but argument 2 has type 'file_ptr'
astest.c:38: warning: format '%ld' expects type 'long int', but argument 3 has type 'file_ptr'
astest.c:41: warning: format '%ld' expects type 'long int', but argument 2 has type 'file_ptr'
make[2]: *** [astest.o] 错误 1
make[2]: Leaving directory `/HHARM9-EDU/ppcboot-2.0.0/tools/gdb'
make[1]: *** [subdirs] 错误 1
make[1]: Leaving directory `/HHARM9-EDU/ppcboot-2.0.0/tools'
make: *** [subdirs] 错误 1
本文记录了一次使用GCC编译过程中出现的错误信息,并详细解释了这些错误的原因,包括结构体成员名称错误及格式化输出类型不匹配警告等。
2089

被折叠的 条评论
为什么被折叠?



