Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows10 fails to compile llvm10.x with MinGW-64 #140

Closed
xmhwws opened this issue Feb 21, 2020 · 4 comments
Closed

Windows10 fails to compile llvm10.x with MinGW-64 #140

xmhwws opened this issue Feb 21, 2020 · 4 comments

Comments

@xmhwws
Copy link

xmhwws commented Feb 21, 2020

Code downloaded from github, its upload time: GMT + 8 February 20, 2020 10:41 pm, commit ID: d75ce45, link: https://github.com/llvm/llvm-project/tree/d75ce45777d9802d43b555993fde8ed6562fb368

Compilation results:
[100%] Built target obj.clangAST
mingw32-make: *** [Makefile:168: all] Error 2

Related Information:
[100%] Building CXX object tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ParentMap.cpp.obj
E:\llvm-project-release-10.x\llvm\tools\llvm-ar\llvm-ar.cpp:[100%]
In function 'bool comparePaths(llvm::StringRef, llvm::StringRef)':
E:\llvm-project-release-10.x\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(),
^~~~~~~~~~~~~~~~~~~~
[100%] Building CXX object tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/MachO/MachOWriter.cpp.objE:\llvm-project-release-10.x\llvm\tools\llvm-ar\llvm-ar.cpp:524:10:
note: suggested alternative: 'CompareStringA'
return CompareStringOrdinal(WPath1.data(), WPath1.size(), WPath2.data(),
[100%] ^~~~~~~~~~~~~~~~~~~~Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/TestAfterDivZeroChecker.cpp.obj

CompareStringA
[100%] Built target sancov
[100%] mingw32-make[2]: *** [tools\llvm-ar\CMakeFiles\llvm-ar.dir\build.make:80: tools/llvm-ar/CMakeFiles/llvm-ar.dir/llvm-ar.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:25090: tools/llvm-ar/CMakeFiles/llvm-ar.dir/all] Error 2
Building CXX object tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/PrintfFormatString.cpp.objmingw32-make[1]: *** Waiting for unfinished jobs....

Compilation process:

mkdir build
cd build
cmake -G "MinGW Makefiles" --enable-optimized --enable-targets=host-only -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_PROJECTS=clang ../llvm
mingw32-make -j10
@zmodem
Copy link
Collaborator

zmodem commented Feb 21, 2020

This sounds like https://bugs.llvm.org/show_bug.cgi?id=44907

@xmhwws
Copy link
Author

xmhwws commented Feb 22, 2020

This sounds like https://bugs.llvm.org/show_bug.cgi?id=44907

Thank you for your help, the problem has been resolved.
I have a little doubt. Since you already know this problem before, why not add the solution to the code?

@zmodem
Copy link
Collaborator

zmodem commented Feb 25, 2020

I have a little doubt. Since you already know this problem before, why not add the solution to the code?

There is a patch in review, but it hasn't been committed yet: https://reviews.llvm.org/D74599

@RKSimon
Copy link
Collaborator

RKSimon commented Apr 12, 2022

I have a little doubt. Since you already know this problem before, why not add the solution to the code?

There is a patch in review, but it hasn't been committed yet: https://reviews.llvm.org/D74599

Fixed by 01f9abb

@RKSimon RKSimon closed this as completed Apr 12, 2022
skatrak added a commit to skatrak/llvm-project that referenced this issue Aug 14, 2024
…ice (llvm#140)

This property of the `OpenMPIRBuilderConfig` is already initialized in the
constructor for `OMPInformationCache`. This looks to be a leftover after a
merge from main (comment [here](llvm#67000 (comment))).
abidh pushed a commit to abidh/llvm-project that referenced this issue Feb 4, 2025
…tream_merge_20250115214213

Amd/merge/upstream merge 20250115214213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants