building postgres.exe ./configure dies - Mailing list pgsql-cygwin

From Jerry Asher
Subject building postgres.exe ./configure dies
Date
Msg-id 4.3.2.7.2.20010529131548.00cca3d0@hollyjerry.org
Whole thread Raw
Responses Re: building postgres.exe ./configure dies  (Jason Tishler <Jason.Tishler@dothill.com>)
List pgsql-cygwin
Hi folks,

I'm trying to build postgres 7.1.1 (or 7.1.2) on Windows NTW4SP6 using the
latest cygwin.  The machine I am compiling on has a dual processor, PIII
configuration.

In the very first step, ./configure errors out!

>checking whether gcc accepts -g... yes
>using CFLAGS=-O2
>checking whether the C compiler (gcc -O2 ) works... no
>configure: error: installation or configuration problem: C compiler cannot
>create executables.

This is using gcc version 2.95.3-4 (cygwin special).  The exact same
problem occurs with postgres 7.1.2

Having never seen configure die like this, I am not sure what to do....

Is this a problem in the ./configure script (and if so what can I do), or
is this a problem with gcc (???) as the configure script would claim?

Where is this problem best reported?  Here on the cygwin digest, or
somewhere in postgres land?

Thank you,

Jerry Asher

P.S.  The complete configure output is here:


>./configure
>creating cache ./config.cache
>checking host system type... i686-pc-cygwin
>checking which template to use... win
>checking whether to build with locale support... no
>checking whether to build with recode support... no
>checking whether to build with multibyte character support... no
>checking whether to build with Unicode conversion support... no
>checking for default port number... 5432
>checking for default soft limit on number of connections... 32
>checking for gcc... gcc
>checking whether the C compiler (gcc  ) works... yes
>checking whether the C compiler (gcc  ) is a cross-compiler... no
>checking whether we are using GNU C... yes
>checking whether gcc accepts -g... yes
>using CFLAGS=-O2
>checking whether the C compiler (gcc -O2 ) works... no
>configure: error: installation or configuration problem: C compiler cannot
>create executables.
>Administrator@DUALBERT:c:/cygnus/usr/src/postgresql-7.1.1$ which gcc
>/usr/bin/gcc
>Administrator@DUALBERT:c:/cygnus/usr/src/postgresql-7.1.1$ gcc -v
>Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/specs
>gcc version 2.95.3-4 (cygwin special)
>Administrator@DUALBERT:c:/cygnus/usr/src/postgresql-7.1.1$

=====================================================
Jerry Asher                       jerry@hollyjerry.org
1678 Shattuck Avenue Suite 161    Tel: (510) 549-2980
Berkeley, CA 94709                Fax: (877) 311-8688


pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: Re: Start up and shutdown scripts for postgres on cygwin
Next
From: Jason Tishler
Date:
Subject: Re: building postgres.exe ./configure dies