https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100350
Bug ID: 100350
Summary: [12 Regression] x86-64→PowerPC bootstrap fails since
r12-228: error: '__LIBGCC_KF_MIN__' undeclared in
expansion of macro 'RMIN'
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
CC: dje at gcc dot gnu.org, jemarch at gnu dot org, segher at
gcc dot gnu.org
Target Milestone: ---
Host: x86_64-gnu-linux
Target: powerpc64le-linux
The crossbuild x86-64-gnu-linux to powerpc64le-linux now fails with the
following error.
The commit causing this issue is:
r12-228-g54f0224d55a1b56dde092460ddf76913670e6efc
"Practical improvement to libgcc complex divide"
Author: Patrick McGehearty <[email protected]>
Commit: Jose E. Marchesi <[email protected]>
Date: Wed Apr 28 21:54:44 2021 +0200
That patch adds to libgcc/config/rs6000/_divkc3.c
+#ifndef __LONG_DOUBLE_IEEE128__
+#define RBIG (__LIBGCC_KF_MAX__ / 2)
+#define RMIN (__LIBGCC_KF_MIN__)
The actual fail is:
$BUILD/./gcc/xgcc -B$BUILD/./gcc/ -B$INST/powerpc64le-none-linux-gnu/bin/
-B$INST/powerpc64le-none-linux-gnu/lib/ -isystem
$INST/powerpc64le-none-linux-gnu/include -isystem
$INST/powerpc64le-none-linux-gnu/sys-include
--sysroot=$INST/powerpc64le-none-linux-gnu/libc -g -O2 -O2 -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -mlong-double-128
-mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC
-mlong-double-128 -mno-minimal-toc -I. -I. -I../.././gcc -I$SRC/libgcc
-I$SRC/libgcc/. -I$SRC/libgcc/../gcc -I$SRC/libgcc/../include
-I$SRC/libgcc/../libdecnumber/dpd -I$SRC/libgcc/../libdecnumber -DHAVE_CC_TLS
-o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c
$SRC/libgcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
$SRC/libgcc/config/rs6000/_divkc3.c:42:17: error: '__LIBGCC_KF_MIN__'
undeclared (first use in this function)
42 | #define RMIN (__LIBGCC_KF_MIN__)
| ^~~~~~~~~~~~~~~~~
$SRC/libgcc/config/rs6000/_divkc3.c:87:28: note: in expansion of macro 'RMIN'
87 | if (((FABS (a) < RMIN) && (FABS (b) < RMAX2) && (FABS (d) <
RMAX2))
| ^~~~
$SRC/libgcc/shared-object.mk:14: recipe for target '_divkc3.o' failed
make[2]: *** [_divkc3.o] Error 1