Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

MSYS build error. #217

Open
etoshapovalov opened this issue Sep 28, 2020 · 2 comments
Open

MSYS build error. #217

etoshapovalov opened this issue Sep 28, 2020 · 2 comments

Comments

@etoshapovalov
Copy link

Steps to reproduce:

  • Follow quick start tutorial
  • Error comes up on line: set __MINGW32__=1 && mingw32-make -B

Errors i found:

  • With default MSYS installation mingw32-make can't be found.
    (That problem can simply be fixed, if you would specify the full path to executable. Like: /mingw64/bin/mingw32-make)
  • After that, when you try to build the executable that error pops out: https://pastebin.com/t8btSMZ0

Personally, i don't know what happens for this error to happen. I didn't found any cc1.exe in msys/mingw installation folder, but i found cc.exe in /mingw64/bin/. Maybe that's just a typo?

@kolumb
Copy link
Contributor

kolumb commented Sep 28, 2020

Personally I don't use MSYS2 shell to compile. It's just useful to install packages. But then it's easer to use Command Prompt (cmd.exe or Powershell). You just have to add MinGW to PATH, so everything has access to mingw32-make, C-compiler (cc.exe) and pkg-config. For example:

set PATH=%PATH%;\path\to\msys64\mingw64\bin

Also you might need to set CXX environment variable to c++ compiler, for example:

set CXX=\path\to\msys64\mingw64\bin\g++.exe

@rexim
Copy link
Member

rexim commented Oct 5, 2020

@etoshapovalov hey! Have you tried the things suggested by @kolumb? Did they work for you?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants