From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new clang report |
Date: | 2011-02-16 13:40:51 |
Message-ID: | 201102161340.p1GDepL21708@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Peter Eisentraut wrote:
> The lastest clang svn tip (2.9-to-be, I guess) builds PostgreSQL out of
> the box and most tests pass. Specifically, it no longer chokes on
> -D_GNU_SOURCE on Linux, which was the previously reported blocker.
>
> Warnings:
>
> Lots of these:
> clang: warning: argument unused during compilation: '-mthreads'
> clang: warning: argument unused during compilation: '-mt'
FYI, our threading code throws every flag it can at the compiler --- it
is very imprecise.
> Possible fix, check both link and compile invocations for warnings in
> configure:
>
> diff --git i/config/acx_pthread.m4 w/config/acx_pthread.m4
> index ceb161a..ee181f9 100644
> --- i/config/acx_pthread.m4
> +++ w/config/acx_pthread.m4
> @@ -142,7 +142,7 @@ main (int argc, char **argv)
> }
> _ACEOF
> rm -f conftest.$ac_objext conftest$ac_exeext
> - if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
> + if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
> # we continue with more flags because Linux needs -lpthread
> # for libpq builds on PostgreSQL. The test above only
> # tests for building binaries, not shared libraries.
Yep, looks good.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
From | Date | Subject | |
---|---|---|---|
Next Message | Gurjeet Singh | 2011-02-16 14:15:32 | Re: Fix for Index Advisor related hooks |
Previous Message | Florian Pflug | 2011-02-16 13:36:49 | Re: Fwd: [JDBC] Weird issues when reading UDT from stored function |