<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-indent:21.0pt;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1538931794;
        mso-list-type:hybrid;
        mso-list-template-ids:-649718860 1611804846 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:18.0pt;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%2\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:42.0pt;
        text-indent:-21.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:63.0pt;
        text-indent:-21.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:84.0pt;
        text-indent:-21.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%5\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:105.0pt;
        text-indent:-21.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:126.0pt;
        text-indent:-21.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:147.0pt;
        text-indent:-21.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%8\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:168.0pt;
        text-indent:-21.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:189.0pt;
        text-indent:-21.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link="#0563C1" vlink="#954F72" style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>In chapter 6.10, after modify the Makefile by sed:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>If xxxLIBS & xxxINC = /tools/, make will results the header error.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>If xxxLIBS & xxxINC = /cross-tools/, make will results the wrong lib format error.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Only xxxLIBS = /tools/ && xxxINC=/cross-tools/, the compiling could complete.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>This issue I had meet ever. Now I do the compiling in a new platform (hardware and os), the same issue remains.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>In chapter 7.7<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The compiling results error: conflict type.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>in the build/lib/ext2fs/ext2_type.h, the _u64 typedef with unsigned long long,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>but in the kernel header, the _u64 typedef with unsigned long.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The type _s64 has similar comfliction<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Maybe it’s a e2fsprogs bug:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>In file root/lib/ext2fs/ext2_types.h.in<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Line 89, the comment about SIZEOF_LONG_LONG/SIZEOF_LONG is *<b>NOT</b>* consists with the if-else branch:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#ifdef __U64_TYPEDEF<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef __U64_TYPEDEF __u64;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#else<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#if (@SIZEOF_INT@ == 8)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef unsigned int        __u64;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#else<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#if (@SIZEOF_LONG_LONG@ == 8) // < ------- should long branch<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef unsigned long long      __u64;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#else<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#if (@SIZEOF_LONG@ == 8)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef unsigned long     __u64;  // < ------- should long long branch<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* SIZEOF_LONG_LONG == 8 */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* SIZEOF_LONG == 8 */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* SIZEOF_INT == 8 */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* __U64_TYPEDEF */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>#ifdef __S64_TYPEDEF<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef __S64_TYPEDEF __s64;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#else<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#if (@SIZEOF_INT@ == 8)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef int                 __s64;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#else<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#if (@SIZEOF_LONG_LONG@ == 8)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#if defined(__GNUC__)    // < --------------- should long branch<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef __signed__ long long __s64;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#else<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef signed long long __s64;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* __GNUC__ */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#else<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#if (@SIZEOF_LONG@ == 8)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>typedef long              __s64; // < ------------ should long long branch<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* SIZEOF_LONG_LONG == 8 */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* SIZEOF_LONG == 8 */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* SIZEOF_INT == 8 */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif /* __S64_TYPEDEF */<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>After I exchange the inconsist branches, all things work fine.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>