============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================
Your name : Ludovic Drolez
Your email address : ludovic.drolez@freealter.com
System Configuration
---------------------
Architecture (example: Intel Pentium) : MIPS
Operating System (example: Linux 2.0.26 ELF) : Irix 6.2
PostgreSQL version (example: PostgreSQL-6.5.3): PostgreSQL-6.5.3
Compiler used (example: gcc 2.8.0) : egcs 2.95.2
Please enter a FULL description of your problem:
------------------------------------------------
During the build process, the assembler complains about an
unknown keyword '.global' in src/backend/storage/buffer/s_lock.c
and the compilation aborts.
Please describe a way to repeat the problem. Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
configure
make
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
I use egcs 2.95.2 with SGI's assembler (/usr/bin/as). I do not use
the GNU assembler.
That's why I get that complain.
Only a little patch is needed to make PG compile with 'egcs+sgi as':
--- src/backend/storage/buffer/s_lock.c.orig Fri Apr 7 11:02:18
2000
+++ src/backend/storage/buffer/s_lock.c Fri Apr 7 11:03:43 2000
@@ -148,7 +148,7 @@
tas_dummy()
{
__asm__(" \n\
-.global tas \n\
+.globl tas \n\
tas: \n\
.frame $sp, 0, $31 \n\
ll $14, 0($4) \n\
But I do not know how to check in 'configure' whether we are using the
GNU As or not.