Bug 9785

Summary: lms7 fails to build
Product: [Build System, Metadata & Runtime] BSPs Reporter: Ross Burton <ross.burton>
Component: bsps-meta-intelAssignee: Jianxun Zhang <jianxun.zhang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium    
Version: 2.1   
Target Milestone: 2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2016-06-16 13:11:52 UTC
This looks exactly like bug 9640 for lms8:

| ../../lms-7.1.20/src/Protocol.cpp: In member function 'int Protocol::_handleFQDNChange(const char*)':
| ../../lms-7.1.20/src/Protocol.cpp:1443:176: error: unable to find string literal operator 'operator""a' with 'const char [43]', 'long unsigned int' arguments
|  #define LMS_LINE_SCAN_FORMAT_IPV4 "127.0.0.1 %" lmsstr(FQDN_MAX_SIZE) "s %" lmsstr(FQDN_MAX_SIZE) "s " LMS_LINE_SIG_FIRST_WORDS("IPv4") "%" lmsstr(LMS_LINE_SIG_LAST_WORD_LEN) "c"
|                                                                                                                                                                                 ^
| ../../lms-7.1.20/src/Protocol.cpp:1483:26: note: in expansion of macro 'LMS_LINE_SCAN_FORMAT_IPV4'
|        (3 == sscanf(line, LMS_LINE_SCAN_FORMAT_IPV4, oldFqdn, host, tmpsige))
|                           ^~~~~~~~~~~~~~~~~~~~~~~~~
| ../../lms-7.1.20/src/Protocol.cpp:1444:176: error: unable to find string literal operator 'operator""a' with 'const char [43]', 'long unsigned int' arguments
|  #define LMS_LINE_SCAN_FORMAT_IPV6 "::1       %" lmsstr(FQDN_MAX_SIZE) "s %" lmsstr(FQDN_MAX_SIZE) "s " LMS_LINE_SIG_FIRST_WORDS("IPv6") "%" lmsstr(LMS_LINE_SIG_LAST_WORD_LEN) "c"
|                                                                                                                                                                                 ^
| ../../lms-7.1.20/src/Protocol.cpp:1497:26: note: in expansion of macro 'LMS_LINE_SCAN_FORMAT_IPV6'
|        (3 == sscanf(line, LMS_LINE_SCAN_FORMAT_IPV6, oldFqdn, host, tmpsige))
|                           ^~~~~~~~~~~~~~~~~~~~~~~~~
| ../../lms-7.1.20/src/Protocol.cpp:1545:38: error: unable to find string literal operator 'operator""a' with 'const char [45]', 'long unsigned int' arguments
|     fprintf(ofp, LMS_LINE_FORMAT_IPV4 "\n", fqdn, host);
|                                       ^~~~
| ../../lms-7.1.20/src/Protocol.cpp:1547:38: error: unable to find string literal operator 'operator""a' with 'const char [45]', 'long unsigned int' arguments
|     fprintf(ofp, LMS_LINE_FORMAT_IPV6 "\n", fqdn, host);
|                                       ^~~~
| Makefile:525: recipe for target 'Protocol.o' failed
Comment 1 Jianxun Zhang 2016-06-28 18:03:36 UTC
Patch has been submitted to meta-intel for review.
Comment 2 Jianxun Zhang 2016-07-06 17:10:49 UTC
http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=bf43f7abf66f0a91ee07969dcde47bedc881a614

patch is merged into meta-intel. Mark as resolved.