<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6411</bug_id>
          
          <creation_ts>2014-06-06 12:50:19 +0000</creation_ts>
          <short_desc>guile: do_compile failed when DEBUG_BUILD (ICE)</short_desc>
          <delta_ts>2014-08-24 04:42:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43808</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-06-06 12:50:19 +0000</bug_when>
    <thetext>Add:
MACHINE = &quot;qemux86-64&quot;
DEBUG_BUILD = &quot;1&quot;

to local.conf, and optionally add:

require conf/multilib.conf
MULTILIBS = &quot;multilib:lib32&quot;
DEFAULTTUNE_virtclass-multilib-lib32 = &quot;x86&quot;

$ bitbake guile

../x86_64-poky-linux-libtool  --tag=CC   --mode=compile x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64 -DHAVE_CONFIG_H   -DBUILDING_LIBGUILE=1 -I/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11 -I.. -I/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11/lib -I../lib -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/lib64/libffi-3.1/include  -I/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11  -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -fwrapv -fvisibility=hidden -O -fno-omit-frame-pointer -g -feliminate-unused-debug-types -pipe -c -o libguile_2.0_la-vm.lo `test -f &apos;vm.c&apos; || echo &apos;/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11/libguile/&apos;`vm.c
x86_64-poky-linux-libtool: compile:  x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64 -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11 -I.. -I/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11/lib -I../lib -I/buildarea/lyang1/testdebug/tmp/sysroots/qemux86-64/usr/lib64/libffi-3.1/include -I/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11 -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -fwrapv -fvisibility=hidden -O -fno-omit-frame-pointer -g -feliminate-unused-debug-types -pipe -c /buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11/libguile/vm.c  -fPIC -DPIC -o .libs/libguile_2.0_la-vm.o

Unable to coalesce ssa_names 48 and 3476 which are marked as MUST COALESCE.
sp_48(ab) and  sp_3476(ab)
/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11/libguile/vm-engine.c: In function &apos;vm_debug_engine&apos;:
/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11/libguile/vm.c:673:19: internal compiler error: SSA corruption
 #define VM_NAME   vm_debug_engine
                   ^
/buildarea/lyang1/testdebug/tmp/work/core2-64-poky-linux/guile/2.0.11-r0/guile-2.0.11/libguile/vm-engine.c:39:1: note: in expansion of macro &apos;VM_NAME&apos;
 VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;http://gcc.gnu.org/bugs.html&gt; for instructions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45230</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-08-24 04:42:56 +0000</bug_when>
    <thetext>Merged into master:

commit cf385a55873b0ef0935911dfa224694e08b4f559
Author: Hongxu Jia &lt;hongxu.jia@windriver.com&gt;
Date:   Mon Aug 11 10:23:46 2014 +0800

    guile: workaround ice ssa corruption while DEBUG_BUILD
    
    Add:
    MACHINE = &quot;qemux86-64&quot;
    DEBUG_BUILD = &quot;1&quot;
    to local.conf and there was a ssa corruption to build guile:
    ..
    Unable to coalesce ssa_names 48 and 3476 which are marked as MUST COALESCE.
    sp_48(ab) and  sp_3476(ab)
    guile-2.0.11/libguile/vm-engine.c: In function &apos;vm_debug_engine&apos;:
    guile-2.0.11/libguile/vm.c:673:19: internal compiler error: SSA corruption
     #define VM_NAME   vm_debug_engine
                       ^
    guile-2.0.11/libguile/vm-engine.c:39:1: note: in expansion of macro &apos;VM_NAME&apos;
     VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
     ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See &lt;http://gcc.gnu.org/bugs.html&gt; for instructions.
    ...
    
    Tweak libguile/vm-i-system.c to check the value of nshuf to workaround it.
    The tweak didn&apos;t change previous logic.
    
    [YOCTO #6411]
    
    (From OE-Core rev: 3470bbf4ae178479bd090d7191d6f0469f154b0d)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>