Beiträge von shrike

    Hi,


    is it just me or is the installation package for RPi Buster currently broken?


    My compile consistently fails on a fresh current Buster image runing on a PBi 4 after


    wget -qN https://raw.github.com/hyperio…scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i rpi-raspbian -t buster


    with errors in x509.c (output see below). Same behavior if I do it manually outside docker. Any ideas?


    Many thanks in advance and have a great day!



    -------



    Truncated output:


    [ 42%] Building C object dependencies/external/mbedtls/build/library/CMakeFiles/mbedx509.dir/x509.c.o

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c: In function ‘mbedtls_x509_dn_gets’:

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:789:40: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 1 [-Werror=format-truncation=]

    ret = mbedtls_snprintf( p, n, "%s", s );

    ^~ ~

    In file included from /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:47:

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/include/mbedtls/platform.h:76:41: note: ‘snprintf’ output between 1 and 256 bytes into a destination of size 1

    #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/include/mbedtls/platform.h:243:28: note: in expansion of macro ‘MBEDTLS_PLATFORM_STD_SNPRINTF’

    #define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:789:15: note: in expansion of macro ‘mbedtls_snprintf’

    ret = mbedtls_snprintf( p, n, "%s", s );

    ^~~~~~~~~~~~~~~~

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c: In function ‘mbedtls_x509_serial_gets’:

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:827:41: error: ‘....’ directive output truncated writing 4 bytes into a region of size 1 [-Werror=format-truncation=]

    ret = mbedtls_snprintf( p, n, "...." );

    ~^~~

    In file included from /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:47:

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/include/mbedtls/platform.h:76:41: note: ‘snprintf’ output 5 bytes into a destination of size 1

    #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/include/mbedtls/platform.h:243:28: note: in expansion of macro ‘MBEDTLS_PLATFORM_STD_SNPRINTF’

    #define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:827:15: note: in expansion of macro ‘mbedtls_snprintf’

    ret = mbedtls_snprintf( p, n, "...." );

    ^~~~~~~~~~~~~~~~

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c: In function ‘mbedtls_x509_sig_alg_gets’:

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:864:41: error: ‘ (’ directive output truncated writing 2 bytes into a region of size 1 [-Werror=format-truncation=]

    ret = mbedtls_snprintf( p, n, " (%s, MGF1-%s, 0x%02X)",

    ~^

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:864:39: note: assuming directive output of 3 bytes

    ret = mbedtls_snprintf( p, n, " (%s, MGF1-%s, 0x%02X)",

    ^~~~~~~~~~~~~~~~~~~~~~~~

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:864:39: note: assuming directive output of 3 bytes

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:864:39: note: using the range [0, 4294967295] for directive argument

    In file included from /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:47:

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/include/mbedtls/platform.h:76:41: note: ‘snprintf’ output 17 or more bytes (assuming 23) into a destination of size 1

    #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/include/mbedtls/platform.h:243:28: note: in expansion of macro ‘MBEDTLS_PLATFORM_STD_SNPRINTF’

    #define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /source/build-rpi-raspbian-buster/dependencies/external/mbedtls/src/library/x509.c:864:15: note: in expansion of macro ‘mbedtls_snprintf’

    ret = mbedtls_snprintf( p, n, " (%s, MGF1-%s, 0x%02X)",

    ^~~~~~~~~~~~~~~~

    [ 42%] Building CXX object dependencies/external/protobuf/src/CMakeFiles/protoc_lib.dir/google/protobuf/compiler/cpp/cpp_field.cc.o

    cc1: all warnings being treated as errors

    make[2]: *** [dependencies/external/mbedtls/build/library/CMakeFiles/mbedx509.dir/build.make:89: dependencies/external/mbedtls/build/library/CMakeFiles/mbedx509.dir/x509.c.o] Error 1

    make[1]: *** [CMakeFiles/Makefile2:1060: dependencies/external/mbedtls/build/library/CMakeFiles/mbedx509.dir/all] Error 2