Skip to contentSkip to conversation

Fix for compile error with gcc3

U-Boot rhabarber1848 3 participants 3 messages Sep 29, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

compiling U-Boot 2011.09-rc2 with gcc-3.4.6 fails with this error:

In file included from u-boot-2011.09-rc2/include/linux/compiler.h:40,

                 from serial.c:29:

u-boot-2011.09-rc2/include/linux/compiler-gcc.h:87:30: linux/compiler-gcc3.h: No such file or directory

Adding compiler-gcc3.h from Linux kernel source to u-boot-2011.09-rc2/include/linux/ fixes this gcc3-only problem.

Kind regards, rhabarber1848

#1 lore raw

Hi rhabarber1848,

A patch was recently submitted:

http://patchwork.ozlabs.org/patch/116180

Thanks,
--Scott

Quoted 19 lines · rhabarber1848 wrote:

Hi,

compiling U-Boot 2011.09-rc2 with gcc-3.4.6 fails with this error:

In file included from u-boot-2011.09-rc2/include/linux/compiler.h:40,

                 from serial.c:29:

u-boot-2011.09-rc2/include/linux/compiler-gcc.h:87:30: linux/compiler-gcc3.h: No such file or directory

Adding compiler-gcc3.h from Linux kernel source to u-boot-2011.09-rc2/include/linux/ fixes this gcc3-only problem.

Kind regards, rhabarber1848

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#2 lore raw
In reply to rhabarber1848
Quoted 11 lines · On Thursday, September 29, 2011 02:13:28 PM rhabarber1848 wrote:

Hi,

compiling U-Boot 2011.09-rc2 with gcc-3.4.6 fails with this error:

In file included from u-boot-2011.09-rc2/include/linux/compiler.h:40,

                 from serial.c:29:

u-boot-2011.09-rc2/include/linux/compiler-gcc.h:87:30:
linux/compiler-gcc3.h: No such file or directory

Adding compiler-gcc3.h from Linux kernel source to u-boot-2011.09-rc2/include/linux/ fixes this gcc3-only problem.

Hi,

why do you still use gcc3, do you have any special reason for that ? Can you update to gcc4?

Cheers