1 |
> On 27 Dec 2021, at 05:24, Georgy Yakovlev <gyakovlev@g.o> wrote: |
2 |
> |
3 |
> otherwise initial build may fail with: |
4 |
> unknown long double size, cannot define BFP_FMT |
5 |
|
6 |
If possible, would you mind filing a bug with the build log |
7 |
of it failing (and brief steps on how to get it) just so |
8 |
we can easily test if we can drop it in future? |
9 |
|
10 |
(We have a lot of hacks like this where I worry |
11 |
we'll never be able to drop them with confidence) |
12 |
|
13 |
If it takes a huge amount of work to get there, then don't |
14 |
bother, as it's negligible gain. |
15 |
|
16 |
> |
17 |
> Signed-off-by: Georgy Yakovlev <gyakovlev@g.o> |
18 |
> --- |
19 |
> eclass/toolchain.eclass | 5 +++++ |
20 |
> 1 file changed, 5 insertions(+) |
21 |
> |
22 |
> diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
23 |
> index fd03ba176276..1102c4fc5d56 100644 |
24 |
> --- a/eclass/toolchain.eclass |
25 |
> +++ b/eclass/toolchain.eclass |
26 |
> @@ -1099,6 +1099,11 @@ toolchain_src_configure() { |
27 |
> # Set up defaults based on current CFLAGS |
28 |
> is-flagq -mfloat-gprs=double && confgcc+=( --enable-e500-double ) |
29 |
> [[ ${CTARGET//_/-} == *-e500v2-* ]] && confgcc+=( --enable-e500-double ) |
30 |
> + if [[ ${CTARGET} == powerpc-*-musl ]]; then |
31 |
> + # fix: unknown long double size, cannot define BFP_FMT |
32 |
> + confgcc+=( --disable-decimal-float ) |
33 |
> + export gcc_cv_target_ldbl128=no |
34 |
> + fi |
35 |
> ;; |
36 |
> ppc64) |
37 |
> # On ppc64 big endian target gcc assumes elfv1 by default, |
38 |
> -- |
39 |
> 2.34.1 |
40 |
> |
41 |
> |
42 |
|
43 |
Looks fine otherwise though. |
44 |
|
45 |
best, |
46 |
sam |