threads / discuss / 18033

Building 1.6.2-rc2 in Cygwin

Subject: Building 1.6.2-rc2 in Cygwin

## tl;dr

3 messages between Feb 26, 2009 and Feb 27, 2009.

replies: 2people: 3as markdown or json

Tim Visher· Feb 26, 2009, 15:23 UTC · lore
Hello Everyone,

This is somewhat related to my previous question about `configure` ignoring `--XXdir=` options but it's different enough that I think it warrants a new thread.

The reason I'm using `configure` at all is that when I simply do a `make` without a `make configure; ./configure` first, it fails with a message like:

    $ make
        CC fast-import.o
    In file included from builtin.h:4,
                     from fast-import.c:142:
    git-compat-util.h:100:19: iconv.h: No such file or directory
    make: *** [fast-import.o] Error 1

Once I configure, even without any options, it builds fine and I can get my man pages (although I have to install them by hand). I assume this has something to do with cygwin's locations for header files and such, but I have no real idea. The first part of my question, then would be what the issue is that I'm encountering when attempting to build git in Cygwin?

My eventual goal is to have git installed with man, info, and html pages, into my (and my fellow developers') personal bin, man, info, and html directories at ~/x. It appeared that I could do that with ./configure but per the response I got earlier, this doesn't seem to be the case.

Second, I built and installed 1.6.2-rc2 and it still is claiming a --version rc1. I'm not sure if this is systemic or not, and obviously it would be bad if it was just me as it means I'm doing something wrong.

Thoughts?
-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
Jeff King· Feb 26, 2009, 15:44 UTC · re: Tim Visher · lore

Re: Building 1.6.2-rc2 in Cygwin

On Thu, Feb 26, 2009 at 10:23:54AM -0500, Tim Visher wrote:
Show 12 quoted lines
> The reason I'm using `configure` at all is that when I simply do a
> `make` without a `make configure; ./configure` first, it fails with a
> message like:
> 
>     $ make
>         CC fast-import.o
>     In file included from builtin.h:4,
>                      from fast-import.c:142:
>     git-compat-util.h:100:19: iconv.h: No such file or directory
>     make: *** [fast-import.o] Error 1
> 
> Once I configure, even without any options, it builds fine and I can
It sounds like you don't have iconv. You can build with:
  make NO_ICONV=1

on such a platform, which is more or less what the configure script is doing. Try running './configure' and investigating the config.mak.autogen it generates; this gets pulled directly into the Makefile. You can correlate the variables it is setting with the descriptions in the Makefile.

Show 5 quoted lines
> My eventual goal is to have git installed with man, info, and html
> pages, into my (and my fellow developers') personal bin, man, info,
> and html directories at ~/x.  It appeared that I could do that with
> ./configure but per the response I got earlier, this doesn't seem to
> be the case.

I think the right thing to do is to fix the broken autoconf support, as per my other message. But you can workaround it with:

  ./configure
  make htmldir=~/man bindir=~/bin mandir=~/man infodir=~/info

The latter command is simply overriding what's in the Makefile with what you provide on the command line (so any defaults, or anything provided by ./configure is ignored).

-Peff
Tay Ray Chuan· Feb 27, 2009, 12:37 UTC · re: Tim Visher · lore

Re: Building 1.6.2-rc2 in Cygwin

Hi,
On Thu, Feb 26, 2009 at 11:23 PM, Tim Visher <tim.visher@gmail.com> wrote:
Show 6 quoted lines
>    $ make
>        CC fast-import.o
>    In file included from builtin.h:4,
>                     from fast-import.c:142:
>    git-compat-util.h:100:19: iconv.h: No such file or directory
>    make: *** [fast-import.o] Error 1

Did you try installing libiconv library? It contains that particular header file.

Whenever I make on cygwin and it chokes, I try searching cygwin's package contents:

http://cygwin.com/cgi-bin2/package-grep.cgi?grep=file.h
You might find this handy too.
> Second, I built and installed 1.6.2-rc2 and it still is claiming a
> --version rc1.  I'm not sure if this is systemic or not, and obviously
> it would be bad if it was just me as it means I'm doing something
> wrong.
Hmm, you could try
$ make install prefix=/usr
By default, git installs into your home directory.
-- 
Cheers,
Ray Chuan

← back to recent threads