Re: Further news on Clang - spurious warnings - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Further news on Clang - spurious warnings
Date
Msg-id 3CD001EE-447A-4526-AEE8-7716FC745029@kineticode.com
Whole thread Raw
In response to Re: Further news on Clang - spurious warnings  ("David E. Wheeler" <david@kineticode.com>)
Responses Re: Further news on Clang - spurious warnings
List 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

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Reworking the writing of WAL
Next
From: Robert Haas
Date:
Subject: Re: VACUUM FULL versus system catalog cache invalidation