Re: Where `gcc -MMD' puts .d files

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Alexander Klimov <ask(at)wisdom(dot)weizmann(dot)ac(dot)il>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Where `gcc -MMD' puts .d files
Date: 2001-05-08 15:15:24
Message-ID: Pine.LNX.4.30.0105081702080.759-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alexander Klimov writes:

> The reason is that gcc has bug (or changed feature) in determing there to
> put .d files: `gcc -MMD x/a.c -c -o x/a.o' puts a.d to the current
> directory if its version is `2.92.2 19991024', and in x, if its version is
> `3.1 20010430'.

I have a patch for (better) dependency tracking with gcc >= 3 which will
hit CVS soon. Until then, use released compilers or don't use dependency
tracking. :-( (The last couple of times I tried gcc >= 3 with PostgreSQL
it was a complete disaster anyway, so the former is a good idea in any
case ;-).)

> BTW: Is there documentation about build process (makefiles structure,
> etc.)?

Nope. But some should perhaps be written.

> Another tiny (for quick computer) thing: is it necessary for `make
> distclean' to call configure, or something is wrong with my environment?

Hard to tell. Make sure the config.cache isn't messing you up.

> And yet another: is it OK for `make depend' to produce

make depend doesn't officially exist anymore.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Klimov 2001-05-08 15:22:09 Re: Where `gcc -MMD' puts .d files
Previous Message Thomas Lockhart 2001-05-08 15:14:58 Re: 7.1.2 schedule (was Re: Posted 7.1 RPMs for Mandrake 7.2)