Skip to content

Build error for hosted platform #1466

@lenvm

Description

@lenvm

I encountered a build error while trying to build commit cae88d6 on main for the hosted platform.

I used:
make PROBE_HOST=hosted

Returns:

 GEN      include/version.h
  CC      target/adiv5.c
target/adiv5.c:530:83: error: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Werror,-Wformat]
                                "Patching Designer code 0x%03" PRIx16 " -> 0x%03" PRIx16 "\n", designer_code, JEP106_MANUFACTURER_STM);
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
./target/jep106.h:60:42: note: expanded from macro 'JEP106_MANUFACTURER_STM'
#define JEP106_MANUFACTURER_STM          0x020U /* STMicroelectronics */
                                         ^~~~~~
include/general.h:107:41: note: expanded from macro 'DEBUG_WARN'
#define DEBUG_WARN(...)   debug_warning(__VA_ARGS__)
                                        ^~~~~~~~~~~
1 error generated.
make[1]: *** [Makefile:128: adiv5.o] Error 1
make: *** [Makefile:22: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    BMD AppBlack Magic Debug App (aka. PC hosted) (not firmware)BugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions