Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)
@ 2014-08-12 12:10 Hongxu Jia
  2014-08-12 12:10 ` [PATCH 1/1] " Hongxu Jia
  2014-08-19  6:22 ` [PATCH 0/1] " Hongxu Jia
  0 siblings, 2 replies; 3+ messages in thread
From: Hongxu Jia @ 2014-08-12 12:10 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

Test Steps:

1. vim local.conf:
...
MACHINE ?= "qemumips"
DEBUG_BUILD = "1"
...

2. bitbake busybox

//Hongxu

The following changes since commit 870bb8d35547b8313b3a487d7e8b914ab9470e64:

  local.conf.sample.extended: fix example for EXTRA_USERS_PARAMS (2014-08-04 17:38:24 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/fix-busybox-ice-mips
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-busybox-ice-mips

Hongxu Jia (1):
  busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)

 .../fix-ice-on-mips-while-compiling-with-g-O.patch | 65 ++++++++++++++++++++++
 meta/recipes-core/busybox/busybox_1.22.1.bb        |  4 ++
 2 files changed, 69 insertions(+)
 create mode 100644 meta/recipes-core/busybox/busybox/fix-ice-on-mips-while-compiling-with-g-O.patch

-- 
1.9.1



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

* [PATCH 1/1] busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)
  2014-08-12 12:10 [PATCH 0/1] busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE) Hongxu Jia
@ 2014-08-12 12:10 ` Hongxu Jia
  2014-08-19  6:22 ` [PATCH 0/1] " Hongxu Jia
  1 sibling, 0 replies; 3+ messages in thread
From: Hongxu Jia @ 2014-08-12 12:10 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

Build busybox on mips with -g -O, there is a ice failure:
...
shell/ash.c:8758:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:21264
...
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
{standard input}: Assembler messages:
{standard input}: Warning: missing .end at end of assembly
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
...

The following line caused the ice failure on mips:
...
void evaltreenr(union node *, int) __attribute__ ((alias("evaltree"),__noreturn__));
...
So remove evaltreenr which was a alias of evaltree, and use evaltree
to instead.

[YOCTO #6625]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 .../fix-ice-on-mips-while-compiling-with-g-O.patch | 65 ++++++++++++++++++++++
 meta/recipes-core/busybox/busybox_1.22.1.bb        |  4 ++
 2 files changed, 69 insertions(+)
 create mode 100644 meta/recipes-core/busybox/busybox/fix-ice-on-mips-while-compiling-with-g-O.patch

diff --git a/meta/recipes-core/busybox/busybox/fix-ice-on-mips-while-compiling-with-g-O.patch b/meta/recipes-core/busybox/busybox/fix-ice-on-mips-while-compiling-with-g-O.patch
new file mode 100644
index 0000000..d8bf5da
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox/fix-ice-on-mips-while-compiling-with-g-O.patch
@@ -0,0 +1,65 @@
+shell/ash.c: fix ice on mips while compiling with -g -O
+
+Build busybox on mips with -g -O, there is a ice failure:
+...
+shell/ash.c:8758:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:21264
+...
+Please submit a full bug report,
+with preprocessed source if appropriate.
+See <http://gcc.gnu.org/bugs.html> for instructions.
+{standard input}: Assembler messages:
+{standard input}: Warning: missing .end at end of assembly
+{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
+...
+
+The following line caused the ice failure on mips:
+...
+void evaltreenr(union node *, int) __attribute__ ((alias("evaltree"),__noreturn__));
+...
+So remove evaltreenr which was a alias of evaltree, and use evaltree
+to instead.
+
+Upstream-Status: Pending
+
+Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
+---
+ shell/ash.c | 9 ++-------
+ 1 file changed, 2 insertions(+), 7 deletions(-)
+
+diff --git a/shell/ash.c b/shell/ash.c
+index 71ef9a6..4462e40 100644
+--- a/shell/ash.c
++++ b/shell/ash.c
+@@ -8490,11 +8490,6 @@ evaltree(union node *n, int flags)
+ 	TRACE(("leaving evaltree (no interrupts)\n"));
+ }
+ 
+-#if !defined(__alpha__) || (defined(__GNUC__) && __GNUC__ >= 3)
+-static
+-#endif
+-void evaltreenr(union node *, int) __attribute__ ((alias("evaltree"),__noreturn__));
+-
+ static void
+ evalloop(union node *n, int flags)
+ {
+@@ -8621,7 +8616,7 @@ evalsubshell(union node *n, int flags)
+ 			flags &= ~EV_TESTED;
+  nofork:
+ 		redirect(n->nredir.redirect, 0);
+-		evaltreenr(n->nredir.n, flags);
++		evaltree(n->nredir.n, flags);
+ 		/* never returns */
+ 	}
+ 	status = 0;
+@@ -8740,7 +8735,7 @@ evalpipe(union node *n, int flags)
+ 				dup2(pip[1], 1);
+ 				close(pip[1]);
+ 			}
+-			evaltreenr(lp->n, flags);
++			evaltree(lp->n, flags);
+ 			/* never returns */
+ 		}
+ 		if (prevfd >= 0)
+-- 
+1.9.1
+
diff --git a/meta/recipes-core/busybox/busybox_1.22.1.bb b/meta/recipes-core/busybox/busybox_1.22.1.bb
index 46641e1..0cd2b3a 100644
--- a/meta/recipes-core/busybox/busybox_1.22.1.bb
+++ b/meta/recipes-core/busybox/busybox_1.22.1.bb
@@ -32,6 +32,10 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://0001-build-system-Specify-nostldlib-when-linking-to-.o-fi.patch \
 "
 
+SRC_URI_append_mips = " \
+    ${@base_conditional( "DEBUG_BUILD", "1", "file://fix-ice-on-mips-while-compiling-with-g-O.patch", "", d )} \
+"
+
 SRC_URI[tarball.md5sum] = "337d1a15ab1cb1d4ed423168b1eb7d7e"
 SRC_URI[tarball.sha256sum] = "ae0b029d0a9e4dd71a077a790840e496dd838998e4571b87b60fed7462b6678b"
 
-- 
1.9.1



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

* Re: [PATCH 0/1] busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)
  2014-08-12 12:10 [PATCH 0/1] busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE) Hongxu Jia
  2014-08-12 12:10 ` [PATCH 1/1] " Hongxu Jia
@ 2014-08-19  6:22 ` Hongxu Jia
  1 sibling, 0 replies; 3+ messages in thread
From: Hongxu Jia @ 2014-08-19  6:22 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

Ping

//Hongxu

On 08/12/2014 08:10 PM, Hongxu Jia wrote:
> Test Steps:
>
> 1. vim local.conf:
> ...
> MACHINE ?= "qemumips"
> DEBUG_BUILD = "1"
> ...
>
> 2. bitbake busybox
>
> //Hongxu
>
> The following changes since commit 870bb8d35547b8313b3a487d7e8b914ab9470e64:
>
>    local.conf.sample.extended: fix example for EXTRA_USERS_PARAMS (2014-08-04 17:38:24 +0100)
>
> are available in the git repository at:
>
>    git://git.pokylinux.org/poky-contrib hongxu/fix-busybox-ice-mips
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-busybox-ice-mips
>
> Hongxu Jia (1):
>    busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)
>
>   .../fix-ice-on-mips-while-compiling-with-g-O.patch | 65 ++++++++++++++++++++++
>   meta/recipes-core/busybox/busybox_1.22.1.bb        |  4 ++
>   2 files changed, 69 insertions(+)
>   create mode 100644 meta/recipes-core/busybox/busybox/fix-ice-on-mips-while-compiling-with-g-O.patch
>



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

end of thread, other threads:[~2014-08-19  6:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12 12:10 [PATCH 0/1] busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE) Hongxu Jia
2014-08-12 12:10 ` [PATCH 1/1] " Hongxu Jia
2014-08-19  6:22 ` [PATCH 0/1] " Hongxu Jia

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