Issue |
127179
|
Summary |
MinGW-w64 build with MLIR fails
|
Labels |
mlir
|
Assignees |
|
Reporter |
brechtsanders
|
When trying to do a shared build of LLVM with MinGW-w64 (native on Windows in my case using GCC+MinGW-w64 from https://winlibs.com/) the build would always fail when MLIR is included.
After some investigation I noticed some libraries where in the wrong order causing unresolved symbols.
To test this theory I performed the following dirty fix changing their order:
```sh
sed -i.bak -e "s?\(lib/libLLVMTableGen[^ ]*\.a\)\(.*\)\(lib/libMLIRTableGen[^ ]*\.a\)?\3\2\1?" build.ninja
```
With that change the build did succeed.
So the solution would be to put link dependency `libMLIRTableGen` before libraries it depends on (like `libLLVMTableGen`).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs