<?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>9640</bug_id>
          
          <creation_ts>2016-05-16 15:21:23 +0000</creation_ts>
          <short_desc>lms8 fails with gcc6</short_desc>
          <delta_ts>2016-06-17 19:30:11 +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>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>2.2</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>jose.perez.carranza</cc>
          
          <qa_contact name="David Rodriguez">david.israelx.rodriguez.castellanos</qa_contact>
          <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>62219</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-05-16 15:21:23 +0000</bug_when>
    <thetext>If gcc 6 is used (GCCVERSION = &quot;6.1%&quot;) then lms8 fails to build:

make[2]: Entering directory &apos;/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/lms8/8.0.0-7-r0/build/src&apos;
x86_64-poky-linux-g++ -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/data/poky-master/tmp-glibc/sysroots/intel-corei7-64 -DHAVE_CONFIG_H -I. -I../../lms-8.0.0-7/src -I.. -I../../lms-8.0.0-7/src -I../../lms-8.0.0-7/src/SyncLib/Include -I../../lms-8.0.0-7/src/mei -I../../lms-8.0.0-7/src/tools  -D_LINUX  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/lms8/8.0.0-7-r0=/usr/src/debug/lms8/8.0.0-7-r0 -fdebug-prefix-map=/data/poky-master/tmp-glibc/sysroots/x86_64-linux= -fdebug-prefix-map=/data/poky-master/tmp-glibc/sysroots/intel-corei7-64=  -fvisibility-inlines-hidden -Wall -c -o Protocol.o ../../lms-8.0.0-7/src/Protocol.cpp
In file included from ../../lms-8.0.0-7/src/Protocol.h:40:0,
                 from ../../lms-8.0.0-7/src/Protocol.cpp:52:
../../lms-8.0.0-7/src/LMEConnection.h: In constructor &apos;LMEUserAuthRequestMessage::LMEUserAuthRequestMessage(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, AuthMethodData*)&apos;:
../../lms-8.0.0-7/src/LMEConnection.h:137:2: warning: &apos;LMEUserAuthRequestMessage::ServiceName&apos; is initialized with itself [-Winit-self]
  LMEUserAuthRequestMessage(std::string username = &quot;&quot;,
  ^~~~~~~~~~~~~~~~~~~~~~~~~
../../lms-8.0.0-7/src/Protocol.cpp: In member function &apos;void Protocol::_closePortForwardRequest(PortForwardRequest*)&apos;:
../../lms-8.0.0-7/src/Protocol.cpp:629:7: warning: variable &apos;found&apos; set but not used [-Wunused-but-set-variable]
  bool found = false;
       ^~~~~
../../lms-8.0.0-7/src/Protocol.cpp: In member function &apos;int Protocol::_handleFQDNChange(const char*)&apos;:
../../lms-8.0.0-7/src/Protocol.cpp:1439:176: error: unable to find string literal operator &apos;operator&quot;&quot;a&apos; with &apos;const char [43]&apos;, &apos;long unsigned int&apos; arguments
 #define LMS_LINE_SCAN_FORMAT_IPV4 &quot;127.0.0.1 %&quot; lmsstr(FQDN_MAX_SIZE) &quot;s %&quot; lmsstr(FQDN_MAX_SIZE) &quot;s &quot; LMS_LINE_SIG_FIRST_WORDS(&quot;IPv4&quot;) &quot;%&quot; lmsstr(LMS_LINE_SIG_LAST_WORD_LEN) &quot;c&quot;
                                                                                                                                                                                ^
../../lms-8.0.0-7/src/Protocol.cpp:1479:26: note: in expansion of macro &apos;LMS_LINE_SCAN_FORMAT_IPV4&apos;
       (3 == sscanf(line, LMS_LINE_SCAN_FORMAT_IPV4, oldFqdn, host, tmpsige))
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
../../lms-8.0.0-7/src/Protocol.cpp:1440:176: error: unable to find string literal operator &apos;operator&quot;&quot;a&apos; with &apos;const char [43]&apos;, &apos;long unsigned int&apos; arguments
 #define LMS_LINE_SCAN_FORMAT_IPV6 &quot;::1       %&quot; lmsstr(FQDN_MAX_SIZE) &quot;s %&quot; lmsstr(FQDN_MAX_SIZE) &quot;s &quot; LMS_LINE_SIG_FIRST_WORDS(&quot;IPv6&quot;) &quot;%&quot; lmsstr(LMS_LINE_SIG_LAST_WORD_LEN) &quot;c&quot;
                                                                                                                                                                                ^
../../lms-8.0.0-7/src/Protocol.cpp:1493:26: note: in expansion of macro &apos;LMS_LINE_SCAN_FORMAT_IPV6&apos;
       (3 == sscanf(line, LMS_LINE_SCAN_FORMAT_IPV6, oldFqdn, host, tmpsige))
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
../../lms-8.0.0-7/src/Protocol.cpp:1541:38: error: unable to find string literal operator &apos;operator&quot;&quot;a&apos; with &apos;const char [45]&apos;, &apos;long unsigned int&apos; arguments
    fprintf(ofp, LMS_LINE_FORMAT_IPV4 &quot;\n&quot;, fqdn, host);
                                      ^~~~
../../lms-8.0.0-7/src/Protocol.cpp:1543:38: error: unable to find string literal operator &apos;operator&quot;&quot;a&apos; with &apos;const char [45]&apos;, &apos;long unsigned int&apos; arguments
    fprintf(ofp, LMS_LINE_FORMAT_IPV6 &quot;\n&quot;, fqdn, host);
                                      ^~~~
Makefile:519: recipe for target &apos;Protocol.o&apos; failed

I think this is related to gcc6 having more C++11 bits enabled by default, https://gcc.gnu.org/gcc-4.7/porting_to.html has a section on &quot;User-defined literals and whitespace&quot; which might be relevant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62324</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-05-19 14:43:57 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=6dc3746443523a02f72bf5142cfbe3a800d32f4a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>