Help building 08.02.0200 on Solaris 10 (sparc)
Help building 08.02.0200 on Solaris 10 (sparc)
am 08.11.2006 15:47:26 von Trevor Riever
I can build and make 08.01.0200 and 08.02.0100 on the
same machine with the same environment. I get the
following error when doing the make, have used make
and gmake get same results:
gcc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xarch=3Dv8
-xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff
-xc99=3Dnone -xCC -I/usr/include/pgsql -g -O2 -MT
info.lo -MD -MP -MF .deps/info.Tpo -c info.c -fPIC
-DPIC -o .libs/info.o
gcc: unrecognized option `-Xa'
gcc: language CC not recognized
Used ./configure --with-unixodbc. I am using gcc
3.4.6 and the latest binutils have been installed.=20
Following line is from the Make file from 08.02.0200:
CPPFLAGS =3D -xO3 -xarch=3Dv8 -xspace -W0,-Lt
-W2,-Rcond_elim -Xa -xildoff -xc99=3Dnone -xCC
-I/usr/include/pgsql
and from 08.02.100 which makes fine:
CPPFLAGS =3D -I/usr/include/pgsql
From what I can tell gcc doesn't like the CPPFLAGS in
08.02.200. Are there any flags or options that I
should be setting berfore attempting to build
08.02.200. I'm not much of a compiler and linker
person but any help would be appreciated.
Thanks
Trevor
=20
____________________________________________________________ _____________=
___________
Sponsored Link
Mortgage rates near 39yr lows. $420k for $1,399/mo.=20
Calculate new payment!
http://www.LowerMyBills.com/lre
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
Re: Help building 08.02.0200 on Solaris 10 (sparc)
am 08.11.2006 17:06:44 von Peter Eisentraut
Am Mittwoch, 8. November 2006 15:47 schrieb Trevor Riever:
> gcc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xarch=v8
> -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff
> -xc99=none -xCC -I/usr/include/pgsql -g -O2 -MT
> info.lo -MD -MP -MF .deps/info.Tpo -c info.c -fPIC
> -DPIC -o .libs/info.o
> gcc: unrecognized option `-Xa'
> gcc: language CC not recognized
There is nothing in the entire source code that mentions "Xa", so perhaps you
are picking this up from the environment. Check with printenv.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Re: Help building 08.02.0200 on Solaris 10 (sparc)
am 08.11.2006 20:33:36 von Trevor Riever
root:Z:live:H:live::/public/psqlodbc/psqlodbc-08.01.0200#
printenv
_=3D/opt/sfw/bin/printenv
MANPATH=3D:/opt/sfw/man
LANG=3Den_US.UTF-8
HZ=3D
PATH=3D/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/opt/s fw/bin:/usr/l=
ocal/lib:/usr/local/ssl:/usr/local/ssl/bin:/usr/ccs/bin:/usr /local/mysql/=
bin:/usr/local/mysql/lib:/opt/sfw/include:/usr/ucb:/usr/loca l/ssl/include=
/openssl:/usr/sbin:/usr/bin:/opt/sfw/bin:/usr/ucb:/usr/lib
EDITOR=3Dvi
LOGNAME=3Droot
MAIL=3D/var/mail/root
SHELL=3D/usr/bin/ksh
HOME=3D/
LD_LIBRARY_PATH=3D/usr/local/lib:/usr/lib:/opt/sfw/lib
TERM=3Dvt100
PWD=3D/public/psqlodbc/psqlodbc-08.02.0200
The thing that I'm confused over is that I can
configure and make 08.01.0200, 08.02.0100, and
08.02.0200 with the same login and session, but
08.02.0200 will break.=20
Trevor
--- Peter Eisentraut wrote:
> Am Mittwoch, 8. November 2006 15:47 schrieb Trevor
> Riever:
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xarch=3Dv8
> > -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff
> > -xc99=3Dnone -xCC -I/usr/include/pgsql -g -O2 -MT
> > info.lo -MD -MP -MF .deps/info.Tpo -c info.c=20
> -fPIC
> > -DPIC -o .libs/info.o
> > gcc: unrecognized option `-Xa'
> > gcc: language CC not recognized
>=20
> There is nothing in the entire source code that
> mentions "Xa", so perhaps you=20
> are picking this up from the environment. Check
> with printenv.
>=20
> --=20
> Peter Eisentraut
> http://developer.postgresql.org/~petere/
>=20
=20
____________________________________________________________ _____________=
___________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Re: Help building 08.02.0200 on Solaris 10 (sparc)
am 08.11.2006 21:32:57 von Trevor Riever
Figured it out. The configure file for 08.02.0200
uses
CPPFLAGS=3D"$CPPFLAGS $pg_cflags -I$pg_includedir" where
08.02.0100 uses CPPFLAGS=3D"$CPPFLAGS -I$pg_includedir".
$pg_clflags is getting set by pg_cflags=3D`$PG_CONFIG
--cflags` where as $PG_CONFIG is getting set because
of the default Postgres package on Solaris which was
compiled by the Sun compiler and I have yet to
configure and make postgres with the gcc compiler.
--- Trevor Riever wrote:
> I can build and make 08.01.0200 and 08.02.0100 on
> the
> same machine with the same environment. I get the
> following error when doing the make, have used make
> and gmake get same results:
>=20
> gcc -DHAVE_CONFIG_H -I. -I. -I. -xO3 -xarch=3Dv8
> -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff
> -xc99=3Dnone -xCC -I/usr/include/pgsql -g -O2 -MT
> info.lo -MD -MP -MF .deps/info.Tpo -c info.c -fPIC
> -DPIC -o .libs/info.o
> gcc: unrecognized option `-Xa'
> gcc: language CC not recognized
>=20
> Used ./configure --with-unixodbc. I am using gcc
> 3.4.6 and the latest binutils have been installed.=20
> Following line is from the Make file from
> 08.02.0200:
>=20
> CPPFLAGS =3D -xO3 -xarch=3Dv8 -xspace -W0,-Lt
> -W2,-Rcond_elim -Xa -xildoff -xc99=3Dnone -xCC
> -I/usr/include/pgsql
>=20
> and from 08.02.100 which makes fine:
>=20
> CPPFLAGS =3D -I/usr/include/pgsql
>=20
> From what I can tell gcc doesn't like the CPPFLAGS
> in
> 08.02.200. Are there any flags or options that I
> should be setting berfore attempting to build
> 08.02.200. I'm not much of a compiler and linker
> person but any help would be appreciated.
>=20
> Thanks
>=20
> Trevor
>=20
>=20
>=20
>=20
> =20
>
____________________________________________________________ _____________=
___________
> Sponsored Link
>=20
> Mortgage rates near 39yr lows. $420k for $1,399/mo.=20
> Calculate new payment!
> http://www.LowerMyBills.com/lre
>=20
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will
> ignore your desire to
> choose an index scan if your joining column's
> datatypes do not
> match
>=20
=20
____________________________________________________________ _____________=
___________
Sponsored Link
For just $24.99/mo., Vonage offers unlimited local and long- distance cal=
ling.=20
Sign up now. http://www.vonage.com/startsavingnow/
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
Re: Help building 08.02.0200 on Solaris 10 (sparc)
am 09.11.2006 10:26:58 von Peter Eisentraut
Trevor Riever wrote:
> Figured it out. The configure file for 08.02.0200
> uses
> CPPFLAGS="$CPPFLAGS $pg_cflags -I$pg_includedir" where
> 08.02.0100 uses CPPFLAGS="$CPPFLAGS -I$pg_includedir".
Yes, I had already fixed this in CVS. The 08.02.0200 release is
basically broken on Unix platforms for this and related reasons.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly