Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build with Sourcery CodeBench Lite 2013.11 #3

Open
jserv opened this issue Feb 5, 2014 · 1 comment
Open

Fail to build with Sourcery CodeBench Lite 2013.11 #3

jserv opened this issue Feb 5, 2014 · 1 comment

Comments

@jserv
Copy link

jserv commented Feb 5, 2014

I was attempting to build u-boot with Sourcery CodeBench Lite ARM EABI version 2013.11. GCC complains as following:

arm-none-eabi-gcc  -g  -Os   -g2 -mthumb -mcpu=cortex-m3 -fsigned-char -O2 -fno-builtin-puts -fno-common -ffixed-r8 -D__KERNEL__ -I/tmp/u-boot/include -fno-builtin -ffreestanding -isystem /usr/local/csl/arm-2013.11/bin/../lib/gcc/arm-none-eabi/4.8.1/include -pipe  -DCONFIG_ARM -D__ARM__ -DCONFIG_MEM_NVM_BASE="0x00000000" -DCONFIG_MEM_NVM_LEN="(1024 * 1024 * 2)" -DCONFIG_MEM_NVM_UBOOT_OFF="0x0" -DCONFIG_MEM_RAM_BASE="0x20000000" -DCONFIG_MEM_RAM_LEN="(20 * 1024)" -DCONFIG_MEM_RAM_BUF_LEN="(88 * 1024)" -DCONFIG_MEM_MALLOC_LEN="(16 * 1024)" -DCONFIG_MEM_STACK_LEN="(4 * 1024)" -I/tmp/u-boot/cpu/arm_cortexm3 -Wall -Wstrict-prototypes -fno-stack-protector   -o cmd_cptf.o cmd_cptf.c -c
In file included from /usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include/stdint.h:11:0,
                 from /usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include-fixed/sys/cdefs.h:54,
                 from /usr/local/csl/arm-2013.11/arm-none-eabi/include/string.h:12,
                 from cmd_cptf.c:23:
/usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include/stdint-gcc.h:40:24: error: conflicting types for 'int32_t'
 typedef __INT32_TYPE__ int32_t;
                        ^
In file included from /tmp/u-boot/include/common.h:39:0,
                 from cmd_cptf.c:21:
/tmp/u-boot/include/linux/types.h:102:17: note: previous declaration of 'int32_t' was here
 typedef  __s32  int32_t;

The workaround is to remove #include <string.h> in file cpu/arm_cortexm3/cmd_cptf.c.

@sposelenov-emcraft
Copy link
Contributor

Hello Jim,

Thanks for the note.

We are still use the 2010q1 CodeSourcery arm-uclinuxeabi toolchain for
building U-Boot, it works well for us.

Regards,

Sergei Poselenov,
Emcraft Systems

On Wed, 05 Feb 2014 10:06:37
-0800 Jim Huang [email protected] wrote:

I was attempting to build u-boot with Sourcery CodeBench
Lite

ARM EABI version 2013.11. GCC complains as following: arm-none-eabi-gcc -g -Os -g2 -mthumb -mcpu=cortex-m3 -fsigned-char -O2 -fno-builtin-puts -fno-common -ffixed-r8 -D__KERNEL__ -I/tmp/u-boot/include -fno-builtin -ffreestanding -isystem /usr/local/csl/arm-2013.11/bin/../lib/gcc/arm-none-eabi/4.8.1/include -pipe -DCONFIG_ARM -D__ARM__ -DCONFIG_MEM_NVM_BASE="0x00000000" -DCONFIG_MEM_NVM_LEN="(1024 * 1024 * 2)" -DCONFIG_MEM_NVM_UBOOT_OFF="0x0" -DCONFIG_MEM_RAM_BASE="0x20000000" -DCONFIG_MEM_RAM_LEN="(20 * 1024)" -DCONFIG_MEM_RAM_BUF_LEN="(88 * 1024)" -DCONFIG_MEM_MALLOC_LEN="(16 * 1024)" -DCONFIG_MEM_STACK_LEN="(4 * 1024)" -I/tmp/u-boot/cpu/arm_cortexm3 -Wall -Wstrict-prototypes -fno-stack-protector -o cmd_cptf.o cmd_cptf.c -c In file included from /usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include/stdint.h:11:0, from /usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include-fixed/sys/cdefs.h:54, from /usr/local/csl/arm-2013.11/arm-none-eabi/include/string.h:12, from cmd_cptf.c:23: /usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include/stdint-gcc.h:40:24: error: conflicting types for 'int32_t' typedef __INT32_TYPE__ int32_t; ^ In file included from /tmp/u-boot/include/common.h:39:0, from cmd_cptf.c:21: /tmp/u-boot/include/linux/types.h:102:17: note: previous declaration of 'int32_t' was here typedef __s32 int32_t; The workaround is to remove #include <string.h> in file
cpu/arm_cortexm3/cmd_cptf.c.


Reply to this email directly or view it on GitHub:
#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants