Re: Further news on Clang - spurious warnings

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: David E(dot) Wheeler <david(at)kineticode(dot)com>
Cc: Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Peter Geoghegan <peter(at)2ndquadrant(dot)com>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Further news on Clang - spurious warnings
Date: 2011-08-12 18:46:16
Message-ID: 3CD001EE-447A-4526-AEE8-7716FC745029@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Aug 3, 2011, at 12:21 PM, David E. Wheeler wrote:

> On Aug 3, 2011, at 11:28 AM, Grzegorz Jaskiewicz wrote:
>
>> export CC=clang
>> ./configure
>> ...
>
> Thanks, I'll give that a try the next time I build (RC1 I guess).

FYI, I just built Beta3 using Clang on Mac OS X 10.7 (Darwin 11). The build script looks like this:

export VERSION=9.1beta3
export PERL=/usr/local/bin/perl
export BASE=/usr/local/pgsql

export CC=clang
# For debugging: --enable-cassert --enable-debug
./configure --with-bonjour --with-perl PERL=$PERL \
--with-openssl --with-pam --with-krb5 --with-libxml \
--with-ossp-uuid --with-includes=/usr/local/include \
--enable-integer-datetimes --with-zlib \
--with-libs=/usr/local/lib --prefix=$BASE || exit $?

make world -j3 # || exit $?
make install-world || exit $?

mkdir $BASE/data
chmod 0700 $BASE/data
chown -R postgres:postgres $BASE/data
sudo -u postgres $BASE/bin/initdb --locale en_US.UTF-8 --encoding utf-8 -D $BASE/data
mkdir $BASE/data/logs
chown -R postgres:postgres $BASE/data/logs

I figure there might be warnings you haven't seen if you haven't been building with bonjour, perl, openssl, pam, libxml, or ossp-uuid, so I've attached the output. Pity you can't see the pretty colors the Clang sends to the terminal. :-)

Best,

David

Attachment Content-Type Size
clang.txt text/plain 441.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-08-12 18:49:59 Re: VACUUM FULL versus system catalog cache invalidation
Previous Message Simon Riggs 2011-08-12 18:35:05 Re: Reworking the writing of WAL