arm_gcc-3.4.6_uClibc-0.9.28 - arm_v7-a_gcc-4.5-linaro_uClibc-0.9.32. compile error

Zhang Yu zhang444 at oki.com
Wed Jun 5 03:04:31 UTC 2013



uclibc:

	First, thanks for reading my mail.
	I encountered a curious problem about the uclibc version issue.
	Here is a example.
	I edited a C program below
	
----------------------------------------------------------------------------
---
	#define ushort unsigned short
#include <sys/types.h>

int main()
{
    		return 0;
}
----------------------------------------------------------------------------
---
I compiled this program on toolchain-arm_gcc-3.4.6_uClibc-0.9.28, it works
well, programs can be compiled.
But I upgrade my toolchain to
toolchain-arm_v7-a_gcc-4.5-linaro_uClibc-0.9.32_eabi and with the same
program.
The program can't be compiled.
Here is the error message:
	
/work/team-zhangyu/0524/ngn-hgw/OS/staging_dir_arm/bin/arm-openwrt-linux-ucl
ibcgnueabi-gcc -Wall -g -o test -I../../include ../../common/libCOMMON_LIB.a
../../common/com_semaphore.o test.c In file included from test.c:4:0:
	
/work/team-zhangyu/0524/ngn-hgw/OS_5G/staging_dir/toolchain-arm_v7-a_gcc-4.5
-linaro_uClibc-0.9.32_eabi/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.5.4/../
../../../arm-openwrt-linux-uclibcgnueabi/sys-include/sys/types.h:152:28:
error: duplicate 'unsigned'
	
/work/team-zhangyu/0524/ngn-hgw/OS_5G/staging_dir/toolchain-arm_v7-a_gcc-4.5
-linaro_uClibc-0.9.32_eabi/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.5.4/../
../../../arm-openwrt-linux-uclibcgnueabi/sys-include/sys/types.h:152:28:
error: duplicate 'short'

	Can anybody help me solve this problem. Does this problem related to
the version of the compiler?

Thanks a lot for your help!




More information about the uClibc mailing list