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

Michele Bucca michele.bucca at gmail.com
Sun Apr 16 08:36:27 PDT 2017


2017-04-16 9:15 GMT+02:00 Michele Bucca <michele.bucca at gmail.com>:
> 2017-04-15 21:58 GMT+02:00 Michele Bucca <michele.bucca at gmail.com>:
>>
>> Il 15 apr 2017 9:56 PM, "akhiezer" <lfs65 at cruziero.com> ha scritto:
>>>
>>> > From: Michele Bucca <michele.bucca at gmail.com>
>>> > Date: Sat, 15 Apr 2017 13:15:01 +0200
>>> > To: CLFS Support <clfs-support at lists.clfs.org>
>>> > Subject: Re: [Clfs-support] [Native Compiler] Problem Cross-compiling
>>> > GMP
>>> >  MPFR and MPC
>>> >
>>> > 2017-04-15 11:22 GMT+02:00 Michele Bucca <michele.bucca at gmail.com>:
>>>         .
>>>         .
>>> >
>>> > I've solved the problem with the libraries but the problem while
>>> > compiling the host-x-host compiler still persists
>>>
>>>
>>> OK: what you're aiming for, depends of course on a long chain of details
>>> being all exactly correct. So let's assume for now that all has been
>>> done correctly thus far: and deal with the gcc error 'at face value'.
>>>
>>>
>>> >
>>> > 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
>>> > decLibrary.o -MT decLibrary.o -MD -MP -MF decLibrary.dep -c
>>> > ../../../gcc-src/libgcc/../libdecnumber/decLibrary.c
>>> > ../../../gcc-src/libgcc/../libdecnumber/decLibrary.c:27:24: fatal
>>> > error: decimal128.h: No such file or directory
>>> >  #include "decimal128.h"
>>> >                         ^
>>>
>>>
>>> Is this an issue where 'decimal128.h' does exist, but is just not
>>> being found. Do you have a 'decimal128.h' file anywhere under your
>>> compile/target areas - just do 'find -P / -iname decimal128.h -ls'
>>> to get them all.
>>
>> Compile/target areas?
>
> I did this:
>
> michele at glados:~/tmp/musl-native-toolchain$ find -P $PWD -iname decimal128.h -ls
> 22569295    4 -rw-r--r--   1 michele  michele      4054 gen  4  2016
> /home/michele/tmp/musl-native-toolchain/gcc-src/libdecnumber/dpd/decimal128.h
> 22569320    4 -rw-r--r--   1 michele  michele        28 mar 24  2007
> /home/michele/tmp/musl-native-toolchain/gcc-src/libdecnumber/bid/decimal128.h
> 10093214    4 -rw-r--r--   1 michele  michele      4054 gen  4  2016
> /home/michele/tmp/musl-native-toolchain/gcc-6.2.0/libdecnumber/dpd/decimal128.h
> 10093239    4 -rw-r--r--   1 michele  michele        28 mar 24  2007
> /home/michele/tmp/musl-native-toolchain/gcc-6.2.0/libdecnumber/bid/decimal128.h
>
> the GCC source was unpacked twice because of me trying to fix this
> problem. I thought that there was a problem with the source code of
> GCC
>
>>>
>>>
>>> If it does exist, then it may be worth trying - at least, as a debugging
>>> step - a symlink to it from where gcc is looking for it.
>>>


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



More information about the Clfs-support mailing list