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

Build errors encountered on tls13-prototype #394

Open
fwh-dc opened this issue Mar 31, 2022 · 0 comments
Open

Build errors encountered on tls13-prototype #394

fwh-dc opened this issue Mar 31, 2022 · 0 comments

Comments

@fwh-dc
Copy link

fwh-dc commented Mar 31, 2022

Summary

I want to play around with your experimental post quantum support and as a first step I was trying to build the code locally without any configuration.

I am executing

git clone https://github.com/hannestschofenig/mbedtls.git --branch tls13-prototype
cmake -B build-mbedtls -S mbedtls
cmake --build build-mbedtls

But then I get

mbedtls/library/ssl_tls13_client.c:44:10: fatal error: 'ssl_debug_helpers_generated.h' file not found
#include "ssl_debug_helpers_generated.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

I can fix that by manually executing

tests/scripts/check-generated-files.sh -u

and re-running

cmake --build build-mbedtls

But then I get the following errors:

mbedtls/library/ssl_tls13_server.c:709:31: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
                              diff ) );
mbedtls/library/ssl_tls13_server.c:725:69: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
                              "MBEDTLS_SSL_EARLY_DATA_MAX_DELAY )", diff ) );

So my question is if this is expected behaviour and if so what are the required build steps?

System information

Mbed TLS version (number or commit id):
Operating system and version: MacOS 12.2.1
Compiler and options (if you used a pre-built binary, please indicate how you obtained it): AppleClang 13.1.6.13160021

Expected behavior

Build success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant