<?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>8376</bug_id>
          
          <creation_ts>2015-09-22 20:32:45 +0000</creation_ts>
          <short_desc>gcc-cross-initial 5.2 fails to build if isl installed on host system</short_desc>
          <delta_ts>2015-10-26 15:16:50 +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>2.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Tollerton">rich.tollerton</reporter>
          <assigned_to name="Richard Tollerton">rich.tollerton</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>54492</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2015-09-22 20:32:45 +0000</bug_when>
    <thetext>I just tried building oe-core master; it failed while building gcc-cross-initial with many errors like this one:

/ssd/rtollert/oe-core-build/tmp-glibc/work-shared/gcc-5.2.0-r0/gcc-5.2.0/gcc/graphite-dependences.c: In function &apos;isl_union_map* extend_schedule(isl_union_map*)&apos;:
/ssd/rtollert/oe-core-build/tmp-glibc/work-shared/gcc-5.2.0-r0/gcc-5.2.0/gcc/graphite-dependences.c:283:82: error: invalid conversion from &apos;int (*)(isl_map*, void*)&apos; to &apos;isl_stat (*)(isl_map*, void*)&apos; [-fpermissive]
   res = isl_union_map_foreach_map (x, max_number_of_out_dimensions, (void *) &amp;max);
                                                                                  ^
Note that we don&apos;t presently package isl, but it *was* enabled, cf config.log:

configure:5989: checking for compatible ISL
configure:6002: gcc  -o conftest -isystem/ssd/rtollert/oe-core-build/tmp-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe    -L/ssd/rtollert/oe-core-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -L/ssd/rtollert/oe-core-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/ssd/rtollert/oe-core-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/ssd/rtollert/oe-core-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath,/ssd/rtollert/oe-core-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/ssd/rtollert/oe-core-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-O1  -lisl conftest.c  -lisl &gt;&amp;5
configure:6002: $? = 0
configure:6009: result: yes

Looks like gcc might have autodetected the host libisl.

The most direct way to fix this is to add an isl recipe and have gcc depend on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54495</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-22 21:47:29 +0000</bug_when>
    <thetext>The easiest way should be to pass --without-isl to configure.  Can you verify that this solves the problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54504</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2015-09-22 23:56:29 +0000</bug_when>
    <thetext>Yes, this also fixed the build:

diff --git a/meta/recipes-devtools/gcc/gcc-5.2.inc b/meta/recipes-devtools/gcc/gcc-5.2.inc
index f691f58..f6673e6 100644
--- a/meta/recipes-devtools/gcc/gcc-5.2.inc
+++ b/meta/recipes-devtools/gcc/gcc-5.2.inc
@@ -98,6 +98,7 @@ EXTRA_OECONF_BASE = &quot;\
     --with-cloog=no \
     --enable-checking=release \
     --enable-cheaders=c_global \
+    --without-isl \
 &quot;

 EXTRA_OECONF_INITIAL = &quot;\
@@ -109,6 +110,7 @@ EXTRA_OECONF_INITIAL = &quot;\
     --disable-lto \
     --disable-plugin \
     --enable-decimal-float=no \
+    --without-isl \
 &quot;

 EXTRA_OECONF_append_libc-uclibc = &quot; --disable-decimal-float &quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54510</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-23 10:01:50 +0000</bug_when>
    <thetext>Cool.  Can you send a proper patch to the list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54544</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2015-09-23 14:39:17 +0000</bug_when>
    <thetext>Done. I&apos;ll also attempt to update the bugzilla fields, please fix whatever I screwed up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54750</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2015-09-28 17:41:51 +0000</bug_when>
    <thetext>Fixed in 555e8d110435cf4af1e1ab4699c2fa55898e9d80.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55753</commentid>
    <comment_count>6</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-10-26 15:16:50 +0000</bug_when>
    <thetext>Verified on 505a82673ac2487df5ea343a6422c2fc47018831</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>