Skip to content

Openocd (default branch (sdk-2.0.0)) Won't build from source on Ucrt64/MSYS2 or MinGW64/MSYS2 but will with WSL (not cross compile) due to uint in src/flash/nor/rp2040.c #125

Description

@SagaraBattousai

When trying to build Openocd following both the instructions at getting-started-with-pico.pdf and README.Windows I am unable to build the default branch (sdk-2.0.0) with either UCRT64/MSYS2 or MinGW64/MSYS2 as both result in error due to the use of uint in lines 192, 236, 414 and 491 of src/flash/nor/rp2040.c. Interestingly though, there are no problems compiling with WSL2 (although that is for a direct compilation, no cross-compiling).

Fortunately, the rp2040-0.12-rc2 branch compiles perfectly on UCRT64 (and from a quick skim of the source code has removed all uses of plain uint, but I was not quite able/willing to try and merge the two branches locally).

I apologise if this is due to a mistake on my behalf, it has been a long long time since I've built anyone else's software, I probably should just have learnt to cross-compile :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions