New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 44907 - Build fails (llvm-ar) using MinGW 8.1
Summary: Build fails (llvm-ar) using MinGW 8.1
Status: RESOLVED FIXED
Alias: None
Product: Build scripts
Classification: Unclassified
Component: cmake (show other bugs)
Version: 10.0
Hardware: PC Windows NT
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: release-10.0.0
  Show dependency tree
 
Reported: 2020-02-14 03:50 PST by Cristian Adam
Modified: 2020-02-28 02:34 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Adam 2020-02-14 03:50:51 PST
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
Comment 1 Hans Wennborg 2020-02-28 02:34:47 PST
> I have a build fix at: https://reviews.llvm.org/D74599

That's now on master as 01f9abbb50b11dd26b9ccb7cb565cc955d2b9c74 and on 10.x as daae05af2a5d1170de6940569128dcf071db32ef. Thanks!