I am trying to compile postgres on solaris 7. After running the configure
script and then the make I get the following error...

/home/eccdev/kzorgdra/tmp/postgresql-7.1.3>make
make -C doc all
make[1]: Entering directory `/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/doc'
make -C src all
make[1]: Entering directory `/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/src'
make -C backend all
make[2]: Entering directory
`/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/src/backend'
make -C access all
make[3]: Entering directory
`/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/src/backend/access'
make -C common SUBSYS.o
make[4]: Entering directory
`/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/src/backend/access/common'
gcc -O2 -funroll-loops -fexpensive-optimizations -I/usr/local/include -Wall 
-Wmissing-prototypes -Wmissing-declarations
/../src/include -O2 -funroll-loops -fexpensive-optimizations -I/usr/local/in
clude   -c -o heaptuple.o heaptuple.c
/usr/ccs/bin/as: "/var/tmp/ccLq9TVj.s", line 806: error: unknown opcode
".subsection"
/usr/ccs/bin/as: "/var/tmp/ccLq9TVj.s", line 806: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccLq9TVj.s", line 816: error: unknown opcode
".previous"
/usr/ccs/bin/as: "/var/tmp/ccLq9TVj.s", line 816: error: statement syntax
make[4]: *** [heaptuple.o] Error 1
make[4]: Leaving directory
`/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/src/backend/access/common'
make[3]: *** [common-recursive] Error 2
make[3]: Leaving directory
`/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory
`/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/eccdev/kzorgdra/tmp/postgresql-7.1.3/src'
make: *** [all] Error 2


Thanks.

Kelby


Thu, 6 Dec 2001 15:32:45 -0700
"Kelby Zorgdrager" <kelby@ecarcredit.com>
Help Building PostgreSQL on Solaris
"Kelby Zorgdrager" <kelby@ecarcredit.com> writes:

> I am trying to compile postgres on solaris 7. After running the configure
> script and then the make I get the following error...

> gcc -O2 -funroll-loops -fexpensive-optimizations -I/usr/local/include -Wall 
> -Wmissing-prototypes -Wmissing-declarations
> /../src/include -O2 -funroll-loops -fexpensive-optimizations -I/usr/local/in
> clude   -c -o heaptuple.o heaptuple.c
> /usr/ccs/bin/as: "/var/tmp/ccLq9TVj.s", line 806: error: unknown opcode
> ".subsection"

It seems that gcc is generating code that the assembler doesn't like.
Does this gcc install work for compiling other programs?  I'd assume
so since you got through the 'configure' stage, but...

-Doug
-- 
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

10 Dec 2001 13:04:41 -0500
Doug McNaught <doug@wireboard.com>
Re: Help Building PostgreSQL on Solaris
I just compiled a version on Solaris 2.6. I used the Sun
compilers (not gcc). No errors (or nothing I remember).
The version I used is the one I got off of the RedHat 7.2 CD.
Not sure what version it is, but it compiles. Does it help :-)

Kelby Zorgdrager wrote:
> 
> I am trying to compile postgres on solaris 7. After running the configure
> script and then the make I get the following error...
> 
> .....
Mon, 10 Dec 2001 15:37:06 -0700
Doug Royer <Doug@royer.com>
Re: Help Building PostgreSQL on Solaris
The problem seems to be that GCC is using the sun assembler
(/usr/ccs/bin/as). Is the GNU assembler installed? 

Gavin

On Mon, 10 Dec 2001, Doug Royer wrote:

> 
> I just compiled a version on Solaris 2.6. I used the Sun
> compilers (not gcc). No errors (or nothing I remember).
> The version I used is the one I got off of the RedHat 7.2 CD.
> Not sure what version it is, but it compiles. Does it help :-)
> 
> Kelby Zorgdrager wrote:
> > 
> > I am trying to compile postgres on solaris 7. After running the configure
> > script and then the make I get the following error...
> > 
> > .....




Tue, 11 Dec 2001 12:56:54 +1100 (EST)
Gavin Sherry <swm@linuxworld.com.au>
Re: Help Building PostgreSQL on Solaris
Hi all,

Have you checked the Solaris specific installation guide for PostgreSQL?

http://techdocs.postgresql.org/installguides.php#solaris

I know it works with gcc 2.95.3, but I haven't downloaded the Sun Forte
nor Sun Workshop compilers and tried with them.  If you're using gcc,
this guide is known to work.

:-)

Regards and best wishes,

Justin Clift


Gavin Sherry wrote:
> 
> The problem seems to be that GCC is using the sun assembler
> (/usr/ccs/bin/as). Is the GNU assembler installed?
> 
> Gavin
> 
> On Mon, 10 Dec 2001, Doug Royer wrote:
> 
> >
> > I just compiled a version on Solaris 2.6. I used the Sun
> > compilers (not gcc). No errors (or nothing I remember).
> > The version I used is the one I got off of the RedHat 7.2 CD.
> > Not sure what version it is, but it compiles. Does it help :-)
> >
> > Kelby Zorgdrager wrote:
> > >
> > > I am trying to compile postgres on solaris 7. After running the configure
> > > script and then the make I get the following error...
> > >
> > > .....
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html

-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

Tue, 11 Dec 2001 19:08:18 +1100
Justin Clift <justin@postgresql.org>
Re: Help Building PostgreSQL on Solaris