dbTalk Databases Forums  

[BUGS] Problem configuring PostgreSQL 8.1.4 on Mac OS X

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Problem configuring PostgreSQL 8.1.4 on Mac OS X in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default [BUGS] Problem configuring PostgreSQL 8.1.4 on Mac OS X - 06-07-2006 , 08:16 AM






Greetings,

There is a problem with PostgreSQL 8.1.4 on Mac OS X (PowerPC).

The 'configure --enable-thread-safety' script fails when CFLAGS
contain "-mcpu=7400", "-mcpu=970" or "-maltivec". With these flags,
the GCC compiler enables AltiVec instructions for the PowerPC
processor, and defines:

#define __ALTIVEC__ 1
#define __VEC__ 10206
#define __vector __attribute__((altivec(vector__)))
#define __pixel __attribute__((altivec(pixel__))) unsigned short
#define __bool __attribute__((altivec(bool__))) unsigned
#define vector vector
#define pixel pixel
#define _Bool _Bool
#define bool bool

src/tools/thread/thread_test.c, fired for '--enable-thread-safety',
failes for not having the correct definition for 'bool'.

I would suggest using 'BOOL' for you boolean variables, instead of
'bool'.

Please, fix.

Kind regards,
Adam

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

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: [BUGS] Problem configuring PostgreSQL 8.1.4 on Mac OS X - 06-07-2006 , 08:24 AM






Adam wrote:
Quote:
Greetings,

There is a problem with PostgreSQL 8.1.4 on Mac OS X (PowerPC).

The 'configure --enable-thread-safety' script fails when CFLAGS
contain "-mcpu=7400", "-mcpu=970" or "-maltivec". With these flags,
the GCC compiler enables AltiVec instructions for the PowerPC
processor, and defines:

#define __ALTIVEC__ 1
#define __VEC__ 10206
#define __vector __attribute__((altivec(vector__)))
#define __pixel __attribute__((altivec(pixel__))) unsigned short
#define __bool __attribute__((altivec(bool__))) unsigned
#define vector vector
#define pixel pixel
#define _Bool _Bool
#define bool bool

src/tools/thread/thread_test.c, fired for '--enable-thread-safety',
failes for not having the correct definition for 'bool'.

I would suggest using 'BOOL' for you boolean variables, instead of
'bool'.

Please, fix.
Uh, thread_safety is only the first test that uses 'bool'. The entire
backend uses it. What is:

#define bool bool

supposed to accomplish? I suggest you avoid AltiVec until the vendor
fixes the includes.

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

---------------------------(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


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: [BUGS] Problem configuring PostgreSQL 8.1.4 on Mac OS X - 06-07-2006 , 09:21 AM



Adam <adam (AT) albedo (DOT) art.pl> writes:
Quote:
The 'configure --enable-thread-safety' script fails when CFLAGS
contain "-mcpu=7400", "-mcpu=970" or "-maltivec".
This has been discussed before, and the conclusion was "don't do that".

http://archives.postgresql.org/pgsql...1/msg00104.php

Quote:
I would suggest using 'BOOL' for you boolean variables, instead of
'bool'.
Not bloody likely.

regards, tom lane

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


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.