Skip site navigation (1) Skip section navigation (2)

Assembler problem with Irix

From: Ludovic Drolez <ludovic(dot)drolez(at)freealter(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Assembler problem with Irix
Date: 2000-04-07 09:31:34
Message-ID: 38EDAAF6.E460734B@freealter.com (view raw or flat)
Thread:
Lists: pgsql-bugs
============================================================================

                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================



Your name               : Ludovic Drolez
Your email address      : ludovic(dot)drolez(at)freealter(dot)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.



pgsql-bugs by date

Next:From: Bernard ISAMBERTDate: 2000-04-07 10:05:28
Subject: ECPG problem
Previous:From: JohnDate: 2000-04-07 01:40:07
Subject: Something to look into Adding a discussion forum to your site, (message boards, live chat, newsletters)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group