Skip to content

Error building the python framework #6

@unclecode

Description

@unclecode

I get this error when I run "make CONFIG=pyboard"

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. CC ../micropython/py/../lib/utils/printf.c ../micropython/py/../lib/utils/printf.c:109:5: error: '__GI_vsnprintf' specifies less restrictive attributes than its target 'vsnprintf': 'nonnull', 'nothrow' [-Werror=missing-attributes] 109 | int __GI_vsnprintf(char *str, size_t size, const char *fmt, va_list ap) __attribute__((weak, alias ("vsnprintf"))); | ^~~~~~~~~~~~~~ ../micropython/py/../lib/utils/printf.c:112:5: note: '__GI_vsnprintf' target declared here 112 | int vsnprintf(char *str, size_t size, const char *fmt, va_list ap) { | ^~~~~~~~~ cc1: all warnings being treated as errors make: *** [build_pyboard/py/../lib/utils/printf.o] Error 1

When I run "make CONFIG=pyboard CFLAGS="-Wno-error" CXXFLAGS="-Wno-error" then I get this:

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. CC ../micropython/py/../lib/utils/printf.c ../micropython/py/../lib/utils/printf.c:27:10: fatal error: py/mpconfig.h: No such file or directory 27 | #include "py/mpconfig.h" | ^~~~~~~~~~~~~~~ compilation terminated. make: *** [build_pyboard/py/../lib/utils/printf.o] Error 1

I searched and really there is no "mpconfig.h" file in the directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions