最終更新日: 2016-06-26 日 01:23
ホーム | 文書トップ | 目次

NTEmacsビルド(24.4) 失敗の記録

Table of Contents

なにはともあれ、ビルドしてみる

既存のMinGW環境にて

現在、自分のPCで構築されている MSYS/MinGW環境でcongigureしてみたが、

(略)
checking whether localtime_r is declared... no
checking for library containing timer_settime... no
checking for timer_settime... no
checking for unsetenv... (cached) yes
checking for unsetenv() return type... (cached) int
checking whether unsetenv obeys POSIX... (cached) yes

Configured for `i686-pc-mingw32'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc  -std=gnu99 -g3 -O
2 -gdwarf-2
  Should Emacs use the GNU version of malloc?             yes
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    w32
  What toolkit should Emacs use?                          none
  Where do we find X Windows header files?                NONE
  Where do we find X Windows libraries?                   NONE
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes
  Does Emacs use a png library?                           yes
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use imagemagick?                             no
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  no
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               no
  Does Emacs use a file notification library?             yes (w32)
  Does Emacs use access control lists?                    yes
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                no
  Does Emacs use -lxml2?                                  no
  Does Emacs use -lfreetype?                              no
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   no
  Does Emacs directly use zlib?                           yes
  Does Emacs use toolkit scroll bars?                     yes


checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib-src/Makefile
config.status: creating oldXMenu/Makefile
config.status: creating doc/emacs/Makefile
config.status: creating doc/misc/Makefile
config.status: creating doc/lispintro/Makefile
config.status: creating doc/lispref/Makefile
config.status: creating src/Makefile
config.status: creating lwlib/Makefile
config.status: creating lisp/Makefile
config.status: creating leim/Makefile
config.status: creating nextstep/Makefile
config.status: creating nt/Makefile
config.status: creating admin/unidata/Makefile
config.status: creating admin/grammars/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing src/epaths.h commands
config.status: executing src/.gdbinit commands
rockers:~/source/emacs-24.4$

さあ、makeだ!

rockers:~/source/emacs-24.4$ make
cd . && autoconf
/bin/sh: autoconf: command not found
make: *** [configure] Error 127
rockers:~/source/emacs-24.4$

がっくり。。

MinGWを再インストールしてビルド

に従ってインストール。

./configure の結果は下記の通り。

configure: WARNING: libacl development library was not found or not usable.
configure: WARNING: emacs will be built without ACL support.
Configured for `i686-pc-mingw32'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc  -std=gnu99 -g3 -O2 -gdwarf-2
  Should Emacs use the GNU version of malloc?             yes
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    w32
  What toolkit should Emacs use?                          none
  Where do we find X Windows header files?                NONE
  Where do we find X Windows libraries?                   NONE
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes 
  Does Emacs use a png library?                           yes 
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use imagemagick?                             no
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  no
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               no
  Does Emacs use a file notification library?             yes (w32)
  Does Emacs use access control lists?                    no
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                no
  Does Emacs use -lxml2?                                  no
  Does Emacs use -lfreetype?                              no
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   no
  Does Emacs directly use zlib?                           yes
  Does Emacs use toolkit scroll bars?                     yes


checking that generated files are newer than configure... done
Your system has the required tools, running autoreconf...
Can't locate Autom4te/ChannelDefs.pm in @INC (@INC contains: /mingw/share/autoconf /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/msys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /c/MinGW/bin/autoreconf-2.68 line 40.
BEGIN failed--compilation aborted at /c/MinGW/bin/autoreconf-2.68 line 40.

MinGW Installation Manager(デスクトップにショートカットがある)から、msys-autoconf 2.68-1-msys-1.0.17 をインストールする

うーん、これでもダメ。

make: *** [lib/Makefile.in] Error 2
rockers:~/source/emacs-24.4$ export perllibdir=/c/mingw/share/automake-1.11
rockers:~/source/emacs-24.4$ make bootstrap
[ -r "src/config.in" ] || ( cd . && autoheader )
cd . && automake --gnu -a -c lib/Makefile
configure.ac:103: version mismatch.  This is Automake 1.11.1,
configure.ac:103: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:103: comes from Automake 1.14.1.  You should recreate
configure.ac:103: aclocal.m4 with aclocal and run automake again.
automake-1.11: cannot open < /mingw/share/automake-1.11/am/header-vars.am: No such file or directory
make: *** [lib/Makefile.in] Error 63
rockers:~/source/emacs-24.4$ make bootstrap
cd . && aclocal -I m4
aclocal-1.11: couldn't open directory `/mingw/share/aclocal-1.11': No such file or directory
make: *** [aclocal.m4] Error 1
rockers:~/source/emacs-24.4$ make bootstrap
cd . && aclocal -I m4
/bin/m4: cannot remove temporary directory /tmp/m4-jks5jS: Directory not empty
autom4te: /bin/m4 failed with exit status: 1
aclocal-1.11: autom4te failed with exit status: 1
make: *** [aclocal.m4] Error 1

なんとなく、MSYS2に、GnuWin32を組み合わせてビルドするのがよさそうな気がしてきた。。

ホーム | 文書トップ | 目次
Created by Emacs 27.1 (Org mode 9.3)