arm_gcc-3.4.6_uClibc-0.9.28 - arm_v7-a_gcc-4.5-linaro_uClibc-0.9.32. compile error
Carmelo Amoroso
carmelo73 at gmail.com
Wed Jun 5 04:26:00 UTC 2013
Il giorno 05/giu/2013 05:04, "Zhang Yu" <zhang444 at oki.com> ha scritto:
>
>
>
> 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'
>
Check your header line 152
>
/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'
>
As above
> Can anybody help me solve this problem. Does this problem related
to
> the version of the compiler?
>
> Thanks a lot for your help!
>
>
I guess you should ask to your toolchain provider
>
Carmelo _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
More information about the uClibc
mailing list