Project

General

Profile

Actions

Bug #64472

open

qatzip submodule: compilation fails with clang 16+

Added by Casey Bodley 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

$ cmake -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug ..
$ cmake --build . --target ceph_zlib
In file included from qatzip.c:67:
./qatzip_internal.h:445:25: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
  445 | void streamBufferCleanup();
      |                         ^
      |                          void
qatzip.c:1680:18: error: variable 'sleep_cnt' set but not used [-Werror,-Wunused-but-set-variable]
 1680 |     unsigned int sleep_cnt = 0; 
      |                  ^
qatzip.c:2565:18: error: variable 'sleep_cnt' set but not used [-Werror,-Wunused-but-set-variable]
 2565 |     unsigned int sleep_cnt = 0; 
      |                  ^
3 errors generated.

i verified that qatzip's master branch fails the same way, so reported the issue in https://github.com/intel/QATzip/issues/111

Actions #1

Updated by Casey Bodley 3 months ago

system packages can be used as a workaround for centos9 and fedora:

sudo dnf install -y qatlib-devel qatzip-devel
cmake -DWITH_SYSTEM_QATLIB=ON -DWITH_SYSTEM_QATZIP=ON ..
Actions

Also available in: Atom PDF