Обсуждение: Postgresql RH5 source RPM

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

Postgresql RH5 source RPM

От
benefits@cybertechs.com
Дата:
Anyone have any idea why the following happened when I tried to build
a binary RPM from the Postgresql source RPM using gcc 2.8.1:

***Everything before pathnode.o compiles***

gcc -I../../../include -I../../../backend     -Wall
-Wmissing-prototypes -O2 -march=pentium -fno-strength-reduce -I../..
-c pathnode.c -o pathnode.o gcc: Internal compiler error: program cc1
got fatal signal 6 make[3]: *** [pathnode.o] Error 1

***Everything else in dir compiles***

make[3]: Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/util'
make[3]: Entering directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/geqo'
make[3]: Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/geqo'
for i in path plan prep util geqo; do make -C $i util/SUBSYS.o; done
make[3]: Entering directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/path'
make[3]: *** No rule to make target `util/SUBSYS.o'.  Stop. make[3]:
Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/path'
make[3]: Entering directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/plan'
make[3]: *** No rule to make target `util/SUBSYS.o'.  Stop. make[3]:
Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/plan'
make[3]: Entering directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/prep'
make[3]: *** No rule to make target `util/SUBSYS.o'.  Stop. make[3]:
Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/prep'
make[3]: Entering directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/util'
make[3]: *** No rule to make target `util/SUBSYS.o'.  Stop. make[3]:
Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/util'
make[3]: Entering directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/geqo'
make[3]: *** No rule to make target `util/SUBSYS.o'.  Stop. make[3]:
Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer/geqo'
make[2]: *** [util/SUBSYS.o] Error 2 make[2]: Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend/optimizer'
make[1]: *** [optimizer.dir] Error 2 make[1]: Leaving directory
`/usr/src/redhat/BUILD/postgresql-6.3.2/src/backend' make: *** [all]
Error 2 Bad exit status

I was able to compile pathnode.c using gcc -O0 manually but I had no
idea where to go from there.

Any ideas appreciated!

Sincerely,

Jason Boxman
benefits@cybertechs.com

Re: [ADMIN] Postgresql RH5 source RPM

От
Bruce Momjian
Дата:
>
> Anyone have any idea why the following happened when I tried to build
> a binary RPM from the Postgresql source RPM using gcc 2.8.1:
>
> ***Everything before pathnode.o compiles***
>
> gcc -I../../../include -I../../../backend     -Wall
> -Wmissing-prototypes -O2 -march=pentium -fno-strength-reduce -I../..
> -c pathnode.c -o pathnode.o gcc: Internal compiler error: program cc1
> got fatal signal 6 make[3]: *** [pathnode.o] Error 1
>

Try defining:

    USE_UNIVEL_CC

This disables a macro in access/heapam.h.  Let me know if that fixes it.

If not, it is some compiler error.


--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)