Skip to content

Build fails (llvm-ar) using MinGW 8.1 #44252

@cristianadam

Description

@cristianadam
Bugzilla Link 44907
Resolution FIXED
Resolved on Feb 28, 2020 02:34
Version 10.0
OS Windows NT
Blocks #43900
CC @zmodem

Extended Description

You can see the error here: https://github.com/cristianadam/llvm-project/runs/443996527?check_suite_focus=true

D:/a/llvm-project/llvm-project/llvm/tools/llvm-ar/llvm-ar.cpp: In function 'bool comparePaths(llvm::StringRef, llvm::StringRef)':
D:/a/llvm-project/llvm-project/llvm/tools/llvm-ar/llvm-ar.cpp:524:10: error: 'CompareStringOrdinal' was not declared in this scope
return CompareStringOrdinal(WPath1.data(), WPath1.size(), WPath2.data(),
^~~~~~~~~~~~~~~~~~~~
D:/a/llvm-project/llvm-project/llvm/tools/llvm-ar/llvm-ar.cpp:524:10: note: suggested alternative: 'CompareStringA'
return CompareStringOrdinal(WPath1.data(), WPath1.size(), WPath2.data(),
^~~~~~~~~~~~~~~~~~~~
CompareStringA

I have a build fix at: https://reviews.llvm.org/D74599

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillacmakeBuild system in general and CMake in particular

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions