<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il gio 17 ott 2019, 02:34 DELUGE <deluge@52loli.vip> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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" rel="noreferrer noreferrer noreferrer" 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" rel="noreferrer noreferrer noreferrer" 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" rel="noreferrer noreferrer noreferrer" 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<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
在 2019/10/15 上午12:48,“Clfs-support 代表 Andrew Bradford”<<a href="mailto:clfs-support-bounces@lists.clfs.org" rel="noreferrer noreferrer" target="_blank">clfs-support-bounces@lists.clfs.org</a> 代表 <a href="mailto:bradfa@gmail.com" rel="noreferrer noreferrer" target="_blank">bradfa@gmail.com</a>> 写入:<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" rel="noreferrer noreferrer noreferrer" 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/" rel="noreferrer noreferrer noreferrer" 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" rel="noreferrer noreferrer" target="_blank">Clfs-support@lists.clfs.org</a><br>
    <a href="http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org" rel="noreferrer noreferrer noreferrer" 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" rel="noreferrer noreferrer" target="_blank">Clfs-support@lists.clfs.org</a><br>
<a href="http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org</a><br>
</blockquote></div></div></div>