<p dir="ltr"><br>
Il 17 apr 2017 3:52 PM, "akhiezer" <<a href="mailto:lfs65@cruziero.com">lfs65@cruziero.com</a>> ha scritto:<br>
><br>
> > From <a href="mailto:clfs-support-bounces@lists.clfs.org">clfs-support-bounces@lists.clfs.org</a> Mon Apr 17 13:44:15 2017<br>
> > From: Michele Bucca <<a href="mailto:michele.bucca@gmail.com">michele.bucca@gmail.com</a>><br>
> > Date: Mon, 17 Apr 2017 14:44:20 +0200<br>
> > To: CLFS Support <<a href="mailto:clfs-support@lists.clfs.org">clfs-support@lists.clfs.org</a>><br>
> > Subject: Re: [Clfs-support] [Native Compiler] Problem Cross-compiling GMP<br>
> >  MPFR and MPC<br>
> ><br>
>         .<br>
>         .<br>
> > > >>> > ../../../gcc-src/libgcc/../libdecnumber/decLibrary.c:27:24: fatal<br>
> > > >>> > error: decimal128.h: No such file or directory<br>
> > > >>> >  #include "decimal128.h"<br>
> > > >>> >                         ^<br>
>         .<br>
>         .<br>
> > ><br>
> > > I made sure that GCC could find the decimal128.h and the other files<br>
> > > that it was looking for but I got this error.<br>
> > ><br>
> > > i486-linux-musl-gcc   -g -O2 -O2  -g -O2 -DIN_GCC    -W -Wall<br>
> > > -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes<br>
> > > -Wmissing-prototypes -Wold-style-definition  -isystem ./include<br>
> > > -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2<br>
> > > -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fpic<br>
> > > -mlong-double-80 -DUSE_ELF_SYMVER -I. -I. -I../.././gcc<br>
> > > -I../../../gcc-src/libgcc -I../../../gcc-src/libgcc/.<br>
> > > -I../../../gcc-src/libgcc/../gcc -I../../../gcc-src/libgcc/../include<br>
> > > -I../../../gcc-src/libgcc/../libdecnumber/no<br>
> > > -I../../../gcc-src/libgcc/../libdecnumber -DHAVE_CC_TLS  -DUSE_TLS -o<br>
> > > decSingle.o -MT decSingle.o -MD -MP -MF decSingle.dep -c<br>
> > > ../../../gcc-src/libgcc/../libdecnumber/decSingle.c<br>
> > > make[1]: ***  Nessuna regola per generare l'obiettivo<br>
> > > "../../../gcc-src/libgcc/../libdecnumber/no/decimal32.c", necessario<br>
> > > per "decimal32.o".  Arresto.<br>
> > > make[1]: uscita dalla directory<br>
> > > "/home/michele/tmp/musl-native-toolchain/2-obj-gcc/i486-linux-musl/libgcc"<br>
> > > Makefile:11384: set di istruzioni per l'obiettivo "all-target-libgcc"<br>
> > > non riuscito<br>
> > > make: *** [all-target-libgcc] Errore 2<br>
> > ><br>
> > > it says that there's no rule to generate the object decimal32.o<br>
> ><br>
> > problem solved removing the --disable-decimal-float switch from configure.<br>
> ><br>
> > to build C++ support in the host-x-host relocatable compiler use<br>
> ><br>
> > --build=${CLFS_HOST}<br>
> > --host=${CLFS_TARGET}<br>
> > --target=${CLFS_TARGET}<br>
> > --enable-languages=c,c++ \<br>
> > --disable-libmudflap \<br>
> > --disable-libsatinizer \<br>
> > --disable-libmpx \<br>
> > --enable-c99 \<br>
> > --enable-long-long \<br>
> > --disable-nls \<br>
> > --disable-multilib<br>
><br>
><br>
>  - good to hear; thanks for posting the resolution; certainly added to<br>
> notes/&c at this end - for info and for possible further investigation.<br>
><br>
></p>
<p dir="ltr">Oh and if you compile gmp, mpfr and MPC  out of GCC's tree make sure to use the build and host switches and point mpc to the direcrory where the dependent libraries are located (--with-gmp=/cross-tools/${CLFS_TARGET})<br>
><br>
> rgds,<br>
><br>
> akh<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> _______________________________________________<br>
> Clfs-support mailing list<br>
> <a href="mailto:Clfs-support@lists.clfs.org">Clfs-support@lists.clfs.org</a><br>
> <a href="http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org">http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org</a><br>
</p>