Netifd compilation is failing

Hi

While building the firmware , getting stuck at netifd. its giving below error saying:

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)


lto1: error: target attribute or pragma changes single precision floating point
lto1: error: target attribute or pragma changes double precision floating point
lto1: error: target attribute or pragma changes single precision floating point
lto1: error: target attribute or pragma changes double precision floating point
..../openwrt/build_dir/target-powerpc64_e5500_glibc/netifd-2021-07-26-440eb064/CMakeFiles/CMakeTmp/testCCompiler.c:9:5: error: target attribute or pragma changes single precision floating point
 int main(int argc, char* argv[])
     ^
..../openwrt/build_dir/target-powerpc64_e5500_glibc/netifd-2021-07-26-440eb064/CMakeFiles/CMakeTmp/testCCompiler.c:9:5: error: target attribute or pragma changes double precision floating point
lto1: error: target attribute or pragma changes single precision floating point
lto1: error: target attribute or pragma changes double precision floating point
lto-wrapper: fatal error: /
.../openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-7.5.0_glibc/bin/powerpc64-openwrt-linux-gnu-gcc returned 1 exit status
compilation terminated.
..../openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-7.5.0_glibc/lib/gcc/powerpc64-openwrt-linux-gnu/7.5.0/../../../../powerpc64-openwrt-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_0c923.dir/build.make:105: recipe for target 'cmTC_0c923' failed
make[5]: *** [cmTC_0c923] Error 1
make[5]: Leaving directory
..//openwrt/build_dir/target-powerpc64_e5500_glibc/netifd-2021-07-26-440eb064/CMakeFiles/CMakeTmp'
Makefile:140: recipe for target 'cmTC_0c923/fast' failed
make[4]: *** [cmTC_0c923/fast] Error 2
make[4]: Leaving directory '/

For which platform are you building? I cannot find any target which is using powerpc64 as CPU

Anyway, I would try to fix the error "lto1: error: target attribute or pragma changes single precision floating point" first.