postgresql-8.0.1 compilation with icc-8.1 on Itanium-2 gives "error: asm statements not supported"

postgresql-8.0.1 compilation with icc-8.1 on Itanium-2 gives "error: asm statements not supported"

Hi,

I am trying to compile postgresql-8.0.1 with icc-8.1.028 on a Linux 2.4.21-15.EL SMP Itanium2 machine and I get an error as follows-
------------------------------------------------------------------------------------------------------------------------------------
icc -static -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wold-style-definition -Wendif-labels -fno-strict-aliasing -I../../../../src/include -D_GNU_SOURCE -c -o xlog.o xlog.c

../../../../src/include/storage/s_lock.h(184): error: asm statements not supported in this environment
__asm__ __volatile__(
^

../../../../src/include/storage/s_lock.h(186): error: expected a ")"
: "=r"(ret), "+m"(*lock)
------------------------------------------------------------------------------------------------------------------------------------
The complete config.log and make.log is online at http://www.cse.psu.edu/~kalsi/files/

I am able to sucessfully compile postgreSQL with gcc on this machine.

Elsewhere on this forum I can see that "Intel and Microsoft compilers aren't supporting asm() on 64-bit systems, because of insufficient portability" (http://softwareforums.intel.com/ids/board/message?board.id=16&message.id...)

Has anybody been able to workaround this and had any success with compiling postgreSQL?

All other suggestions are welcome as well.

Thanks in anticipation,

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.