Re: Further news on Clang - spurious warnings

David Wheeler <david@kineticode.com>

From: "David E. Wheeler" <david@kineticode.com>
To: David E. Wheeler <david@kineticode.com>
Cc: Grzegorz Jaskiewicz <gj@pointblue.com.pl>, Peter Eisentraut <peter_e@gmx.net>, Peter Geoghegan <peter@2ndquadrant.com>, PG Hackers <pgsql-hackers@postgresql.org>
Date: 2011-08-12T18:46:16Z
Lists: pgsql-hackers

Attachments

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