Unix Technical Forum

BUG #2651: 8.2 - beta 1 does now compile with Sun Studio 11

This is a discussion on BUG #2651: 8.2 - beta 1 does now compile with Sun Studio 11 within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2651 Logged by: Remy Beaumont Email address: remyb@medrium.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:15 AM
Remy Beaumont
 
Posts: n/a
Default BUG #2651: 8.2 - beta 1 does now compile with Sun Studio 11


The following bug has been logged online:

Bug reference: 2651
Logged by: Remy Beaumont
Email address: remyb@medrium.com
PostgreSQL version: 8.2 - beta 1
Operating system: Solaris 10 on T2000
Description: 8.2 - beta 1 does now compile with Sun Studio 11
Details:

When we try to compile 8.2 - beta 1 on a T2000 wth Sun Studio 11, the build
fails at the following file:

make[5]: Entering directory
`/usr/home/remy/postgresql-8.2beta1/src/backend/utils/adt'
/opt/SUNWspro/bin/cc -Xa -xtarget=ultraT1 -fast -I../../../../src/include
-c -o float.o float.c
"float.c", line 112: identifier redeclared: cbrt
current : static function(double) returning double
previous: function(double) returning double :
"/usr/include/iso/math_c99.h", line 126
cc: acomp failed for float.c
make[5]: *** [float.o] Error 2


The flags used for compiling are: CC=/opt/SUNWspro/bin/cc
'CFLAGS=-xtarget=ultraT1 -fast'

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:15 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2651: 8.2 - beta 1 does now compile with Sun Studio 11

"Remy Beaumont" <remyb@medrium.com> writes:
> When we try to compile 8.2 - beta 1 on a T2000 wth Sun Studio 11, the build
> fails at the following file:


> make[5]: Entering directory
> `/usr/home/remy/postgresql-8.2beta1/src/backend/utils/adt'
> /opt/SUNWspro/bin/cc -Xa -xtarget=ultraT1 -fast -I../../../../src/include
> -c -o float.o float.c
> "float.c", line 112: identifier redeclared: cbrt
> current : static function(double) returning double
> previous: function(double) returning double :
> "/usr/include/iso/math_c99.h", line 126
> cc: acomp failed for float.c


You need to find out why configure failed to detect that cbrt() is
available.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 10:15 AM
Zdenek Kotala
 
Posts: n/a
Default Re: BUG #2651: 8.2 - beta 1 does now compile with Sun Studio 11

Remy Beaumont napsal(a):
> The following bug has been logged online:
>
> Bug reference: 2651
> Logged by: Remy Beaumont
> Email address: remyb@medrium.com
> PostgreSQL version: 8.2 - beta 1
> Operating system: Solaris 10 on T2000
> Description: 8.2 - beta 1 does now compile with Sun Studio 11
> Details:
>
> When we try to compile 8.2 - beta 1 on a T2000 wth Sun Studio 11, the build
> fails at the following file:
>
> make[5]: Entering directory
> `/usr/home/remy/postgresql-8.2beta1/src/backend/utils/adt'
> /opt/SUNWspro/bin/cc -Xa -xtarget=ultraT1 -fast -I../../../../src/include
> -c -o float.o float.c
> "float.c", line 112: identifier redeclared: cbrt
> current : static function(double) returning double
> previous: function(double) returning double :
> "/usr/include/iso/math_c99.h", line 126
> cc: acomp failed for float.c
> make[5]: *** [float.o] Error 2
>
>
> The flags used for compiling are: CC=/opt/SUNWspro/bin/cc
> 'CFLAGS=-xtarget=ultraT1 -fast'
>


The cbrt function is not part of libc. It is located in the libm. Try
export LDFLAGS='-lm'

Zdenek

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 10:15 AM
=?ISO-8859-1?Q?R=E9my_Beaumont?=
 
Posts: n/a
Default Re: BUG #2651: 8.2 - beta 1 does now compile with Sun Studio 11

Yes, that is the next item on my list.
I'm just trying to compile it for now on a T2000 with the best
possible optimization.

With PG 8.1.X. I saw a 30% to 40% performance increase on sorts when
compiling with Sun Studio 11 and -fast.

Rémy
On 25-Sep-06, at 22:02, Tom Lane wrote:

> "Remy Beaumont" <remyb@medrium.com> writes:
>> When we try to compile 8.2 - beta 1 on a T2000 wth Sun Studio 11,
>> the build
>> fails at the following file:

>
>> make[5]: Entering directory
>> `/usr/home/remy/postgresql-8.2beta1/src/backend/utils/adt'
>> /opt/SUNWspro/bin/cc -Xa -xtarget=ultraT1 -fast -I../../../../src/
>> include
>> -c -o float.o float.c
>> "float.c", line 112: identifier redeclared: cbrt
>> current : static function(double) returning double
>> previous: function(double) returning double :
>> "/usr/include/iso/math_c99.h", line 126
>> cc: acomp failed for float.c

>
> You need to find out why configure failed to detect that cbrt() is
> available.
>
> regards, tom lane



---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com