Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(macOS) mbedtls dep failure #1314

Closed
kevleyski opened this issue Dec 5, 2023 · 6 comments
Closed

(macOS) mbedtls dep failure #1314

kevleyski opened this issue Dec 5, 2023 · 6 comments
Assignees
Labels
platform: macOS Issues affecting macOS priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@kevleyski
Copy link

System info

macOS Sonoma 14.1.1 (23B81)
(main) 3e71302

Issue and steps to reproduce the problem

Third party dep failure

[159/821] Building C object packager/third_party/mbedtls/source/library/CMakeFiles/mbedcrypto.dir/psa_crypto_client.c.o
FAILED: packager/third_party/mbedtls/source/library/CMakeFiles/mbedcrypto.dir/psa_crypto_client.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I/Users/kevin.staunton-lambert/workspace/github_kevleyski/shaka-packager/packager/.. -I/Users/kevin.staunton-lambert/workspace/github_kevleyski/shaka-packager/packager/../include -I/Users/kevin.staunton-lambert/workspace/github_kevleyski/shaka-packager/packager/third_party/mbedtls/source/include -I/Users/kevin.staunton-lambert/workspace/github_kevleyski/shaka-packager/packager/third_party/mbedtls/source/library -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat=2 -Wno-format-nonliteral -Werror -Wmissing-declarations -Wmissing-prototypes -Wdocumentation -Wno-documentation-deprecated-sync -Wunreachable-code -O0 -g3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -fcolor-diagnostics -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-unused-but-set-variable -MD -MT packager/third_party/mbedtls/source/library/CMakeFiles/mbedcrypto.dir/psa_crypto_client.c.o -MF packager/third_party/mbedtls/source/library/CMakeFiles/mbedcrypto.dir/psa_crypto_client.c.o.d -o packager/third_party/mbedtls/source/library/CMakeFiles/mbedcrypto.dir/psa_crypto_client.c.o -c /Users/kevin.staunton-lambert/workspace/github_kevleyski/shaka-packager/packager/third_party/mbedtls/source/library/psa_crypto_client.c
In file included from /Users/kevin.staunton-lambert/workspace/github_kevleyski/shaka-packager/packager/third_party/mbedtls/source/library/psa_crypto_client.c:22:
/Users/kevin.staunton-lambert/workspace/github_kevleyski/shaka-packager/packager/third_party/mbedtls/source/include/psa/crypto.h:91:23: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]

@kevleyski
Copy link
Author

kevleyski commented Dec 5, 2023

(probably useful)
Mbed-TLS/mbedtls#6960

In my case latest clang (I think?)
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: x86_64-apple-darwin23.1.0

cmake version 3.27.7

@kevleyski
Copy link
Author

(hmm Ubuntu build didn't seem to build either, might be a clib/g++ version dep , bit low on time today - will look at it later, maybe I should stick with Docker :-)

@simonbcn
Copy link

Same problem on MacOS Sonoma 14.2.1 and Clang 15.

@joeyparrish
Copy link
Member

@kevleyski, @simonbcn, can you please test again with the latest from main? There have been many changes since the commit you referenced from December 1st, including upgrades to zlib, protobuf, and absl, and a change to stop treating warnings as errors in third_party dependencies. My hope is that one of these many changes has resolved the issue. If not, we can try an update to mbedtls, since the linked issue is closed there.

@joeyparrish joeyparrish self-assigned this Feb 15, 2024
@joeyparrish joeyparrish added type: bug Something isn't working correctly priority: P1 Big impact or workaround impractical; resolve before feature release platform: macOS Issues affecting macOS labels Feb 15, 2024
@github-actions github-actions bot added this to the v3.0 milestone Feb 15, 2024
@cosmin
Copy link
Contributor

cosmin commented Feb 15, 2024

I could previously reproduce this with clang 15 on my Mac as well (so I had to pin clang to 14 to build). It now works properly with Clang 15. The change to not treat warnings as errors in 3rd party libs fixed this issue.

@joeyparrish joeyparrish added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Feb 15, 2024
Copy link

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.

@github-actions github-actions bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Feb 22, 2024
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Apr 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: macOS Issues affecting macOS priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

4 participants