Closed SamuelMarks closed 3 years ago
Please make sure you have mingw-w64-x86_64-gcc
and mingw-w64-i686-gcc
installed.
This error seems to be caused by failure to find x86_64-w64-mingw32-gcc
. The configure script uses plain gcc
as a fallback, which is the MSYS2 GCC and can't be used.
I was missing mingw-w64-i686-gcc
. After installing it and recloning and rerunning I was left in the same boat (same error)
If the command that is causing an error starts with gcc
then there's definitely something wrong.
Note the build_nano.sh
script selects x86_64-w64-mingw32
by default. In order to build for i686-w64-mingw32
, you have to specify it explicitly, like ./build_nano-win.sh i686
.
Hmm, maybe it's because I manually pacman
installed clang gcc
; so removing both and now [after the whole reclone rerun dance] is:
checking for x86_64-w64-mingw32-gcc... no
checking for x86_64-w64-mingw32-cc... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
Why can't it find those MinGW CCs?
It's because you are in MSYS shell. Run ./build_nano-win.sh
in MINGW64 shell instead. (If you want the 32-bit build you have to run ./build_nano-win.sh i686
in MINGW32 shell.) Otherwise the /mingw64/bin
directory will not be in your PATH
.
Thanks took a while to run but it worked this time!
v5.6.1-100-g2077e573