dbTalk Databases Forums  

[BUGS] Compile with Solaris 10 AMD 64bit Sun CC

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


Discuss [BUGS] Compile with Solaris 10 AMD 64bit Sun CC in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martijn de Munnik
 
Posts: n/a

Default [BUGS] Compile with Solaris 10 AMD 64bit Sun CC - 09-02-2005 , 08:21 AM






Hi

I'm trying to compile PostgreSQL 8.0.3 on a Sun Solaris 10 box, dual
opteron and using the sun studio cc compiler. I get the following error;

cc -Xa -fast -xarch=amd64 -I../../../../src/include -fast -
xarch=amd64 -c -o clog.o clog.c
cc -Xa -fast -xarch=amd64 -I../../../../src/include -fast -
xarch=amd64 -c -o transam.o transam.c
cc -Xa -fast -xarch=amd64 -I../../../../src/include -fast -
xarch=amd64 -c -o varsup.o varsup.c
cc -Xa -fast -xarch=amd64 -I../../../../src/include -fast -
xarch=amd64 -c -o xact.o xact.c
cc -Xa -fast -xarch=amd64 -I../../../../src/include -fast -
xarch=amd64 -c -o xlog.o xlog.c
"../../../../src/include/storage/s_lock.h", line 701: #error:
PostgreSQL does not have native spinlock support on this platform.
To continue the compilation, rerun configure using --disable-
spinlocks. However, performance will be poor. Please report this to
pgsql-bugs (AT) postgresql (DOT) org.
cc: acomp failed for xlog.c
gmake[4]: *** [xlog.o] Error 2
gmake[4]: Leaving directory `/export/home/users/munnik/software/
postgresql-8.0.3/src/backend/access/transam'
gmake[3]: *** [transam-recursive] Error 2
gmake[3]: Leaving directory `/export/home/users/munnik/software/
postgresql-8.0.3/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory `/export/home/users/munnik/software/
postgresql-8.0.3/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/export/home/users/munnik/software/
postgresql-8.0.3/src'
gmake: *** [all] Error 2

then I add --disable-spinlocks to the configuration and I get the
following error;

gmake[3]: Entering directory `/export/home/users/munnik/software/
postgresql-8.0.3/src/backend/port'
cc -Xa -fast -xarch=amd64 -I../../../src/include -fast -xarch=amd64
-c -o dynloader.o dynloader.c
"dynloader.c", line 4: warning: empty translation unit
cc -Xa -fast -xarch=amd64 -I../../../src/include -fast -xarch=amd64
-c -o pg_sema.o pg_sema.c
cc -Xa -fast -xarch=amd64 -I../../../src/include -fast -xarch=amd64
-c -o pg_shmem.o pg_shmem.c
cc -Xa -fast -xarch=amd64 -c tas.s
Assembler: tas.s
"tas.s", line 12 : Illegal mnemonic
"tas.s", line 14 : Illegal mnemonic
"tas.s", line 15 : Syntax error
"tas.s", line 17 : Syntax error
"tas.s", line 26 : Illegal mnemonic
"tas.s", line 28 : Illegal mnemonic
cc: assembler failed for tas.s
gmake[3]: *** [tas.o] Error 2
gmake[3]: Leaving directory `/export/home/users/munnik/software/
postgresql-8.0.3/src/backend/port'
gmake[2]: *** [port-recursive] Error 2
gmake[2]: Leaving directory `/export/home/users/munnik/software/
postgresql-8.0.3/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/export/home/users/munnik/software/
postgresql-8.0.3/src'
gmake: *** [all] Error 2

CFLAGS=-fast -xarch=amd64
CPPFLAGS=-fast -xarch=amd64

cc: Sun C 5.7 2005/01/07
SunOS chet 5.10 Generic i86pc i386 i86pc

1st attempt
../configure --prefix=/opt/postgresql --without-readline
2nd attempt
../configure --prefix=/opt/postgresql --without-readline --disable-
spinlocks

any ideas?

Martijn

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