Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
792 Discussions

oneAPI 2025.2 warning #10430 -Wno-implicit-float-size-conversion

scivision
New Contributor I
1,972 Views

I use the Intel oneAPI APT repo and it is now providing oneAPI 2025.2 specifically for the C++ compiler.

I am using googletest CMake project, which injects option -Wno-implicit-float-size-conversion that wasn't a problem with oneAPI 2025.1 and earlier, but with emerging oneAPI 2025.2 release is making warning #10430 for flag -Wno-implicit-float-size-conversion. Is this flag actually invalid (I would let googletest project et al know) or is this a mistake in oneAPI 2025.2?

 

Example command formed by googletest CMake project that is newly broken for oneAPI 2025.2:

 

/opt/intel/oneapi/compiler/2025.2/bin/icpx -I/home/runner/work/ffilesystem/ffilesystem/build/_deps/googletest-src/googletest/include -I/home/runner/work/ffilesystem/ffilesystem/build/_deps/googletest-src/googletest -O3 -DNDEBUG -std=c++20 -fPIC -Wall -Wshadow -Wconversion -Wundef -Wno-implicit-float-size-conversion -ffp-model=precise -DGTEST_HAS_PTHREAD=1 -fexceptions -W -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wunused-parameter -Wcast-align -Winline -Wredundant-decls -Wall -Werror -MD -MT _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -MF _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o.d -o _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o -c /home/runner/work/ffilesystem/ffilesystem/build/_deps/googletest-src/googletest/src/gtest-all.cc
icpx: command line warning #10430: Unsupported command line options encountered
These options as listed are not supported.
For more information, use '-qnextgen-diag'.
option list:
 -Winline
error: unknown warning option '-Wno-implicit-float-size-conversion' [-Werror,-Wunknown-warning-option]
0 Kudos
1 Reply
yzh_intel
Moderator
1,849 Views

Hi, there was a change in icpx.

-Wimplicit-float-size-conversion and -Wno-implicit-float-size-conversion  need to be updated to -Wsycl-implicit-float-size-conversion and -Wno-sycl-implicit-float-size-conversion respectively. This was to align icpx with the behavior of clang. 

please update your build script, sorry for the inconvenience.

0 Kudos
Reply