Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.4.0
-
None
-
Microsoft Windows [Version 10.0.17134.2208]
c:\>icx --version
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2022.2.0 Build 20220730
Copyright (C) 1985-2022 Intel Corporation. All rights reserved.
Intel(R) oneAPI DPC++/C++ Compiler 2022.2.0 (2022.2.0.20220730)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm
Configuration file: C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin\icx.cfgMicrosoft Windows [Version 10.0.17134.2208] c:\>icx --version Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2022.2.0 Build 20220730 Copyright (C) 1985-2022 Intel Corporation. All rights reserved. Intel(R) oneAPI DPC++/C++ Compiler 2022.2.0 (2022.2.0.20220730) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm Configuration file: C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin\icx.cfg
Description
The build of QTiffPlugin fails on tif_lzw.c error using oneapi icx on windows
Latest version of icx Version 2022.2.0 Build 20220730 throws an error
instead of a warning while compiling tif_lzw.c
C:\Qt\qt-everywhere-src-6.4.0\qtimageformats\src\3rdparty\libtiff\libtiff\tif_lzw.c(471,9): error: call to undeclared library function '_byteswap_uint64' with type 'unsigned long long (unsigned long long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
icx Version 2022.1.0 Build 20220316 just threw a warning
C:\Qt\qt-everywhere-src-6.3.2\qtimageformats\src\3rdparty\libtiff\libtiff\tif_lzw.c(471,9): warning: implicitly declaring library function '_byteswap_uint64' with type 'unsigned long long (unsigned long long)' [-Wimplicit-function-declaration]
Work around add the following to tif_lzw.c
# elif defined(__llvm__) # define GetNextData(nextdata, bp) nextdata = __builtin_bswap64(*(uint64_t*)(bp))