Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH]] gpm PPC64 build issue
@ 2014-08-21 20:44 Armin Kuster
  2014-08-21 20:44 ` [PATCH]] gpm: ppc64 " Armin Kuster
  0 siblings, 1 reply; 3+ messages in thread
From: Armin Kuster @ 2014-08-21 20:44 UTC (permalink / raw)
  To: openembedded-core

While playing with adding qemuppc64, I found a build issue gpm.

Armin Kuster (1):
  gpm: ppc64 build issue

 meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch | 25 ++++++++++++++++++++++
 meta/recipes-support/gmp/gmp_6.0.0.bb              |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch

-- 
1.9.1



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

* [PATCH]] gpm: ppc64 build issue
  2014-08-21 20:44 [PATCH]] gpm PPC64 build issue Armin Kuster
@ 2014-08-21 20:44 ` Armin Kuster
  2014-08-21 20:49   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Armin Kuster @ 2014-08-21 20:44 UTC (permalink / raw)
  To: openembedded-core

tmp-gcd_1.s: Assembler messages:
| tmp-gcd_1.s:94: Error: unsupported relocation against BMOD_1_TO_MOD_1_THRESHOLD
| make[2]: *** [gcd_1.lo] Error 1

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch | 25 ++++++++++++++++++++++
 meta/recipes-support/gmp/gmp_6.0.0.bb              |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch

diff --git a/meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch b/meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch
new file mode 100644
index 0000000..19bb4fa
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch
@@ -0,0 +1,25 @@
+
+Signed-off-by: Armin Kuster <akuster808@gmail.com>
+
+This patch with pulled from gmp.
+https://gmplib.org/repo/gmp/rev/4a6d258b467f
+
+# HG changeset patch
+# User Torbjorn Granlund <tege@gmplib.org>
+# Date 1395835068 -3600
+# Node ID 4a6d258b467f661da0894cc60ecd060f2e3c67c7
+# Parent  301ce2788826a2d4d2725bd5cf01e998638db37a
+Provide default for BMOD_1_TO_MOD_1_THRESHOLD.
+
+diff -r 301ce2788826 -r 4a6d258b467f mpn/powerpc64/mode64/gcd_1.asm
+--- a/mpn/powerpc64/mode64/gcd_1.asm    Tue Mar 25 15:34:52 2014 +0100
++++ b/mpn/powerpc64/mode64/gcd_1.asm    Wed Mar 26 12:57:48 2014 +0100
+@@ -43,6 +43,9 @@
+ define(`n',     `r4')
+ define(`v0',    `r5')
+
++ifdef(`BMOD_1_TO_MOD_1_THRESHOLD',,
++  `define(`BMOD_1_TO_MOD_1_THRESHOLD',30)')
++
+ EXTERN_FUNC(mpn_mod_1)
+ EXTERN_FUNC(mpn_modexact_1c_odd)
diff --git a/meta/recipes-support/gmp/gmp_6.0.0.bb b/meta/recipes-support/gmp/gmp_6.0.0.bb
index 19e5f4d..cd515e8 100644
--- a/meta/recipes-support/gmp/gmp_6.0.0.bb
+++ b/meta/recipes-support/gmp/gmp_6.0.0.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
 "
 SRC_URI_append = " file://use-includedir.patch \
                    file://append_user_provided_flags.patch \
+                   file://gpm-6.0.0-ppc64.patch \
 "
 
 SRC_URI[md5sum] = "b7ff2d88cae7f8085bd5006096eed470"
-- 
1.9.1



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

* Re: [PATCH]] gpm: ppc64 build issue
  2014-08-21 20:44 ` [PATCH]] gpm: ppc64 " Armin Kuster
@ 2014-08-21 20:49   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2014-08-21 20:49 UTC (permalink / raw)
  To: Armin Kuster; +Cc: openembedded-core

On Thu, 2014-08-21 at 13:44 -0700, Armin Kuster wrote:
> tmp-gcd_1.s: Assembler messages:
> | tmp-gcd_1.s:94: Error: unsupported relocation against BMOD_1_TO_MOD_1_THRESHOLD
> | make[2]: *** [gcd_1.lo] Error 1
> 
> Signed-off-by: Armin Kuster <akuster808@gmail.com>
> ---
>  meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch | 25 ++++++++++++++++++++++
>  meta/recipes-support/gmp/gmp_6.0.0.bb              |  1 +
>  2 files changed, 26 insertions(+)
>  create mode 100644 meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch

Could we correct the name to gmp please?

Cheers,

Richard

> diff --git a/meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch b/meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch
> new file mode 100644
> index 0000000..19bb4fa
> --- /dev/null
> +++ b/meta/recipes-support/gmp/gmp/gpm-6.0.0-ppc64.patch
> @@ -0,0 +1,25 @@
> +
> +Signed-off-by: Armin Kuster <akuster808@gmail.com>
> +
> +This patch with pulled from gmp.
> +https://gmplib.org/repo/gmp/rev/4a6d258b467f
> +
> +# HG changeset patch
> +# User Torbjorn Granlund <tege@gmplib.org>
> +# Date 1395835068 -3600
> +# Node ID 4a6d258b467f661da0894cc60ecd060f2e3c67c7
> +# Parent  301ce2788826a2d4d2725bd5cf01e998638db37a
> +Provide default for BMOD_1_TO_MOD_1_THRESHOLD.
> +
> +diff -r 301ce2788826 -r 4a6d258b467f mpn/powerpc64/mode64/gcd_1.asm
> +--- a/mpn/powerpc64/mode64/gcd_1.asm    Tue Mar 25 15:34:52 2014 +0100
> ++++ b/mpn/powerpc64/mode64/gcd_1.asm    Wed Mar 26 12:57:48 2014 +0100
> +@@ -43,6 +43,9 @@
> + define(`n',     `r4')
> + define(`v0',    `r5')
> +
> ++ifdef(`BMOD_1_TO_MOD_1_THRESHOLD',,
> ++  `define(`BMOD_1_TO_MOD_1_THRESHOLD',30)')
> ++
> + EXTERN_FUNC(mpn_mod_1)
> + EXTERN_FUNC(mpn_modexact_1c_odd)
> diff --git a/meta/recipes-support/gmp/gmp_6.0.0.bb b/meta/recipes-support/gmp/gmp_6.0.0.bb
> index 19e5f4d..cd515e8 100644
> --- a/meta/recipes-support/gmp/gmp_6.0.0.bb
> +++ b/meta/recipes-support/gmp/gmp_6.0.0.bb
> @@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
>  "
>  SRC_URI_append = " file://use-includedir.patch \
>                     file://append_user_provided_flags.patch \
> +                   file://gpm-6.0.0-ppc64.patch \
>  "
>  
>  SRC_URI[md5sum] = "b7ff2d88cae7f8085bd5006096eed470"
> -- 
> 1.9.1
> 




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

end of thread, other threads:[~2014-08-21 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-21 20:44 [PATCH]] gpm PPC64 build issue Armin Kuster
2014-08-21 20:44 ` [PATCH]] gpm: ppc64 " Armin Kuster
2014-08-21 20:49   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox