Re: Solaris cc compiler on amd: PostgreSQL does not have native spinlock support on this platform

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Solaris cc compiler on amd: PostgreSQL does not have native spinlock support on this platform
Дата
Msg-id 28617.1134762715@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Solaris cc compiler on amd: PostgreSQL does not have native spinlock support on this platform  (Pierre Girard <pierre.girard@gerad.ca>)
Ответы Re: Solaris cc compiler on amd: PostgreSQL does not have native  (Pierre Girard <pierre.girard@gerad.ca>)
Список pgsql-bugs
Pierre Girard <pierre.girard@gerad.ca> writes:
> It compiles but then i get a 32 bit executable which is not what i want.
> This is on a solaris 10 with amd processor using the sun forte 11 compilers.
> Are there any fix for this?

You'd need to do something about adapting src/backend/port/tas/solaris_i386.s
to amd64, and then change the part of s_lock.h that mentions Solaris/386
to also accept x86_64 not just __i386.  Also see src/template/solaris
which controls configure's determination of which tas file is needed.

It's possible that the assembly code would work as-is on amd, in which
case you'd just need a one-liner change in s_lock.h and maybe some
adjustment of the template file.

Please send a patch if you fix this.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Postgres 8.1 hangs at boot time due to password authentication for user postgres.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Configuring postgresql8.1.1