Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date: 2010-04-02 06:28:44
Message-ID: 4BB58E9C.6090703@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom, Robert, etc.

Ok, this issue seems to be specific to some versions of gcc. Note that
in testing this nobody enabled any special compile or environment
variables of any kind, so if there's a -Werror where it shouldn't be,
it's in our code.

Succeeds on:
Red Hat, gcc 4.4.3
OSX, gcc 4.2.1
Debian, gcc 4.3.2
FreeBSD, gcc 4.2.1

Fails on:
Ubuntu, gcc 4.3.3
Ubuntu, gcc 4.4.1
OSX 10.5, gcc 4.0.1*

I'd assume this was some kind of Ubuntu thing, except that I got it to
fail on OSX as well. Ideas?

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com

* fails at:
gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -Werror -I../../../../src/include -c -o dbsize.o dbsize.c
cc1: warnings being treated as errors
dbsize.c: In function ‘pg_relation_filepath’:
dbsize.c:577: warning: ‘rnode.spcNode’ may be used uninitialized in this
function
dbsize.c:577: warning: ‘rnode.dbNode’ may be used uninitialized in this
function
make[4]: *** [dbsize.o] Error 1
make[3]: *** [adt-recursive] Error 2
make[2]: *** [utils-recursive] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Takahiro Itagaki 2010-04-02 06:39:42 Re: xmlconcat (was 9.0 release notes done)
Previous Message Fujii Masao 2010-04-02 06:06:04 Re: [HACKERS] Streaming replication document improvements