Обсуждение: PostgreSQL v7.1.3 fails to build on Irix 6.5.13m

Поиск
Список
Период
Сортировка

PostgreSQL v7.1.3 fails to build on Irix 6.5.13m

От
jeremy@wundt.psychiatry.uiowa.edu (H Jeremy Bockholt)
Дата:
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

Re: PostgreSQL v7.1.3 fails to build on Irix 6.5.13m

От
Tom Lane
Дата:
jeremy@wundt.psychiatry.uiowa.edu (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

Re: PostgreSQL v7.1.3 fails to build on Irix 6.5.13m

От
jeremy@wundt.psychiatry.uiowa.edu (H Jeremy Bockholt)
Дата:
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