Re: Bug fix for glibc broke freebsd build in REL_11_STABLE

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Bug fix for glibc broke freebsd build in REL_11_STABLE
Дата
Msg-id 20180905005130.ewk4xcs5dgyzcy45@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Bug fix for glibc broke freebsd build in REL_11_STABLE  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: Bug fix for glibc broke freebsd build in REL_11_STABLE  (Victor Wagner <vitus@wagner.pp.ru>)
Re: Bug fix for glibc broke freebsd build in REL_11_STABLE  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Re: Bug fix for glibc broke freebsd build in REL_11_STABLE  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 2018-09-05 01:47:52 +0100, Andrew Gierth wrote:
> >>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
> 
>  >> I kinda wonder if we should add -mno-x87 or such in configure when
>  >> we detect clang, obviously it doesn't deal correctly with this.
> 
>  Tom> Seems worth looking into, but what happens if someone tries to
>  Tom> compile for x87 hardware? Or do we care anymore?
> 
> Already discussed this one on IRC with Andres, but to put this on record
> for future reference: we can't use -mno-x87 on 32bit intel, even with an
> -march= option with an SSE2 capable CPU, because the 32-bit ABI requires
> floats to be returned in the x87 registers and breaking that either
> results in silently wrong results or in clang dying with "fatal error:
> error in backend: X87 register return with X87 disabled" or similar.

My current proposal is thus to do add a check that does
#if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
something-that-fails
#endif
in an autoconf test, and have configure complain if that
fails. Something roughly along the lines of
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc."

Greetings,

Andres Freund


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: Bug fix for glibc broke freebsd build in REL_11_STABLE
Следующее
От: Amit Langote
Дата:
Сообщение: Re: pointless check in RelationBuildPartitionDesc