Giter Club home page Giter Club logo

Comments (8)

mstorsjo avatar mstorsjo commented on July 20, 2024

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.

jcelerier avatar jcelerier commented on July 20, 2024

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.

mstorsjo avatar mstorsjo commented on July 20, 2024

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.

jcelerier avatar jcelerier commented on July 20, 2024

no, it stops due to the same error :( ah well, I'll just rebuild from a linux host for now

from llvm-mingw.

mati865 avatar mati865 commented on July 20, 2024

/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.

mati865 avatar mati865 commented on July 20, 2024

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.

jcelerier avatar jcelerier commented on July 20, 2024

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.

mstorsjo avatar mstorsjo commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.