Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date
Msg-id 4BB58E9C.6090703@agliodbs.com
Whole thread Raw
In response to Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c  (Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>)
Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c  (Robert Haas <robertmhaas@gmail.com>)
Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c  (Peter Eisentraut <peter_e@gmx.net>)
Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c  (Robert Haas <robertmhaas@gmail.com>)
List 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



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: [DOCS] Streaming replication document improvements
Next
From: Takahiro Itagaki
Date:
Subject: Re: xmlconcat (was 9.0 release notes done)