Skip to content

“archive has no index” error when unit testing on native with Mingw-w64  #25

@robmaxtech

Description

@robmaxtech

With a unit testing project as native test using MinGW64, installed as in the doc, I encountered a
mingw32/bin/ld.exe: .pio\build\native.... .a: error adding symbols: archive has no index; run ranlib to add one
error message.
Via this post I found that MinGW 13.2 seems to be the reason for the problem; after downgrading to MinGW 12.2.0.03042023 solved the issue. (installation via chocolatey; I assume it works also with other installation ways)
Maybe this should be mentioned in the doc.

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