emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs vista build failures


From: Claus
Subject: Re: Emacs vista build failures
Date: Mon, 14 Jul 2008 10:43:43 +0200

Eric,

I'm typing this message under "GNU Emacs 23.0.60.1
(i386-mingw-nt5.0.2195) of 2008-07-13 on CJK-MOBILE".

My latest commit is:

commit 43fe74b7f942596608bcf81e814447f92cd5d5bb
Author: Michael Albinus <address@hidden>
Date:   Sun Jul 13 15:12:58 2008 +0000
[...]


However, I doubt this is were your problem is. It's more likely some
parts of the toolchain under Windows (Vista) cause problems.

I have a full (incl. make, gcc, ...) Cygwin installation, but for
Emacs-building Cygwin is pushed as last in my execution path.
That is, I'm using MSys/MingGW for the build process.

So, things to check in your build process are:

1. Is your MSys/MingGW installation complete?
2. Is MSys/MingGW first (before Cygwin) in your path?
3. For programs that MSys/MingGW doesn't provide, is there a fallback (Cygwin)?
4. Is your working directory clean?
5. Are your build-flags sane?
6. Are you using mingw32-make?
7. Before building, do you run "clean" and "bootstrap-clean"?
8. Do you bootstrap?

Looking at your log, most of the above steps seem OK and you get
pretty far in the build process.

I had similar errors in the past and the reason everytime was one of the below:

1. I had skipped some build step (configure/bootstrapping)
2. I haven't cleaned up thourougly enough
3. I had missed a MingGW/MSys-package that was needed
4. My Cygwin-installation under Vista was borked (due to Vista's
paranoid security settings).

I have included my build-script below - it works realiably for me
since months; perhaps it gives you some pointers.

HTH,
Claus


##############
#!/bin/bash
#
# Build script to automate preparing, configuring, cleaning, compiling
and installing emacs-CVS from source.
# v0.3 Claus Klingberg <address@hidden> 29.03.2008
#
echo 'Removing gruft from build-directory...'
rm -f ../lisp/calendar/cal-loaddefs.el ../nt/makefile ../src/makefile
../lisp/mh-e/mh-loaddefs.el ../lisp/loaddefs.el ../lisp/finder-inf.el
../lib-src/makefile ../admin/unidata/makefile
../admin/unidata/unidata-gen.elc ../admin/unidata/unidata.txt
../doc/emacs/makefile ../doc/misc/makefile ../leim/leim-list.el~
../leim/leim-list.el ../leim/makefile ../lisp/cus-load.el
../lisp/makefile ../src/config.h ../src/epaths.h
../doc/lispintro/makefile ../doc/lispref/makefile ../lib-src/makefile
../lisp/loaddefs.el ../lisp/mh-e/mh-loaddefs.el ../lisp/subdirs.el
../nt/config.log ../lisp/calendar/diary-loaddefs.el
../lisp/calendar/hol-loaddefs.el ../lisp/eshell/esh-groups.el
../lisp/finder-inf.el~ ../lisp/loaddefs.el~ ../leim/quail/4Corner.el
../leim/quail/ARRAY30.el ../leim/quail/CCDOSPY.el
../leim/quail/CTLau-b5.el ../leim/quail/CTLau.el
../leim/quail/ECDICT.el ../leim/quail/ETZY.el ../leim/quail/PY-b5.el
../leim/quail/PY.el ../leim/quail/Punct-b5.el ../leim/quail/Punct.el
../leim/quail/QJ-b5.el ../leim/quail/QJ.el ../leim/quail/SW.el
../leim/quail/TONEPY.el ../leim/quail/ZIRANMA.el ../leim/quail/ZOZY.el
../leim/quail/quick-b5.el ../leim/quail/quick-cns.el
../leim/quail/tsang-b5.el ../leim/quail/tsang-cns.el ../lib-src/DOC
../lib-src/ctags.c ../lib-src/getopt.h ../lisp/cus-load.el~

# Prepare path environment: need to put Cygwin back in favour of
MingGW Windows since we use mingw32-make to build emacs:
export 
PATH='/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/prg/MinGW/libexec/gcc/mingw32/3.4.5:/cygdrive/c/MinGW/bin:/cygdrive/c/prg/MSys/bin:/cygdrive/c/prg/libxml:/cygdrive/c/prg/aspell-60.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin'

echo 'Done preparing build.'

echo 'Running configure...'
if ./configure.bat --no-opt --with-gcc --without-jpeg --without-tiff
--without-gif --cflags -Ic:/work/cjk/src/gnuwin32
then
    echo 'Configuring successful!'
else
    echo -e "Error $0: Configure failed!"
    exit 1
fi

echo 'Cleaning up...'
if mingw32-make clean && mingw32-make bootstrap-clean
then
    echo 'Cleanup successful!'
else
    echo -e "Error $0: Cleanup failed!"
    exit 1
fi

echo 'Bootstrapping...'
if mingw32-make bootstrap
then
    echo 'Bootstrap successful!'
else
    echo -e "Error $0: Bootstrap failed!"
    exit 1
fi

echo 'Running make...'
if mingw32-make
then
    echo 'Make successful!'
else
    echo -e "Error $0: Make failed!"
    exit 1
fi

# Currently building info pages fails:
# mingw32-make info

echo 'Running Make install...'
if mingw32-make install
then
    echo 'Make install successful!'
else
    echo -e "Error $0: Make install failed!"
    exit 1
fi

##############

On Mon, Jul 14, 2008 at 3:54 AM, Eric Hanchrow <address@hidden> wrote:
>>>>>> "Claus" == Claus  <address@hidden> writes:
>
>    Claus> FWIW, I'm using Emacs-GIT under Windows Vista as well and as
>    Claus> of today it builds and runs fine.
>
> Interesting.  Could you give me the commit ID of something that works
> for you, and also tell me what compiler toolchain you're using?  (I'm
> using a current Cygwin, plus "make" from msys (for some reason, Cygwin's
> "make" doesn't work with emacs))
>
> --
> [T]he best strip of the last decade is "Dilbert", and it
> sure isn't because of the drawing.
>        -- Garry Trudeau
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]