[Clfs-support] [Native Compiler] Problem Cross-compiling GMP MPFR and MPC

Michele Bucca michele.bucca at gmail.com
Mon Apr 17 06:57:23 PDT 2017


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

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})
>
> rgds,
>
> akh
>
>
>
>
>
> --
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.clfs.org
> http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20170417/443354f6/attachment-0001.htm>


More information about the Clfs-support mailing list