* [U-Boot] u-boot fails to build for powerpc with gcc 4.5.1
@ 2011-03-31 22:27 Darren Hart
2011-03-31 22:56 ` Kumar Gala
0 siblings, 1 reply; 2+ messages in thread
From: Darren Hart @ 2011-03-31 22:27 UTC (permalink / raw)
To: u-boot
The u-boot recipe in Poky (OE core) fails to build u-boot for powerpc.
I've tested the following versions:
v2010.09
v2010.12
v2011.03
All versions fail with:
$ make ARCH=powerpc
CROSS_COMPILE=/opt/poky/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/ppc603e-poky-linux/powerpc-poky-linux-
MPC8315ERDB_config
awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }' boards.cfg >
.boards.depend
Generating include/autoconf.mk
cc1: error: Do not use -Os option if --enable-target-optspace is not set.
Generating include/autoconf.mk.dep
cc1: error: Do not use -Os option if --enable-target-optspace is not set.
Configuring for MPC8315ERDB board...
I got past this with:
diff --git a/config.mk b/config.mk
index eb95093..374b262 100644
--- a/config.mk
+++ b/config.mk
@@ -151,7 +151,7 @@ ARFLAGS = crv
endif
RELFLAGS= $(PLATFORM_RELFLAGS)
DBGFLAGS= -g # -DDEBUG
-OPTFLAGS= -Os #-fomit-frame-pointer
+OPTFLAGS= #-Os #-fomit-frame-pointer
ifndef LDSCRIPT
#LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds.debug
ifeq ($(CONFIG_NAND_U_BOOT),y)
v2010.09 fails with:
crc32.c:85:1: error: initializer element is not constant crc32.c:85:1: error: (near initialization for 'crc_table[0]')
This appears to be fixed in later versions.
v2010.12 and v2011.03 fail with:
ehci-hcd.c:59:3: error: initializer element is not constant
Full build logs are available in the bug report here:
http://bugzilla.pokylinux.org/show_bug.cgi?id=943
Thanks,
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] u-boot fails to build for powerpc with gcc 4.5.1
2011-03-31 22:27 [U-Boot] u-boot fails to build for powerpc with gcc 4.5.1 Darren Hart
@ 2011-03-31 22:56 ` Kumar Gala
0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2011-03-31 22:56 UTC (permalink / raw)
To: u-boot
On Mar 31, 2011, at 5:27 PM, Darren Hart wrote:
> The u-boot recipe in Poky (OE core) fails to build u-boot for powerpc.
> I've tested the following versions:
>
> v2010.09
> v2010.12
> v2011.03
>
> All versions fail with:
> $ make ARCH=powerpc
> CROSS_COMPILE=/opt/poky/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/ppc603e-poky-linux/powerpc-poky-linux-
> MPC8315ERDB_config
> awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }' boards.cfg >
> .boards.depend
> Generating include/autoconf.mk
> cc1: error: Do not use -Os option if --enable-target-optspace is not set.
> Generating include/autoconf.mk.dep
> cc1: error: Do not use -Os option if --enable-target-optspace is not set.
> Configuring for MPC8315ERDB board...
>
> I got past this with:
> diff --git a/config.mk b/config.mk
> index eb95093..374b262 100644
> --- a/config.mk
> +++ b/config.mk
> @@ -151,7 +151,7 @@ ARFLAGS = crv
> endif
> RELFLAGS= $(PLATFORM_RELFLAGS)
> DBGFLAGS= -g # -DDEBUG
> -OPTFLAGS= -Os #-fomit-frame-pointer
> +OPTFLAGS= #-Os #-fomit-frame-pointer
> ifndef LDSCRIPT
> #LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds.debug
> ifeq ($(CONFIG_NAND_U_BOOT),y)
>
>
>
> v2010.09 fails with:
> crc32.c:85:1: error: initializer element is not constant crc32.c:85:1: error: (near initialization for 'crc_table[0]')
> This appears to be fixed in later versions.
>
>
> v2010.12 and v2011.03 fail with:
> ehci-hcd.c:59:3: error: initializer element is not constant
>
> Full build logs are available in the bug report here:
> http://bugzilla.pokylinux.org/show_bug.cgi?id=943
This is interesting, we've been using a Code Sourcey based 4.5.1 (hard to tell exactly what it is)
gcc version 4.5.1 (Sourcery G++ Lite 2010.09-55)
and it builds just fine.
- k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-31 22:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-31 22:27 [U-Boot] u-boot fails to build for powerpc with gcc 4.5.1 Darren Hart
2011-03-31 22:56 ` Kumar Gala
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.