Hi,

I'm using gmake 3.79.1 and gcc version 2.95.2
on a MIPS R10000 CPU

I run the following:
./configure --with-tcl --with-tclconfig=/usr/freeware/lib


everything looks good until:

.
.
.
gmake[4]: Entering directory
`/usr/people/jeremy/postgresql-7.1.3/src/backend/storage/buffer'
gcc -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -U_NO_XOPEN4 -c -o buf_table.o buf_table.c
gcc -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -U_NO_XOPEN4 -c -o buf_init.o buf_init.c
gcc -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -U_NO_XOPEN4 -c -o bufmgr.o bufmgr.c
gcc -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -U_NO_XOPEN4 -c -o freelist.o freelist.c
gcc -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -U_NO_XOPEN4 -c -o localbuf.o localbuf.c
gcc -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -U_NO_XOPEN4 -c -o s_lock.o s_lock.c
s_lock.c: In function `s_lock':
s_lock.c:134: warning: passing arg 1 of pointer to function discards
qualifiers from pointer target type
s_lock.c: At top level:
s_lock.c:234: warning: `tas_dummy' defined but not used
as: Error: /var/tmp/ccZzS08c.s, line 421: undefined assembler
operation: .global
.global tas
gmake[4]: *** [s_lock.o] Error 1
gmake[4]: Leaving directory
`/usr/people/jeremy/postgresql-7.1.3/src/backend/storage/buffer'


Any ideas or patches to the s_lock file that I should try?

thanks,
jeremy

Search Discussions

  • Tom Lane at Nov 5, 2001 at 6:05 pm

    H Jeremy Bockholt writes:
    I'm using gmake 3.79.1 and gcc version 2.95.2
    on a MIPS R10000 CPU
    everything looks good until:
    gcc -Wall -Wmissing-prototypes -Wmissing-declarations
    -I../../../../src/include -U_NO_XOPEN4 -c -o s_lock.o s_lock.c
    s_lock.c: In function `s_lock':
    s_lock.c:134: warning: passing arg 1 of pointer to function discards
    qualifiers from pointer target type
    s_lock.c: At top level:
    s_lock.c:234: warning: `tas_dummy' defined but not used
    as: Error: /var/tmp/ccZzS08c.s, line 421: undefined assembler
    operation: .global
    .global tas
    gmake[4]: *** [s_lock.o] Error 1
    Hm. Looks like you are not using the same assembler that the other
    people who have built on MIPS machines use. Try looking at the output
    of "gcc -S" on some program to see what syntax it's emitting. If you're
    lucky it'll just be some trivial difference like ".global" vs ".globl".
    If the differences are too extensive to figure out, you'll probably
    need to reconfigure your gcc setup: either start using gas (GNU as)
    for the assembly step, or stop using it and use the vendor's as,
    whichever you're not doing now.

    What is the OS platform involved here, anyway?

    regards, tom lane
  • H Jeremy Bockholt at Nov 6, 2001 at 12:07 am
    Several folks suggested to me to try the following:

    env CC=/bin/cc CFLAGS='-n32' ./configure

    when building postgresql on IRIX.

    I was able to avoid the below error that I reported earlier when
    I used the cc compiler in -n32 mode.

    later,
    jeremy



    jeremy@wundt.psychiatry.uiowa.edu (H Jeremy Bockholt) wrote in message news:<b773797b.0111021455.1ab10407@posting.google.com>...
    Hi,

    I'm using gmake 3.79.1 and gcc version 2.95.2
    on a MIPS R10000 CPU

    I run the following:
    ./configure --with-tcl --with-tclconfig=/usr/freeware/lib


    everything looks good until:

    .
    .
    .
    gmake[4]: Entering directory
    `/usr/people/jeremy/postgresql-7.1.3/src/backend/storage/buffer'
    gcc -Wall -Wmissing-prototypes -Wmissing-declarations
    -I../../../../src/include -U_NO_XOPEN4 -c -o buf_table.o buf_table.c
    gcc -Wall -Wmissing-prototypes -Wmissing-declarations
    -I../../../../src/include -U_NO_XOPEN4 -c -o buf_init.o buf_init.c
    gcc -Wall -Wmissing-prototypes -Wmissing-declarations
    -I../../../../src/include -U_NO_XOPEN4 -c -o bufmgr.o bufmgr.c
    gcc -Wall -Wmissing-prototypes -Wmissing-declarations
    -I../../../../src/include -U_NO_XOPEN4 -c -o freelist.o freelist.c
    gcc -Wall -Wmissing-prototypes -Wmissing-declarations
    -I../../../../src/include -U_NO_XOPEN4 -c -o localbuf.o localbuf.c
    gcc -Wall -Wmissing-prototypes -Wmissing-declarations
    -I../../../../src/include -U_NO_XOPEN4 -c -o s_lock.o s_lock.c
    s_lock.c: In function `s_lock':
    s_lock.c:134: warning: passing arg 1 of pointer to function discards
    qualifiers from pointer target type
    s_lock.c: At top level:
    s_lock.c:234: warning: `tas_dummy' defined but not used
    as: Error: /var/tmp/ccZzS08c.s, line 421: undefined assembler
    operation: .global
    .global tas
    gmake[4]: *** [s_lock.o] Error 1
    gmake[4]: Leaving directory
    `/usr/people/jeremy/postgresql-7.1.3/src/backend/storage/buffer'


    Any ideas or patches to the s_lock file that I should try?

    thanks,
    jeremy

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-ports @
categoriespostgresql
postedNov 2, '01 at 10:49p
activeNov 6, '01 at 12:07a
posts3
users2
websitepostgresql.org
irc#postgresql

2 users in discussion

H Jeremy Bockholt: 2 posts Tom Lane: 1 post

People

Translate

site design / logo © 2022 Grokbase