Comments (8)
It's not supported out of the box as is on the master branch, but I have tried this once a couple months ago.
I do provide prebuilt binaries for all of this, here on github, but if you still want to try to build it yourself:
I've got a branch named msys-build
that I just rebased (untested); the first two commits of it should be relevant, the third one shouldn't be necessary any longer but you can test it if you want to.
I don't remember exactly what the errors were, but it's absolutely essential that you use the mingw flavoured version of cmake from msys2, not the msys2 one. The first commit on that branch adds an option to the cmake invocations to pass -G "MSYS Makefiles"
to choose that generator. (And since the argument MSYS Makefiles
needs to be written like that, with a space in it, it's pretty messy to pass through other shell variables with lists of flags, especially as long as I've tried to keep the shell scripts as plain posix shell scripts.)
If those steps don't help, can you have a look in CMakeFiles/CMakeError.log?
from llvm-mingw.
the build goes further but fails :
CMake Error at cmake/modules/AddLLVM.cmake:657 (install):
install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
tools/lto/CMakeLists.txt:19 (add_llvm_library)
here's the log : https://gist.github.com/jcelerier/dea2e62b0c6f002ed2af5d2a531d3821
from llvm-mingw.
Strange... I don't remember seeing exactly that one. I wonder if it matters that you run build-all.sh
with a relative path llvm
as the intended destination for the install, does it help if you run ./build-all.sh /some/absolute/path
?
from llvm-mingw.
no, it stops due to the same error :( ah well, I'll just rebuild from a linux host for now
from llvm-mingw.
/usr/lib/gcc/x86_64-pc-msys/7.3.0/lto-wrapper.exe
It should be mingw-w64 based compiler but in your case it's Cygwin based GCC.
Run:
pacman -S --needed mingw-w64-x86_64-toolchain
And make sure to start MinGW64 shell.
from llvm-mingw.
MinGW shells use UNIX paths. Do you have mingw based cmake?
pacman -S --needed mingw-w64-x86_64-cmake
Also try clearing CMake cache with:
cd llvm
ninja clean
from llvm-mingw.
sorry @mati685, it was indeed the wrong cmake... I hoped that no one would see it :p
it seems that it's started building ! I'm closing this issue and will open another one if I stumble on further compilation errors but at least the configuration stage passed.
from llvm-mingw.
Hmm, if you were using my msys-build
branch in a mingw-targeting shell, it should have tried to use cmake with CMAKE_GENERATOR="MSYS Makefiles"
, and that only works with the mingw based cmake, not with the msys based cmake.
from llvm-mingw.
Related Issues (20)
- Provide atomic helper functions HOT 12
- MinGW lld does not support --thinlto-cache-policy HOT 3
- dll mangled names HOT 9
- Support for pc-windows-msys HOT 1
- libMSVCRTD.a and libOLDNAMES.a are missing. HOT 9
- Fatal error when build ffmpeg with PGO: 'sys/mman.h' file not found HOT 5
- Building cross-compilers from Windows (host) to Linux (target) HOT 2
- ld.lld crashed HOT 14
- Compilation/Execution Failure on Network Drive HOT 43
- Missing `CLIPFORMAT` (and others) from `objbase.h` and `objidl.h` HOT 6
- CMake warnings about extra arguments relating to Python DLL import libraries in `build-llvm.sh` HOT 4
- llvm-mingw-20240130-ucrt-ubuntu-20.04-x86_64 fails to build Wine 9.x (ld.lld: error: duplicate symbol: __chkstk) HOT 9
- Build linux/arm64 docker images HOT 1
- [20240130 with LLVM 18.1.0 RC 1] Unable to link HOT 9
- LLDB: Unexpected scripting behaviour HOT 6
- ld.lld could not open libOLDNAMES.a HOT 4
- docker: update the base image to ubuntu 22.04? HOT 11
- lldb-vscode missing in 18.1 releases HOT 2
- Unable to run the latest docker image HOT 3
- Microsoft Defender reports Trojan in Release llvm-mingw-20231128-msvcrt-i686.zip llvm-size.exe HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-mingw.