cuberite / cuberite

A lightweight, fast and extensible game server for Minecraft

Home Page:https://cuberite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling with Clang 13.0.0 fails

Bond-009 opened this issue · comments

Server OS: Linux
Cuberite Commit id: 7790ebc

Compiling with Clang 13.0.0 fails

cuberite/lib/mbedtls/library/psa_crypto_cipher.c:267:12: error: parameter 'output_size' set but not used [-Werror,-Wunused-but-set-parameter]
    size_t output_size,
           ^
1 error generated.
make[2]: *** [lib/mbedtls/library/CMakeFiles/mbedcrypto.dir/build.make:748: lib/mbedtls/library/CMakeFiles/mbedcrypto.dir/psa_crypto_cipher.c.o] Error 1

This seems to be a problem of polarssl

Our branch is up to date with theirs

Fixed upstream Mbed-TLS/mbedtls#4938 but awaiting their release

@tigerw there was a release twelve days ago which fixes the bug

Hopefully fixed by #5370, can you confirm @Bond-009

There are still more errors, see #5374

error: AST file was compiled with the target feature '-rtm' but the current translation unit is not
error: current translation unit is compiled with the target feature '+rtm' but the AST file was not

When compiling without any options

Is this issue resolved with the PR?

No, see my last comment

I just managed to compile with clang 13.0.0. My compilation issues seem to have been fixed in da0fdbe.

Master compiles fine now, tested release and debug.