Обсуждение: Build failure

Поиск
Список
Период
Сортировка

Build failure

От
Cyrille Chepelov
Дата:
Greetings,

I'm trying without much luck to compile the 31MAR04 snapshot of PostgreSQL
on a Win2K box.

I have installed MSYS-1.09 MSYS-DTK-1.01, GNU Bison 1.875.0, MinGW 3.1.0,
some Perl interpreter (I think I'm using the one from Cygwin, hopefully
that's OK), and ./configure'd --without-zlib, and typed make.

Got the attached error log.

Re-ran make with -k, then again, and got the second error log.

Fiddled with -DWIN32, with spraying #defines -- no dice, c.h always ends up
including pg_config_os.h

I ended up touching pg_config_os.h to see where this would lead, but
gettimeofday.c wasn't happy.

Obviously, I missed an obvious step somewhere?

    -- Cyrille

--

Вложения

Re: Build failure

От
Cyrille Chepelov
Дата:
Le Thu, Apr 01, 2004, à 05:48:34PM +0200, Cyrille Chepelov a écrit:


> Re-ran make with -k, then again, and got the second error log.

Of course, if "make 2>&1 >error2.log" was actually redirecting stderr to
error2.log (or if I actually typed the right command line), error2.log would
have contained something interesting (in a nutshell, the same error as
error.log, but spread over multiple translation units).

    -- Cyrille

--

Re: Build failure

От
"Magnus Hagander"
Дата:
Hi!

The line:
../../src/include/c.h:80:26: pg_config_os.h: No such file or directory

looks like your configure failed. It should include pg_config_os.h -
configure will symlink (which on mingw means copy, more or less)
port/win32.h. You could manually copy port/win32.h to pg_config_os.h,
but if configure is failing, I'm sure there will be other issues.
This includefile is very critical - it contains most of the definitions
for win32 fixes. So just dropping an empty file in there will give you a
lot of more problems than just gettimeofday.

Did configure give you any errors or warnings?


//Magnus


> -----Original Message-----
> From: Cyrille Chepelov [mailto:cyrille@chepelov.org]
> Sent: Thursday, April 01, 2004 5:49 PM
> To: pgsql-hackers-win32@postgresql.org
> Subject: [pgsql-hackers-win32] Build failure
>
>
> Greetings,
>
> I'm trying without much luck to compile the 31MAR04 snapshot
> of PostgreSQL on a Win2K box.
>
> I have installed MSYS-1.09 MSYS-DTK-1.01, GNU Bison 1.875.0,
> MinGW 3.1.0, some Perl interpreter (I think I'm using the one
> from Cygwin, hopefully that's OK), and ./configure'd
> --without-zlib, and typed make.
>
> Got the attached error log.
>
> Re-ran make with -k, then again, and got the second error log.
>
> Fiddled with -DWIN32, with spraying #defines -- no dice, c.h
> always ends up including pg_config_os.h
>
> I ended up touching pg_config_os.h to see where this would
> lead, but gettimeofday.c wasn't happy.
>
> Obviously, I missed an obvious step somewhere?
>
>     -- Cyrille
>
> --
>

Re: Build failure

От
Claudio Natoli
Дата:
> Did configure give you any errors or warnings?

Under MingW, I have on very rare occasions seen configure run just fine, yet
fail on make due to missing links (which configure claims to have made).

Has only happened a handful of times. Definitely a MingW/msys quirk.

Cheers,
Claudio

---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>

Re: Build failure

От
Cyrille Chepelov
Дата:
Le Fri, Apr 02, 2004, à 09:55:33AM +0200, Magnus Hagander a écrit:
> Hi!
>
> The line:
> ../../src/include/c.h:80:26: pg_config_os.h: No such file or directory
>
> looks like your configure failed. It should include pg_config_os.h -
> configure will symlink (which on mingw means copy, more or less)
> port/win32.h. You could manually copy port/win32.h to pg_config_os.h,

OK, this was the thing I didn't figure out

> Did configure give you any errors or warnings?

Nothing that caused me to worry, but maybe I wasn't paying attention enough.
I'm downloading the 01APR04 snapshot and running configure again to see
what's going on.

Done. I'm attaching here the configure.log, which appears healthy. I then
typed make, and was greeted by the output from make.log.

I then checked all the links that configure claimed it built. For some,
there were indeed files there, but the following files were still missing:
    src/Makefile.port
    src/include/dynloader.h
    src/port/dynloader.c
    src/port/tas.s
I created the files manually (using ln -s, by first changing into the
links's subdirectory and fishing the source by relative path), and issued
"make". It now builds clean!

Thanks for the advice.

    -- Cyrille

--

Вложения

Re: Build failure

От
"Magnus Hagander"
Дата:
> > Did configure give you any errors or warnings?
>
> Under MingW, I have on very rare occasions seen configure run
> just fine, yet fail on make due to missing links (which
> configure claims to have made).
>
> Has only happened a handful of times. Definitely a MingW/msys quirk.

Oh, ok. Never had that one happen.

If you just re-run configure, it goes away?

If so, this should probably go on the win32 page as a note.

//Magnus

Re: Build failure

От
"Michael Korolyov"
Дата:
Hello all,

Can I get and from where the latest compiled pgsql that I can run / test
on my W2k system? Anything like a night build available?

What is visible time frame for pgsql win32 beta and release? A Month,
two months, etc.

Thank you very much.

p.s. is anything better then postgres_beta4.zip v.7.2.1 I can use and
where I can get it?

Best Regards.
Michael.


Re: Build failure

От
"Merlin Moncure"
Дата:
> p.s. is anything better then postgres_beta4.zip v.7.2.1 I can use and
> where I can get it?

The 7.2.1 version is the easiest to get up and running.  Next easiest is
the cygwin version which is recent.  Just look for cygwin.  If you are a
newbie, either of these gets my vote.  7.2.1 is starting to look a
little old, but it's pretty functional.

Right now I am using the Interix port, which is pretty stable.  This is
a moderate compiling challenge however.  If you need a production
windows server *right now*, this gets my vote, but you have to know what
your doing.

The mingw/msys version will soon be the only choice.  At the moment you
have to compile it (from the daily changing cvs sources) and from what I
understand an out of the box compile only has about 50% chance of
working depending on your compiling skills.   Also, there are certain
missing niceties like a service manager which will appear at some point
and this version still has a few annoying bugs.

My understanding is that the win32 port will go beta in 2-3 months.
Probably around this time a binary install package will appear.  Then
comes the fun part :)

Merlin