Skip to content
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

Cannot build ksh 1.0.10 with MSYS2/MinGW #801

Open
cedricblancher opened this issue Nov 25, 2024 · 5 comments
Open

Cannot build ksh 1.0.10 with MSYS2/MinGW #801

cedricblancher opened this issue Nov 25, 2024 · 5 comments
Labels
buildfail Does not compile

Comments

@cedricblancher
Copy link

We cannot build ksh 1.0.10 with MSYS2/MinGW, bin/package fails like this:
$ (SHELL=/bin/dash ; $SHELL ./bin/package make)
package: /home/ced/mingw_ksh93/ksh: must be in the package root directory tree

@cedricblancher
Copy link
Author

Still does not work:

$ export SHELL=/bin/bash.exe ; $SHELL ./bin/package make CC="/usr/bin/gcc -m64 -std=gnu17" PACKAGEROOT="$PWD" HOSTTYPE="msys.i386-64"
package: initialize the /home/ced/work/mingw_ksh93/ksh/arch/msys.i386-64 view
package: update /home/ced/work/mingw_ksh93/ksh/arch/msys.i386-64/bin/mamprobe
package: update /home/ced/work/mingw_ksh93/ksh/arch/msys.i386-64/lib/probe/C/make/probe
package: update /home/ced/work/mingw_ksh93/ksh/arch/msys.i386-64/bin/mamake
cc: fatal error: cannot execute 'cc1': spawn: No such file or directory
compilation terminated.

@McDutchie
Copy link

Thanks for the report. MSYS2/MinGW is not a system I've ever used. I generally try to avoid Windows as much as possible, but I'm going to have to figure out a way to test it on this system and make it build.

FWIW, Cygwin should work, it's tested every now and then.

@McDutchie McDutchie added the buildfail Does not compile label Nov 25, 2024
@gisburn
Copy link

gisburn commented Nov 26, 2024

@McDutchie Quick setup via Cygwin shell:
---- snip ----

wget 'https://github.com/msys2/msys2-installer/releases/download/2024-11-16/msys2-x86_64-20241116.exe'
chmod a+x msys2-x86_64-20241116.exe 
./msys2-x86_64-20241116 

---- snip ----
... then in MSYS2 UCRT terminal:
---- snip ----

pacman -S --noconfirm gcc emacs gdb make gettext gettext-devel git subversion flex bison unzip pax tar libiconv-devel ncurses-devel gmp-devel mpfr-devel mpc-devel isl-devel  isl-devel procps-ng libiconv-devel sed time coreutils util-linux grep sed clang base-devel

---- snip ----

Does that help ?

@cedricblancher
Copy link
Author

@McDutchie Any updates?

@McDutchie
Copy link

No one is currently getting paid for developing ksh, and I don't know when I'll have the time, opportunity and inclination to sit down with a Windows 10 box and figure this out. I don't have one in the house. So, unless someone else figures this out before me, you're going to have to be patient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildfail Does not compile
Projects
None yet
Development

No branches or pull requests

3 participants