Closed yzabalotski closed 1 year ago
Hi @yzabalotski, thanks so much for the report. We'll investigate.
Filed internally as 179955.
This is an interesting one. It looks like GCC 11 introduced a new analysis, and this may be a false positive.
As a workaround while I continue to investigate, I can confirm that the build succeeds with Ubuntu 20.04.
Hi @cwaldren-ld, thank you for the fast response. We spotted the issue because we were trying to move to Ubuntu 22.04. So, any updates so far?
Hi @yzabalotski, no updates so far.
To unblock yourself for now, you may modify CMakeLists.txt
to remove the -Werror
line, which will allow the build to succeed.
As would be expected, the issue reproduces with the following Dockerfile as well:
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y \
libcurl-* \
g++ \
cmake \
git
RUN cd /tmp && git clone --depth 1 --branch 2.5.2 https://github.com/launchdarkly/c-client.git ldclient && cd ldclient && mkdir build && cd build && cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release .. && make -j4
Hi @yzabalotski, sorry about the long wait on this one. I believe I have a fix, which should go out in the next release.
This has been fixed in 2.5.5. Thanks again for your report; please confirm that you no longer encounter the issue.
2.5.5 worked fine, thanks!
Describe the bug Build failed with gcc 11.3/ubuntu 22.04.
To reproduce
Expected behavior Build finished successfully.
Logs
SDK version 2.5.2 master
Language version, developer tools gcc 11.3
OS/platform Ubuntu 22.04