<html 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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        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:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(正文 CS 字体\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:新宋体;
        panose-1:2 1 6 9 3 1 1 1 1 1;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@新宋体";}
@font-face
        {font-family:"\@Times New Roman \(正文 CS 字体\)";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:宋体;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:新宋体;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:新宋体">Hi Michele,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:新宋体"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:新宋体">After add
</span><span lang="EN-US">--disable-libsanitizer and --disable-libmpx to the configure step of 4.9, it passed, Thank you!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And I think these two options should be added to the document page of step 4.9.</span><span lang="EN-US" style="font-size:10.5pt;font-family:新宋体"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:新宋体"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:21.0pt;mso-para-margin-left:1.75gd"><b><span style="color:black">发件人</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:
</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">Clfs-support <clfs-support-bounces@lists.clfs.org>
</span><span style="color:black">代表</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black"> Michele Bucca <michele.bucca@gmail.com><br>
</span><b><span style="color:black">答复</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:
</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">CLFS Support <Clfs-support@lists.clfs.org><br>
</span><b><span style="color:black">日期</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:
</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">2019</span><span style="color:black">年</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">10</span><span style="color:black">月</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">17</span><span style="color:black">日</span><span style="font-family:"Calibri",sans-serif;color:black">
</span><span style="color:black">星期四</span><span style="font-family:"Calibri",sans-serif;color:black">
</span><span style="color:black">下午</span><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">3:00<br>
</span><b><span style="color:black">收件人</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:
</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">CLFS Support <Clfs-support@lists.clfs.org><br>
</span><b><span style="color:black">主题</span></b><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">:
</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:black">Re: [Clfs-support] CLFS Embedded has build error when build gcc on Ubuntu 19.04<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;mso-margin-top-alt:0cm;mso-para-margin-right:1.0gd;mso-para-margin-bottom:0cm;mso-para-margin-left:1.0gd;mso-para-margin-bottom:.0001pt">
<span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:12.0pt;mso-margin-top-alt:0cm;mso-para-margin-right:1.0gd;mso-para-margin-bottom:12.0pt;mso-para-margin-left:1.0gd">
<span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;mso-margin-top-alt:0cm;mso-para-margin-right:1.0gd;mso-para-margin-bottom:0cm;mso-para-margin-left:1.0gd;mso-para-margin-bottom:.0001pt">
<span lang="EN-US">Il gio 17 ott 2019, 02:34 DELUGE <deluge@52loli.vip> ha scritto:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;mso-margin-top-alt:0cm;mso-para-margin-right:1.0gd;mso-para-margin-bottom:0cm;mso-para-margin-left:1.0gd;mso-para-margin-bottom:.0001pt">
<span lang="EN-US">Hi Andrew,<br>
<br>
Thanks for you suggestions.<br>
<br>
On step 4.7 (<a href="http://clfs.org/view/clfs-embedded/x86/cross-tools/gcc-static.html" target="_blank">http://clfs.org/view/clfs-embedded/x86/cross-tools/gcc-static.html</a>), I replaced GCC 6.2.0 by GCC 6.5.0,<br>
And this time, step 4.7 passed, then step 4.8 (<a href="http://clfs.org/view/clfs-embedded/x86/cross-tools/libc.html" target="_blank">http://clfs.org/view/clfs-embedded/x86/cross-tools/libc.html</a>) also passed,<br>
<br>
But on step 4.9 (<a href="http://clfs.org/view/clfs-embedded/x86/cross-tools/gcc-final.html" target="_blank">http://clfs.org/view/clfs-embedded/x86/cross-tools/gcc-final.html</a>), the error below occurred, could you give me suggestion again? Thanks.<br>
<br>
libtool: compile:  /mnt/clfs/sources/gcc-build-2/./gcc/xgcc -B/mnt/clfs/sources/gcc-build-2/./gcc/ -B/mnt/clfs/cross-tools/i686-linux-musl/bin/ -B/mnt/clfs/cross-tools/i686-linux-musl/lib/ -isystem /mnt/clfs/cross-tools/i686-linux-musl/include -isystem /mnt/clfs/cross-tools/i686-linux-musl/sys-include
 -DHAVE_CONFIG_H -I. -I../../../../gcc-6.5.0/libmpx/mpxrt -I.. -I../../../../gcc-6.5.0/libmpx/.. -fPIC -g -O2 -c ../../../../gcc-6.5.0/libmpx/mpxrt/mpxrt.c  -fPIC -DPIC -o .libs/libmpx_la-mpxrt.o<br>
In file included from ../../../../gcc-6.5.0/libmpx/mpxrt/mpxrt.c:54:0:<br>
../../../../gcc-6.5.0/libmpx/mpxrt/mpxrt.c: In function 'read_mpx_status_sig':<br>
../../../../gcc-6.5.0/libmpx/mpxrt/mpxrt.h:52:42: error: invalid application of 'sizeof' to incomplete type 'struct _libc_fpstate'<br>
 #define XSAVE_OFFSET_IN_FPMEM    sizeof (struct _libc_fpstate)<br>
                                          ^<br>
../../../../gcc-6.5.0/libmpx/mpxrt/mpxrt.c:132:58: note: in expansion of macro 'XSAVE_OFFSET_IN_FPMEM'<br>
   uint8_t *regs = (uint8_t *)uctxt->uc_mcontext.fpregs + XSAVE_OFFSET_IN_FPMEM;<br>
                                                          ^~~~~~~~~~~~~~~~~~~~~<br>
make[4]: *** [Makefile:387: libmpx_la-mpxrt.lo] Error 1<br>
make[4]: Leaving directory '/mnt/clfs/sources/gcc-build-2/i686-linux-musl/libmpx/mpxrt'<br>
make[3]: *** [Makefile:409: all-recursive] Error 1<br>
make[3]: Leaving directory '/mnt/clfs/sources/gcc-build-2/i686-linux-musl/libmpx'<br>
make[2]: *** [Makefile:300: all] Error 2<br>
make[2]: Leaving directory '/mnt/clfs/sources/gcc-build-2/i686-linux-musl/libmpx'<br>
make[1]: *** [Makefile:11448: all-target-libmpx] Error 2<br>
make[1]: Leaving directory '/mnt/clfs/sources/gcc-build-2'<br>
make: *** [Makefile:868: all] Error 2<o:p></o:p></span></p>
</blockquote>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;mso-margin-top-alt:0cm;mso-para-margin-right:1.0gd;mso-para-margin-bottom:0cm;mso-para-margin-left:1.0gd;mso-para-margin-bottom:.0001pt">
<span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;mso-margin-top-alt:0cm;mso-para-margin-right:1.0gd;mso-para-margin-bottom:0cm;mso-para-margin-left:1.0gd;mso-para-margin-bottom:.0001pt">
<span lang="EN-US">I see that you're trying to compile also the c++ compiler. You have to add --disable-libsanitizer and --disable-libmpx to the configure step, it will fail otherwise<o:p></o:p></span></p>
</div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-left:21.0pt;mso-para-margin-left:1.75gd"><span lang="EN-US"><br>
</span>在<span lang="EN-US"> 2019/10/15 </span>上午<span lang="EN-US">12:48</span>,<span lang="EN-US">“Clfs-support
</span>代表<span lang="EN-US"> Andrew Bradford”<<a href="mailto:clfs-support-bounces@lists.clfs.org" target="_blank">clfs-support-bounces@lists.clfs.org</a>
</span>代表 <span lang="EN-US"><a href="mailto:bradfa@gmail.com" target="_blank">bradfa@gmail.com</a>>
</span>写入<span lang="EN-US">:<br>
<br>
    Hi,<br>
<br>
    On Mon, Oct 14, 2019 at 11:27 AM DELUGE <deluge@52loli.vip> wrote:<br>
    > When I build gcc 6.2 following <a href="http://clfs.org/view/clfs-embedded/x86/cross-tools/gcc-static.html" target="_blank">
http://clfs.org/view/clfs-embedded/x86/cross-tools/gcc-static.html</a> on Ubuntu 19.04 using gcc 8.3,<br>
    > The error below occurred. Can anyone tell me how can I resolve this problem? Thanks.<br>
    ><br>
    > make[1]: Nothing to be done for 'all'.<br>
    > make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/fixincludes'<br>
    > make[1]: Entering directory '/mnt/clfs/sources/gcc-build/gcc'<br>
    > g++ -fno-PIE -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
 -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc-6.2.0/gcc -I../../gcc-6.2.0/gcc/. -I../../gcc-6.2.0/gcc/../include -I../../gcc-6.2.0/gcc/../libcpp/include -I/mnt/clfs/sources/gcc-build/./gmp -I/mnt/clfs/sources/gcc-6.2.0/gmp -I/mnt/clfs/sources/gcc-build/../gcc-6.2.0/mpfr/src
 -I/mnt/clfs/sources/gcc-6.2.0/mpc/src  -I../../gcc-6.2.0/gcc/../libdecnumber -I../../gcc-6.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-6.2.0/gcc/../libbacktrace   -o ubsan.o -MT ubsan.o -MMD -MP -MF ./.deps/ubsan.TPo ../../gcc-6.2.0/gcc/ubsan.c<br>
    > ../../gcc-6.2.0/gcc/ubsan.c: In function 'bool ubsan_use_new_style_p(location_t)':<br>
    > ../../gcc-6.2.0/gcc/ubsan.c:1472:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]<br>
    >        || xloc.file == '\0' || xloc.file[0] == '\xff'<br>
    >                        ^~~~<br>
    > make[1]: *** [Makefile:1085: ubsan.o] Error 1<br>
    > make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/gcc'<br>
    > make: *** [Makefile:4121: all-gcc] Error 2<br>
<br>
    Newer versions of GCC have different default settings for what is<br>
    considered an error or a warning as compared to older versions of GCC.<br>
    I believe that GCC releases from version 7 onwards will hit this issue<br>
    when building GCC 6.3.<br>
<br>
    I believe that newer releases of GCC version 6 (like version 6.4 or<br>
    6.5) should fix this.  You could try using a newer version of GCC 6.<br>
    Or you can have a try at applying this patch from OpenEmbedded:<br>
    <a href="https://patchwork.openembedded.org/patch/138884/" target="_blank">https://patchwork.openembedded.org/patch/138884/</a><br>
<br>
    Sorry, I don't have a better or more detailed answer for you right now.<br>
    Thanks,<br>
    Andrew<br>
    _______________________________________________<br>
    Clfs-support mailing list<br>
    <a href="mailto:Clfs-support@lists.clfs.org" target="_blank">Clfs-support@lists.clfs.org</a><br>
    <a href="http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org" target="_blank">
http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org</a><br>
<br>
<br>
_______________________________________________<br>
Clfs-support mailing list<br>
<a href="mailto:Clfs-support@lists.clfs.org" target="_blank">Clfs-support@lists.clfs.org</a><br>
<a href="http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org" target="_blank">http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org</a><o:p></o:p></span></p>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>