All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support
@ 2015-11-06 14:05 Arnout Vandecappelle
  2015-11-06 14:05 ` [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500 Arnout Vandecappelle
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Arnout Vandecappelle @ 2015-11-06 14:05 UTC (permalink / raw)
  To: buildroot

Building with -mtune=e6500 led to build failures in glibc (probably in
uclibc as well) because gcc was built for a 32-bit target even though
the target tuple is powerpc64-*. This lead to a mix of 32-bit and
64-bit support and build errors like:

  fatal error: gnu/lib-names-32.h: No such file or directory

The root cause is that the configure script is not handling e6500
correctly, because of stupid typo in the condition.

Change has been submitted upstream.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Alvaro Gamez <alvaro.gamez@hazent.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 ...gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch | 29 ++++++++++++++++++++++
 ...gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch | 29 ++++++++++++++++++++++
 ...gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch | 29 ++++++++++++++++++++++
 3 files changed, 87 insertions(+)
 create mode 100644 package/gcc/4.8.5/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
 create mode 100644 package/gcc/4.9.3/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
 create mode 100644 package/gcc/5.2.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch

diff --git a/package/gcc/4.8.5/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch b/package/gcc/4.8.5/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
new file mode 100644
index 0000000..c11ad35
--- /dev/null
+++ b/package/gcc/4.8.5/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
@@ -0,0 +1,29 @@
+From 9bf6066d588632dab9f78932df15b5b4140f31f3 Mon Sep 17 00:00:00 2001
+From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
+Date: Fri, 6 Nov 2015 14:27:23 +0100
+Subject: [PATCH] gcc/config.gcc: fix typo for powerpc e6500 cpu_is_64bit
+
+Otherwise it is not recognized as a 64-bit powerpc and gcc will not generate
+64-bit binaries by default.
+
+Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+---
+ gcc/config.gcc | 2 +-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/gcc/config.gcc b/gcc/config.gcc
+index 4a7cbd2..9cc765e 100644
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -439,7 +439,7 @@ powerpc*-*-*)
+ 	cpu_type=rs6000
+ 	extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h"
+ 	case x$with_cpu in
+-	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500)
++	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500)
+ 		cpu_is_64bit=yes
+ 		;;
+ 	esac
+-- 
+2.6.2
+
diff --git a/package/gcc/4.9.3/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch b/package/gcc/4.9.3/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
new file mode 100644
index 0000000..c11ad35
--- /dev/null
+++ b/package/gcc/4.9.3/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
@@ -0,0 +1,29 @@
+From 9bf6066d588632dab9f78932df15b5b4140f31f3 Mon Sep 17 00:00:00 2001
+From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
+Date: Fri, 6 Nov 2015 14:27:23 +0100
+Subject: [PATCH] gcc/config.gcc: fix typo for powerpc e6500 cpu_is_64bit
+
+Otherwise it is not recognized as a 64-bit powerpc and gcc will not generate
+64-bit binaries by default.
+
+Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+---
+ gcc/config.gcc | 2 +-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/gcc/config.gcc b/gcc/config.gcc
+index 4a7cbd2..9cc765e 100644
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -439,7 +439,7 @@ powerpc*-*-*)
+ 	cpu_type=rs6000
+ 	extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h"
+ 	case x$with_cpu in
+-	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500)
++	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500)
+ 		cpu_is_64bit=yes
+ 		;;
+ 	esac
+-- 
+2.6.2
+
diff --git a/package/gcc/5.2.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch b/package/gcc/5.2.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
new file mode 100644
index 0000000..c11ad35
--- /dev/null
+++ b/package/gcc/5.2.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
@@ -0,0 +1,29 @@
+From 9bf6066d588632dab9f78932df15b5b4140f31f3 Mon Sep 17 00:00:00 2001
+From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
+Date: Fri, 6 Nov 2015 14:27:23 +0100
+Subject: [PATCH] gcc/config.gcc: fix typo for powerpc e6500 cpu_is_64bit
+
+Otherwise it is not recognized as a 64-bit powerpc and gcc will not generate
+64-bit binaries by default.
+
+Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+---
+ gcc/config.gcc | 2 +-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/gcc/config.gcc b/gcc/config.gcc
+index 4a7cbd2..9cc765e 100644
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -439,7 +439,7 @@ powerpc*-*-*)
+ 	cpu_type=rs6000
+ 	extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h"
+ 	case x$with_cpu in
+-	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500)
++	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500)
+ 		cpu_is_64bit=yes
+ 		;;
+ 	esac
+-- 
+2.6.2
+
-- 
2.6.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500
  2015-11-06 14:05 [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support Arnout Vandecappelle
@ 2015-11-06 14:05 ` Arnout Vandecappelle
  2015-11-10 15:09   ` Alvaro Gamez
  2015-11-16 23:17   ` Peter Korsgaard
  2015-11-06 16:05 ` [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support Arnout Vandecappelle
  2015-11-16 23:16 ` Peter Korsgaard
  2 siblings, 2 replies; 6+ messages in thread
From: Arnout Vandecappelle @ 2015-11-06 14:05 UTC (permalink / raw)
  To: buildroot

These were forgotten when the subarches were added in cd88e49.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Alvaro Gamez <alvaro.gamez@hazent.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 arch/Config.in.powerpc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/Config.in.powerpc b/arch/Config.in.powerpc
index 95bcaee..8581a4d 100644
--- a/arch/Config.in.powerpc
+++ b/arch/Config.in.powerpc
@@ -200,6 +200,8 @@ config BR2_GCC_TARGET_CPU
 	default "e300c2"	if BR2_powerpc_e300c2
 	default "e300c3"	if BR2_powerpc_e300c3
 	default "e500mc"	if BR2_powerpc_e500mc
+	default "e5500"		if BR2_powerpc_e5500
+	default "e6500"		if BR2_powerpc_e6500
 	default "power4"	if BR2_powerpc_power4
 	default "power5"	if BR2_powerpc_power5
 	default "power6"	if BR2_powerpc_power6
-- 
2.6.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support
  2015-11-06 14:05 [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support Arnout Vandecappelle
  2015-11-06 14:05 ` [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500 Arnout Vandecappelle
@ 2015-11-06 16:05 ` Arnout Vandecappelle
  2015-11-16 23:16 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Arnout Vandecappelle @ 2015-11-06 16:05 UTC (permalink / raw)
  To: buildroot

On 06-11-15 15:05, Arnout Vandecappelle (Essensium/Mind) wrote:
> Building with -mtune=e6500 led to build failures in glibc (probably in
> uclibc as well) because gcc was built for a 32-bit target even though
> the target tuple is powerpc64-*. This lead to a mix of 32-bit and
> 64-bit support and build errors like:
> 
>   fatal error: gnu/lib-names-32.h: No such file or directory
> 
> The root cause is that the configure script is not handling e6500
> correctly, because of stupid typo in the condition.
> 
> Change has been submitted upstream.

 Patch has been accepted upstream.

 Regards,
 Arnout

> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Cc: Alvaro Gamez <alvaro.gamez@hazent.com>
> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
[snip]


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500
  2015-11-06 14:05 ` [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500 Arnout Vandecappelle
@ 2015-11-10 15:09   ` Alvaro Gamez
  2015-11-16 23:17   ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Alvaro Gamez @ 2015-11-10 15:09 UTC (permalink / raw)
  To: buildroot

Hi Arnout

It seems that these two patches completely solve the issues I was having
with this architecture, so please consider both of them to be tested.

Tested-by: Alvaro G. M <alvaro.gamez@hazent.com>

2015-11-06 15:05 GMT+01:00 Arnout Vandecappelle (Essensium/Mind) <
arnout@mind.be>:

> These were forgotten when the subarches were added in cd88e49.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Cc: Alvaro Gamez <alvaro.gamez@hazent.com>
> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  arch/Config.in.powerpc | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/Config.in.powerpc b/arch/Config.in.powerpc
> index 95bcaee..8581a4d 100644
> --- a/arch/Config.in.powerpc
> +++ b/arch/Config.in.powerpc
> @@ -200,6 +200,8 @@ config BR2_GCC_TARGET_CPU
>         default "e300c2"        if BR2_powerpc_e300c2
>         default "e300c3"        if BR2_powerpc_e300c3
>         default "e500mc"        if BR2_powerpc_e500mc
> +       default "e5500"         if BR2_powerpc_e5500
> +       default "e6500"         if BR2_powerpc_e6500
>         default "power4"        if BR2_powerpc_power4
>         default "power5"        if BR2_powerpc_power5
>         default "power6"        if BR2_powerpc_power6
> --
> 2.6.2
>
>


-- 
?lvaro G?mez Machado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20151110/7e6bf9d6/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support
  2015-11-06 14:05 [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support Arnout Vandecappelle
  2015-11-06 14:05 ` [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500 Arnout Vandecappelle
  2015-11-06 16:05 ` [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support Arnout Vandecappelle
@ 2015-11-16 23:16 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2015-11-16 23:16 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:

 > Building with -mtune=e6500 led to build failures in glibc (probably in
 > uclibc as well) because gcc was built for a 32-bit target even though
 > the target tuple is powerpc64-*. This lead to a mix of 32-bit and
 > 64-bit support and build errors like:

 >   fatal error: gnu/lib-names-32.h: No such file or directory

 > The root cause is that the configure script is not handling e6500
 > correctly, because of stupid typo in the condition.

 > Change has been submitted upstream.

 > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
 > Cc: Alvaro Gamez <alvaro.gamez@hazent.com>
 > Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500
  2015-11-06 14:05 ` [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500 Arnout Vandecappelle
  2015-11-10 15:09   ` Alvaro Gamez
@ 2015-11-16 23:17   ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2015-11-16 23:17 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:

 > These were forgotten when the subarches were added in cd88e49.
 > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
 > Cc: Alvaro Gamez <alvaro.gamez@hazent.com>
 > Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-16 23:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-06 14:05 [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support Arnout Vandecappelle
2015-11-06 14:05 ` [Buildroot] [PATCH 2/2] arch: add tune options for powerpc e5500 and e6500 Arnout Vandecappelle
2015-11-10 15:09   ` Alvaro Gamez
2015-11-16 23:17   ` Peter Korsgaard
2015-11-06 16:05 ` [Buildroot] [PATCH 1/2] gcc: add patches for powerpc e6500 64-bit support Arnout Vandecappelle
2015-11-16 23:16 ` Peter Korsgaard

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.