Building Emacs from CVS

View: New views
15 Messages — Rating Filter:   Alert me  

Building Emacs from CVS

by Konstantin-26 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I am attempting to build emacs according to following guide:
http://ourcomments.org/Emacs/w32-build-emacs.html

So, I collected all necessary software, but configure fails:

C:\Temp\emacs\nt>configure.bat
Checking for 'cp'...
Checking for 'rm'...
Checking whether 'gcc' is available...
gcc: CreateProcess: No such file or directory
Checking whether 'cl' is available...
"cl" Unknown command.

Have you any ideas how to solve it?

--
Konstantin <Kostafey@...>



Re: Building Emacs from CVS

by Jason Rumney-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Konstantin wrote:

> C:\Temp\emacs\nt>configure.bat
> Checking for 'cp'...
> Checking for 'rm'...
> Checking whether 'gcc' is available...
> gcc: CreateProcess: No such file or directory
> Checking whether 'cl' is available...
> "cl" Unknown command.
>
> Have you any ideas how to solve it?
>  

Install gcc,  from mingw.org.  If you have already installed it, then
you probably need to add its bin directory to your PATH.



Re: Building Emacs from CVS

by Konstantin-26 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> Install gcc,  from mingw.org.  If you have already installed it, then
> you probably need to add its bin directory to your PATH.

I've done it. I am attempting it with 2 versions of gcc:

gcc-full-4.4.0-mingw32-bin-2
gcc-core-3.4.5-20060117-3

switchig between them by changing PATH to it's bin folders.

So, gcc-full-4.4.0-mingw32-bin-2 fails with following message:

> > C:\Temp\emacs\nt>configure.bat
> > Checking for 'cp'...
> > Checking for 'rm'...
> > Checking whether 'gcc' is available...
> > gcc: CreateProcess: No such file or directory
> > Checking whether 'cl' is available...
> > "cl" Unknown command.

and gcc-core-3.4.5-20060117-3 fails with following message:

C:\Temp\emacs\nt>configure.bat
Checking for 'cp'...
Checking for 'rm'...
Checking whether 'gcc' is available...
gcc: installation problem, cannot exec `as': Invalid argument
Checking whether 'cl' is available...
"cl" Unknown command.

--
Konstantin <Kostafey@...>



Re: Building Emacs from CVS

by Eli Zaretskii :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Date: Fri, 10 Jul 2009 13:12:10 +0400
> From: Konstantin <Kostafey@...>
>
> > Install gcc,  from mingw.org.  If you have already installed it, then
> > you probably need to add its bin directory to your PATH.
>
> I've done it. I am attempting it with 2 versions of gcc:
>
> gcc-full-4.4.0-mingw32-bin-2
> gcc-core-3.4.5-20060117-3

How about Binutils -- did you install them as well?  GCC will not be
able to compile programs without Binutils.

> So, gcc-full-4.4.0-mingw32-bin-2 fails with following message:
>
> > > C:\Temp\emacs\nt>configure.bat
> > > Checking for 'cp'...
> > > Checking for 'rm'...
> > > Checking whether 'gcc' is available...
> > > gcc: CreateProcess: No such file or directory
> > > Checking whether 'cl' is available...
> > > "cl" Unknown command.
>
> and gcc-core-3.4.5-20060117-3 fails with following message:
>
> C:\Temp\emacs\nt>configure.bat
> Checking for 'cp'...
> Checking for 'rm'...
> Checking whether 'gcc' is available...
> gcc: installation problem, cannot exec `as': Invalid argument
                             ^^^^^^^^^^^^^^^^
That's it: you don't have Binutils installed.  `as' is the assembler,
it's part of Binutils.



Re: Building Emacs from CVS

by Jason Rumney-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Konstantin wrote:

> Hi,
>
>  
>> Install gcc,  from mingw.org.  If you have already installed it, then
>> you probably need to add its bin directory to your PATH.
>>    
>
> I've done it. I am attempting it with 2 versions of gcc:
>
> gcc-full-4.4.0-mingw32-bin-2
> gcc-core-3.4.5-20060117-3
>
> switchig between them by changing PATH to it's bin folders.
>
> So, gcc-full-4.4.0-mingw32-bin-2 fails with following message:
>
>  
>>> C:\Temp\emacs\nt>configure.bat
>>> Checking for 'cp'...
>>> Checking for 'rm'...
>>> Checking whether 'gcc' is available...
>>> gcc: CreateProcess: No such file or directory
>>> Checking whether 'cl' is available...
>>> "cl" Unknown command.
>>>      
>
> and gcc-core-3.4.5-20060117-3 fails with following message:
>
> C:\Temp\emacs\nt>configure.bat
> Checking for 'cp'...
> Checking for 'rm'...
> Checking whether 'gcc' is available...
> gcc: installation problem, cannot exec `as': Invalid argument
> Checking whether 'cl' is available...
> "cl" Unknown command.
>
>  
In the first case, you appear to be missing gcc iteself, or perhaps an
essential DLL it requires (read the list prerequisites on the MinGW site
- or reinstall from gcc-full-4.4.0-mingw32-bin.tar.lzma, which should
contain all the dependencies).  In the second case, you are missing the
assembler, which is part of GNU binutils and is a prerequisite for gcc.




Re: Building Emacs from CVS

by Lennart Borgman (gmail) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jul 10, 2009 at 11:24 AM, Jason Rumney<jasonr@...> wrote:
>
> In the first case, you appear to be missing gcc iteself, or perhaps an
> essential DLL it requires (read the list prerequisites on the MinGW site -
> or reinstall from gcc-full-4.4.0-mingw32-bin.tar.lzma, which should contain
> all the dependencies).  In the second case, you are missing the assembler,
> which is part of GNU binutils and is a prerequisite for gcc.

I think the instructions for downloading the compiler is a bit hard to
find on http://mingw.org/. Maybe the instructions on this page are
those to recommend:

  http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite

That page says there is an installer which they recommend for a
beginner. Has anyone tried that?



Re: Building Emacs from CVS

by Konstantin-26 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

On Fri, 10 Jul 2009 12:38:10 +0200
Lennart Borgman <lennart.borgman@...> wrote:

> I think the instructions for downloading the compiler is a bit hard to
> find on http://mingw.org/. Maybe the instructions on this page are
> those to recommend:
>
>   http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite

The link on this page for installer executable leads to downloads list.
https://sourceforge.net/projects/mingw/files/#

Ok, I will describe my actions by steps:

0. uninstall, delete, and so on all previous installations.

1. emacs src from CVS is ready.

2. download gcc-full-4.4.0-mingw32-bin-2.tar.lzma from https://sourceforge.net/projects/mingw/files/,
unpack it to C:\MinGW\

3. download binutils-2.19.1-mingw32-bin.tar.gz from https://sourceforge.net/projects/mingw/files/,
 unpack it to C:\MinGW\

4. download mingw32-make-3.81-20080326-3.tar.gz from https://sourceforge.net/projects/mingw/files/,
unpack it to C:\MinGW\ file mingw32-make.exe rename to make.exe

5. download coreutils-5.3.0.exe from http://gnuwin32.sourceforge.net/packages.html
install it to C:\GnuWin32\

6. download texinfo-4.13a-setup.exe from http://gnuwin32.sourceforge.net/packages.html
install it to C:\GnuWin32\

7. add C:\MinGW\bin\ to PATH environment variable.
add C:\GnuWin32\bin\ to PATH environment variable.
Restart shell.

8. cd C:\Temp\emacs\nt\
C:\Temp\emacs\nt>configure.bat
Checking for 'cp'...
Checking for 'rm'...
Checking whether 'gcc' is available...
Checking whether gcc requires '-mno-cygwin'...
Checking whether W32 API headers are too old...

C:\Temp\emacs\nt>gcc  -c junk.c
junk.c:1:22: error: windows.h: No such file or directory
junk.c:2:20: error: usp10.h: No such file or directory
junk.c:3: ╨╛╤И╨╕╨▒╨║╨░: expected ')' before 'pHeader'

9. download w32api-3.13-mingw32-dev.tar.gz from http://gnuwin32.sourceforge.net/packages.html
unpack it to C:\MinGW\

once again

C:\Temp\emacs\nt>configure.bat
Checking for 'cp'...
Checking for 'rm'...
Checking whether 'gcc' is available...
Checking whether gcc requires '-mno-cygwin'...
Checking whether W32 API headers are too old...

C:\Temp\emacs\nt>gcc  -c junk.c
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windef.h:253,
                 from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:48,
                 from junk.c:1:
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winnt.h:37:20: error: string.h: No such file or directory
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/ole2.h:9,
                 from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:114,
                 from junk.c:1:
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/objbase.h:12:20: error: stdlib.h: No such file or directory


pfff... in case of success, it will result in my instruction for teapots :)

--
Konstantin <Kostafey@...>



Re: Building Emacs from CVS

by Lennart Borgman (gmail) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/7/11 Konstantin <Kostafey@...>:

> Hi
>
> On Fri, 10 Jul 2009 12:38:10 +0200
> Lennart Borgman <lennart.borgman@...> wrote:
>
>> I think the instructions for downloading the compiler is a bit hard to
>> find on http://mingw.org/. Maybe the instructions on this page are
>> those to recommend:
>>
>>   http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite
>
> The link on this page for installer executable leads to downloads list.
> https://sourceforge.net/projects/mingw/files/#

You can find the installer under "Automated MinGW installer" there.
Did you try that too?


> Ok, I will describe my actions by steps:
>
> 0. uninstall, delete, and so on all previous installations.
>
> 1. emacs src from CVS is ready.
>
> 2. download gcc-full-4.4.0-mingw32-bin-2.tar.lzma from https://sourceforge.net/projects/mingw/files/,
> unpack it to C:\MinGW\

Should not that contain everything you need or did I misunderstand that?


> 3. download binutils-2.19.1-mingw32-bin.tar.gz from https://sourceforge.net/projects/mingw/files/,
>  unpack it to C:\MinGW\
>
> 4. download mingw32-make-3.81-20080326-3.tar.gz from https://sourceforge.net/projects/mingw/files/,
> unpack it to C:\MinGW\ file mingw32-make.exe rename to make.exe
>
> 5. download coreutils-5.3.0.exe from http://gnuwin32.sourceforge.net/packages.html
> install it to C:\GnuWin32\
>
> 6. download texinfo-4.13a-setup.exe from http://gnuwin32.sourceforge.net/packages.html
> install it to C:\GnuWin32\
>
> 7. add C:\MinGW\bin\ to PATH environment variable.
> add C:\GnuWin32\bin\ to PATH environment variable.
> Restart shell.
>
> 8. cd C:\Temp\emacs\nt\
> C:\Temp\emacs\nt>configure.bat
> Checking for 'cp'...
> Checking for 'rm'...
> Checking whether 'gcc' is available...
> Checking whether gcc requires '-mno-cygwin'...
> Checking whether W32 API headers are too old...
>
> C:\Temp\emacs\nt>gcc  -c junk.c
> junk.c:1:22: error: windows.h: No such file or directory
> junk.c:2:20: error: usp10.h: No such file or directory
> junk.c:3: ╨╛╤И╨╕╨▒╨║╨░: expected ')' before 'pHeader'
>
> 9. download w32api-3.13-mingw32-dev.tar.gz from http://gnuwin32.sourceforge.net/packages.html
> unpack it to C:\MinGW\
>
> once again
>
> C:\Temp\emacs\nt>configure.bat
> Checking for 'cp'...
> Checking for 'rm'...
> Checking whether 'gcc' is available...
> Checking whether gcc requires '-mno-cygwin'...
> Checking whether W32 API headers are too old...
>
> C:\Temp\emacs\nt>gcc  -c junk.c
> In file included from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windef.h:253,
>                 from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:48,
>                 from junk.c:1:
> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winnt.h:37:20: error: string.h: No such file or directory
> In file included from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/ole2.h:9,
>                 from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:114,
>                 from junk.c:1:
> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/objbase.h:12:20: error: stdlib.h: No such file or directory
>
>
> pfff... in case of success, it will result in my instruction for teapots :)
>
> --
> Konstantin <Kostafey@...>
>
>
>



Re: Building Emacs from CVS

by Konstantin-26 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 11 Jul 2009 02:13:06 +0200
Lennart Borgman <lennart.borgman@...> wrote:

> > The link on this page for installer executable leads to downloads list.
> > https://sourceforge.net/projects/mingw/files/#

> You can find the installer under "Automated MinGW installer" there.
> Did you try that too?

It is too hard for this moument, "Automated MinGW installer" reqires
internet installation, but I use modem connection.

> > 2. download gcc-full-4.4.0-mingw32-bin-2.tar.lzma from https://sourceforge.net/projects/mingw/files/,
> > unpack it to C:\MinGW\

> Should not that contain everything you need or did I misunderstand that?

It have not make.exe (it have gnatmake.exe, but I do not know what is it),
it's include folders is empty, it have no utilities, like cp.exe,
it have not texinfo..., but it's enough huge archive.

--
Konstantin <Kostafey@...>



Re: Building Emacs from CVS

by Lennart Borgman (gmail) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 11, 2009 at 2:33 AM, Konstantin<Kostafey@...> wrote:

> On Sat, 11 Jul 2009 02:13:06 +0200
> Lennart Borgman <lennart.borgman@...> wrote:
>
>> > The link on this page for installer executable leads to downloads list.
>> > https://sourceforge.net/projects/mingw/files/#
>
>> You can find the installer under "Automated MinGW installer" there.
>> Did you try that too?
>
> It is too hard for this moument, "Automated MinGW installer" reqires
> internet installation, but I use modem connection.

Hm, I see. Why don't you download the already built Emacs for windows
then? Or do you especially want to try to build it?


>> > 2. download gcc-full-4.4.0-mingw32-bin-2.tar.lzma from https://sourceforge.net/projects/mingw/files/,
>> > unpack it to C:\MinGW\
>
>> Should not that contain everything you need or did I misunderstand that?
>
> It have not make.exe (it have gnatmake.exe, but I do not know what is it),
> it's include folders is empty, it have no utilities, like cp.exe,
> it have not texinfo..., but it's enough huge archive.
>
> --
> Konstantin <Kostafey@...>
>
>
>



Re: Building Emacs from CVS

by Konstantin-26 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 11 Jul 2009 02:38:32 +0200
Lennart Borgman <lennart.borgman@...> wrote:

> Hm, I see. Why don't you download the already built Emacs for windows
> then? Or do you especially want to try to build it?

Well, yes I want  to try to build it.
I have two reasons for it:

1. It's fun.

2. It's long story... I cleared up, that pached version of emacs
have less cpu loading on scrolling, but it is rather bigger,
then all known (by me) other editors. The bug report of it
(if it is intresting):

http://www.nabble.com/Bug-report:-Hight-CPU-loading-on-scrolling-td19825303.html
(Two misprints are there: RAM 1024Gb ... RAM 633Gb - not Gb, but Mb, of course)

So, the key is to search for solution in the C-code.

May be, something will changed, if emacs will be builded on OS
with default codepage cp1251.

--
Konstantin <Kostafey@...>



Re: Building Emacs from CVS

by Lennart Borgman (gmail) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 11, 2009 at 3:06 AM, Konstantin<Kostafey@...> wrote:

> On Sat, 11 Jul 2009 02:38:32 +0200
> Lennart Borgman <lennart.borgman@...> wrote:
>
>> Hm, I see. Why don't you download the already built Emacs for windows
>> then? Or do you especially want to try to build it?
>
> Well, yes I want  to try to build it.
> I have two reasons for it:
>
> 1. It's fun.

:-)

> 2. It's long story... I cleared up, that pached version of emacs
> have less cpu loading on scrolling, but it is rather bigger,
> then all known (by me) other editors. The bug report of it
> (if it is intresting):
>
> http://www.nabble.com/Bug-report:-Hight-CPU-loading-on-scrolling-td19825303.html

It is better to link to the bug database, like this

   http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1089

So if I understand you correctly you are trying to fix that problem?
That is very nice, but perhaps it has already been fixed. Maybe you
could ask again?

To add more information or ask you should use the mail address that
you find at the top of the page above (click on the bug number there).




> (Two misprints are there: RAM 1024Gb ... RAM 633Gb - not Gb, but Mb, of course)
>
> So, the key is to search for solution in the C-code.
>
> May be, something will changed, if emacs will be builded on OS
> with default codepage cp1251.
>
> --
> Konstantin <Kostafey@...>
>
>
>



Re: Building Emacs from CVS

by Konstantin-26 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 11 Jul 2009 03:24:10 +0200
Lennart Borgman <lennart.borgman@...> wrote:

> So if I understand you correctly you are trying to fix that problem?

That's right. To my mind, it is the main trouble for
using emacs on windows with russian environment.

> That is very nice, but perhaps it has already been fixed. Maybe you
> could ask again?

It is not fixed yet. I have mostly recent emacs-23.0.96-bin-i386.zip
This bug (and bugreport) is exists, once it was attempted to close,
but it was reopened. Ask again? For dublicate it?

One time, I consider, that it is impossible to solve it at all, but
pached version works some better, so it is intresting to dig in the
differences.

--
Konstantin <Kostafey@...>



Re: Building Emacs from CVS

by Jason Rumney-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Konstantin wrote:
> It is not fixed yet. I have mostly recent emacs-23.0.96-bin-i386.zip
> This bug (and bugreport) is exists, once it was attempted to close,
> but it was reopened. Ask again? For dublicate it?
>
> One time, I consider, that it is impossible to solve it at all, but
> pached version works some better, so it is intresting to dig in the
> differences.
>  

The difference may be just in the options used to compile it. The
pretest binaries are built with full debug info, so that any problems
can be more easily tracked down.




Re: Building Emacs from CVS

by Eli Zaretskii :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Date: Sat, 11 Jul 2009 03:59:25 +0400
> From: Konstantin <Kostafey@...>
>
> Checking whether W32 API headers are too old...
>
> C:\Temp\emacs\nt>gcc  -c junk.c
> In file included from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windef.h:253,
>                  from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:48,
>                  from junk.c:1:
> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winnt.h:37:20: error: string.h: No such file or directory
> In file included from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/ole2.h:9,
>                  from c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:114,
>                  from junk.c:1:
> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/objbase.h:12:20: error: stdlib.h: No such file or directory

You didn't install mingw-runtime-X.YZ.tar.gz.  That's where the
libraries and header files (like string.h and stdlib.h) are.

Btw, I don't really understand why you are having all these
difficulties.  What instructions did you use to install MinGW?  This
page:

  http://www.mingw.org/wiki/Getting_Started

which is the second Google hit for "mingw", and is also present on the
main MinGW page (http://www.mingw.org/), says:

  Manual Installation
  As an alternative to the automated installer, you may install MinGW by manually downloading and uncompressing individual components.

  Download at least the following (or newer) packages from the MinGW download page:

  binutils
  gcc-core
  mingw-runtime
  w32api

  These are the minimum requirements for a working mingw-gcc-toolchain for C.

And each one of the 4 items is a link to download the corresponding
archive from sourceforge.  I didn't actually try the links -- are they
incorrect or something?

There's another link from the main MinGW page (http://www.mingw.org/):

  http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite

has the "Manual Installation" section which also points to the same 4
basic packages that you need to download and install.

> pfff... in case of success, it will result in my instruction for teapots :)

Well, would you care to share with us how did you miss the
instructions above?  Perhaps the wording of the instructions needs
some tweaking to become more clear, but please tell how.