Hello, My answer inserted below,
>De : Kevin Atkinson <[email protected]> >Envoyé : jeudi 15 mai 2025 18:35 >À : Vincent Belaïche <[email protected]> >Cc : [email protected] <[email protected]> >Objet : Re: ASPELL aspell-0.60.8.1 compilation failure on MSYS2 + MINGW64 > >Hi Vincent, > >On Thu, 15 May 2025 07:46:42 +0000 >Vincent Belaïche <[email protected]> wrote: > >> After investigating why so, I found that although I had installed the >> French dictionary properly the « aspell dict » command made empty >> output. After compiling from sources I had the same problem. Looking >> into this, I found that the dictionary path was hard coded in some >> gen/dirs.h generated header as an MSYS2 path that cannot be >> understood by the aspell native Windows application. When you compile >> on MINGW64 with no --prefix option passed to configure you get this >> into gen/dirs.h : >> >> #define PREFIX "/mingw64" >> >> This problem can be easily circumvented by passing an absolute >> MSWindows path to configure, like this : >> >> ./configure '--prefix=c:/msys64/mingw64' >> >> as MSYS unerstands both native mixed path (mixed = just replacing \ >> by /) and MSYS paths. > >Thanks for the tip. > >> However, this could be automated by having somewhere in the >> m4/lib-link.m4 or m4/lib-prefix.m4 the appropriate autotools M4 macro >> for calling (cygpath -m PREFIX) under the hood when the target is >> MINGW. This would certainly greatly help MSYS2/pacman repo >> maintainers to compile aspell properly. > >There is a chance this might already be fixed with newer versions of >autotools. If possible try updating the versions of autotools to the >latest and see if that helps (the script ./maintainer/autogen might >help if you are using the release tarball, although you might have >better luck if you checkout the version from git). Actually I had tried this, I have this error when lauching ./autogen.sh: /THE/BUILD/DIRECTORY/aspell/gnulib/gnulib-tool.py: *** minimum supported autoconf version is 2.64. Try adding AC_PREREQ([2.64]) to your configure.ac. /THE/BUILD/DIRECTORY/aspell/gnulib/gnulib-tool.py: *** Stop. > >> The other issue that I had is that Emacs ispell.el needs also to know >> where the dictionaries are located because it builds some >> auto-completion list to help the user select a dictionary amongst >> those available. To get this, Emacs ispell calls « aspell -vv » and >> expects to find something like >> >> LIBDIR = "c:/msys64/mingw64/lib/aspell-0.60" >> >> in the output, where "c:/msys64/mingw64" is whatever prefix the user >> configured at install. This also does not work, so I did some hack >> which I attached. > >This is not a windows specific issue. The correct way to get this >information from aspell is: > > aspell config dict-dir > >Kevin Great, when time allows I will submit a patch to Emacs ispell.el in order to fix this and use the correct way. V.
