Unix Technical Forum

=?UTF-8?Q?problem_with_compilation_of_dynalloc2_segmenta tion_fault?=

This is a discussion on =?UTF-8?Q?problem_with_compilation_of_dynalloc2_segmenta tion_fault?= within the pgsql Admins forums, part of the PostgreSQL category; --> Did anybody face the same problem during the compilation of postgresql 8.2.5 on suse 10.2? I'm using gmake 3.81 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:18 AM
=?UTF-8?Q?Marcin?=
 
Posts: n/a
Default =?UTF-8?Q?problem_with_compilation_of_dynalloc2_segmenta tion_fault?=

Did anybody face the same problem during the compilation of postgresql 8.2.5
on suse 10.2?
I'm using gmake 3.81


gcc -I../../include -I../../../../../src/interfaces/ecpg/include
-I../../../../../src/interfaces/libpq -I../../../../../src/include -D_GNU_SOURCE -O2
-Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing dynalloc2.c -L../../ecpglib
-L../../pgtypeslib -L../../../../../src/port -Wl,-rpath,'/usr/local/pgsql/lib'
-lecpg -lpgtypes -L../../../../../src/interfaces/libpq -lpq -lpgport -lz
-lreadline -lcrypt -ldl -lm -o dynalloc2
dynalloc2.pgc: In function âmainâ:
dynalloc2.pgc:55: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.opensuse.org>; for instructions.
gmake[5]: *** [dynalloc2] Error 1
gmake[5]: Leaving directory
`/home/.../tmp/postgresql-8.2.5/src/interfaces/ecpg/test/sql'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory
`/home/.../tmp/postgresql-8.2.5/src/interfaces/ecpg/test'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory
`/home/.../tmp/postgresql-8.2.5/src/interfaces/ecpg'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/.../tmp/postgresql-8.2.5/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/.../tmp/postgresql-8.2.5/src'
gmake: *** [all] Error 2

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 09:18 AM
Tom Lane
 
Posts: n/a
Default Re: =?UTF-8?Q?problem_with_compilation_of_dynalloc2_segmenta tion_fault?=

=?UTF-8?Q?Marcin?= <rion@o2.pl> writes:
> Did anybody face the same problem during the compilation of postgresql 8.2.5
> on suse 10.2?
> ...
> dynalloc2.pgc: In function âmainâ:
> dynalloc2.pgc:55: internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://bugs.opensuse.org>; for instructions.


This is not Postgres' problem. Either you have a broken gcc, or you
have flaky hardware that causes the compiler to crash. Is the behavior
repeatable if you try the build several times? If yes, file a bug
report against gcc (might as well do it through the mentioned opensuse
page, since given the lack of other reports, odds are good it's a
SUSE-induced breakage). If not repeatable, you have bad hardware;
time to try the usual clean-everything-and-reseat-connectors rain dance.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 09:18 AM
Jorge Servan
 
Posts: n/a
Default Re: problem with compilation of dynalloc2 segmentation fault

Try to set enviroment variable LANG to C value before compilation. If you
use sh shell you must execute: export LANG=C.

The gcc manual documents this. It's not a compiler bug.

Best regards.

2007/12/19, Marcin <rion@o2.pl>:
>
> Did anybody face the same problem during the compilation of postgresql
> 8.2.5
> on suse 10.2?
> I'm using gmake 3.81
>
>
> gcc -I../../include -I../../../../../src/interfaces/ecpg/include
> -I../../../../../src/interfaces/libpq -I../../../../../src/include
> -D_GNU_SOURCE -O2
> -Wall -Wmissing-prototypes -Wpointer-arith -Winline
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> dynalloc2.c -L../../ecpglib
> -L../../pgtypeslib
> -L../../../../../src/port -Wl,-rpath,'/usr/local/pgsql/lib'
> -lecpg -lpgtypes -L../../../../../src/interfaces/libpq -lpq -lpgport -lz
> -lreadline -lcrypt -ldl -lm -o dynalloc2
> dynalloc2.pgc: In function âmainâ:
> dynalloc2.pgc:55: internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://bugs.opensuse.org>; for instructions.
> gmake[5]: *** [dynalloc2] Error 1
> gmake[5]: Leaving directory
> `/home/.../tmp/postgresql-8.2.5/src/interfaces/ecpg/test/sql'
> gmake[4]: *** [all] Error 2
> gmake[4]: Leaving directory
> `/home/.../tmp/postgresql-8.2.5/src/interfaces/ecpg/test'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory
> `/home/.../tmp/postgresql-8.2.5/src/interfaces/ecpg'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory `/home/.../tmp/postgresql-8.2.5
> /src/interfaces'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/home/.../tmp/postgresql-8.2.5/src'
> gmake: *** [all] Error 2
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com