New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C compiler not found on Windows #5661
Comments
Do you have both |
I have amd ryzen, so i cannot have mingw for i686. PS D:\Projects\experiments\calculate-median-salary> gcc -v
Using built-in specs.
COLLECT_GCC=C:\mingw64\bin/gcc.exe
COLLECT_LTO_WRAPPER=C:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/13.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-13.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/buildroot/x86_64-1310-win32-seh-ucrt-rt_v11-rev1/mingw64 --enable-host-shared --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=win32 --enable-libstdcxx-threads=yes --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-libstdcxx-filesystem-ts=yes --disable-libssp --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/buildroot/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-win32-seh-rev1, Built by MinGW-Builds project' --with-bugurl=https://github.com/niXman/mingw-builds CFLAGS='-O2 -pipe -fno-ident -I/c/buildroot/x86_64-1310-win32-seh-ucrt-rt_v11-rev1/mingw64/opt/include -I/c/buildroot/prerequisites/x86_64-zlib-static/include -I/c/buildroot/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/buildroot/x86_64-1310-win32-seh-ucrt-rt_v11-rev1/mingw64/opt/include -I/c/buildroot/prerequisites/x86_64-zlib-static/include -I/c/buildroot/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/buildroot/x86_64-1310-win32-seh-ucrt-rt_v11-rev1/mingw64/opt/include -I/c/buildroot/prerequisites/x86_64-zlib-static/include -I/c/buildroot/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/buildroot/x86_64-1310-win32-seh-ucrt-rt_v11-rev1/mingw64/opt/lib -L/c/buildroot/prerequisites/x86_64-zlib-static/lib -L/c/buildroot/prerequisites/x86_64-w64-mingw32-static/lib ' LD_FOR_TARGET=/c/buildroot/x86_64-1310-win32-seh-ucrt-rt_v11-rev1/mingw64/bin/ld.exe --with-boot-ldflags=' -Wl,--disable-dynamicbase -static-libstdc++ -static-libgcc'
Thread model: win32
Supported LTO compression algorithms: zlib
gcc version 13.1.0 (x86_64-win32-seh-rev1, Built by MinGW-Builds project) |
that sounds weird. AMD CPUs should be able to run 32bit code too. What error are you getting when trying to install it? |
Ok, i will try to install i686. But how it should be aliased? |
No need to alias anything, if all is well it should be available as |
I've installed 32 bit version of mingw (rebooted pc for sure), and i having this error. I actually have required file in PATH
|
Mmh, this is very peculiar. What is the exact command used? (just |
make cold |
This makes me a bit suspicious cygwin is doing something to ensure only its binaries are called somehow. How did you install
I meant more in a terminal, I wanted to check the character used to separate the directories ( |
I've installed it by hand. I will try to install it with cygwin |
I've used Cygwin from Ocaml installer and has no idea about packages)) |
From the terminal, in the directory where you're running the build from, what's the output of the following seven commands, please?
|
Where did you download the installers/zips for whatever produced the files in |
I've just unpacked it from here: https://github.com/niXman/mingw-builds-binaries/releases |
I've reinstalled cygwin, installed make, mingw x86_64 and i686.
|
After reinstall it produces this code:
|
You're missing the patch package as well - that should be sufficient. |
I think you should specify in installation guide that all this packages should be installed as cygwin packages, not regular one. For example: lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin Install all deps: apt-cyg install mingw64-i686-gcc-g++ mingw64-x86_64-gcc-g++ patch make Build opam:
After successful build add opam repo to Path env variable. |
opam's readme already has all that info: The following Cygwin packages are required:
Alternatively, having downloaded Cygwin's setup program, Cygwin can be installed using the following command line:
|
Ok, sorry i've used instructions from announcement post of alpha version |
Originally posted by @XantreGodlike in #5166 (reply in thread)
I've tried master branch today and having this error
I dont why this error occurs, because i have mingw gcc
The text was updated successfully, but these errors were encountered: