[pgsql-jp: 30535] Re: 7.3.3 でmake 中にエラー

Yoichi Shimada yshim @ storgate.co.jp
2003年 7月 21日 (月) 21:53:46 JST


島田@Storgate ともうします。

 たまたま、某社の RedHatLinux 9.0 マシンにに PostgreSQL 7.3.3 を
スクラッチインストールする必要があったので、以前にダウンロードして
おいた tar-ball をコポーしてきてから、解凍してmake してみました。
サクッと完了です。

ソースを、本家 <http://www.postgresql.org/mirrors-ftp.html>
から download して、リトライされたらいかがでしょうか?

ところで、
>./make 
って何でしょうか?


[yshim @ hoge yshim]$ uname -a
Linux hoge 2.4.20-13.9 #1 Mon May 12 10:55:37 EDT 2003 i686 i686 i386
GNU/Linux
[yshim @ hoge postgresql-7.3.3]$ gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[yshim @ hoge postgresql-7.3.3]$ 
[yshim @ hoge postgresql-7.3.3]$ make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

[yshim @ hoge yshim]$ ls -l /home/archives/postgresql-7.3.3.tar.gz 
-rwxr-xr-x    1 root     root     11210071  7月 21 21:42 /home/archives/
postgresql-7.3.3.tar.gz
[yshim @ hoge yshim]$ tar zxf /home/archives/postgresql-7.3.3.tar.gz 
[yshim @ hoge yshim]$ cd postgresql-7.3.3/
[yshim @ hoge postgresql-7.3.3]$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
--snip--
config.status: linking ./src/include/port/linux.h to src/include/
pg_config_os.h
config.status: linking ./src/makefiles/Makefile.linux to src/Makefile.port
[yshim @ hoge postgresql-7.3.3]$ 
[yshim @ hoge postgresql-7.3.3]$ 
[yshim @ hoge postgresql-7.3.3]$
[yshim @ hoge postgresql-7.3.3]$ make
make -C doc all
make[1]: 入ります ディレクトリ `/home/yshim/postgresql-7.3.3/doc'
gzip -d -c man.tar.gz | /bin/tar xf -
for file in man1/*.1; do \
--snip--
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/
include   -c -o tablecmds.o tablecmds.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/
include   -c -o trigger.o trigger.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/
include   -c -o typecmds.o typecmds.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/
include   -c -o user.o user.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/
include   -c -o vacuum.o vacuum.c
--snip--
make[1]: 出ます ディレクトリ `/home/yshim/postgresql-7.3.3/src'
All of PostgreSQL successfully made. Ready to install.
[yshim @ sf_ssu postgresql-7.3.3]$

以上。。


2003.07.21, 21:02, Brandy san Wrote;

>はじめまして。brandyと申します。
>
>RedHatLinux 9.0
>PostgreSQL 7.3.3
>
>上記の環境でpostgressqlのmake中に以下のようなエラーがでてしまいます。
>
>どなたか原因と対策をご教授ください。
>
>./configure
>./make
>
>(略)
>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/
>include   -c -o trigger.o trigger.c
>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/
>include   -c -o typecmds.o typecmds.c
>typecmds.c: 関数 `DefineType' 内:
>typecmds.c:298: control_flow_insn_p で内部コンパイラエラー (cfgbuild.c:133)
>完全なバグ報告を送って下さい。
>適切ならばプリプロセス後のソースをつけてください。
><URL:http://bugzilla.redhat.com/bugzilla/> を見れば方法が書いてあります。
>make[3]: *** [typecmds.o] エラー 1
>make[3]: 出ます ディレクトリ `/usr/local/src/database/postgresql-7.3.3/
>src/backend/commands'
>make[2]: *** [commands-recursive] エラー 2
>make[2]: 出ます ディレクトリ `/usr/local/src/database/postgresql-7.3.3/
>src/backend'
>make[1]: *** [all] エラー 2
>make[1]: 出ます ディレクトリ `/usr/local/src/database/postgresql-7.3.3/src'
>make: *** [all] エラー 2
>

---------------------------------
    Storgate Co., LTD,  Japan
    http://www.storgate.co.jp
---------------------------------





pgsql-jp メーリングリストの案内