Home > Archive > PostgreSQL Bugs > December 2005 > Re: Solaris cc compiler on amd: PostgreSQL does not have native









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Solaris cc compiler on amd: PostgreSQL does not have native
Pierre Girard

2005-12-17, 3:24 am

Tom Lane wrote:

>You'd need to do something about adapting src/backend/port/tas/solaris_i386.s
>
>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.
>
>

It doesn't compile with the options to create amd code.
cc -Xa -xtarget=opteron -xarch=amd64 -c solaris_i386.s
Assembler: tas.s
"solaris_i386.s", line 12 : Illegal mnemonic
"solaris_i386.s", line 14 : Illegal mnemonic
"solaris_i386.s", line 15 : Syntax error
"solaris_i386.s", line 17 : Syntax error
"solaris_i386.s", line 26 : Illegal mnemonic
"solaris_i386.s", line 28 : Illegal mnemonic
cc: assembler failed for solaris_i386.s

The same file compiles without those options:
cc -Xa -c solaris_i386.s

>Please send a patch if you fix this.
>
>

Unfortunately i won't be able to help unless you have some code for me
to try out.



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

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com