Thread: postgesql-9.0.4 compile on AIX 6.1 using gcc 4.4.6

postgesql-9.0.4 compile on AIX 6.1 using gcc 4.4.6

From
"Weiss, Wilfried"
Date:
<div class="Section1"><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Hello,</span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">I am just trying to compile postgresql-9.0.4 on AIX 6100-06-03-1048 using gcc
4.4.6.</span></font><pclass="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size: 
10.0pt;font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:
10.0pt;font-family:Arial">Since many years I did this successfully on other versions of AIX using xlc. However my
version9 of xlc is no longer running on AIX 6.1 and no one is willing to sponsor a new version of xlc.
</span></font><fontface="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial">So I started trying to
compilepostgresql with gcc 4.4.6. </span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">The installation of gcc was a nightmare. There were unresolved dependencies that needed to be
ignoredwith parameter nodeps when installing by rpm!?</span></font><p class="MsoNormal"><font face="Arial"
size="2"><spanlang="EN-GB" style="font-size: 
10.0pt;font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:
10.0pt;font-family:Arial">Unfortunately that was not all. </span></font><p class="MsoNormal"><font face="Arial"
size="2"><spanlang="EN-GB" style="font-size: 
10.0pt;font-family:Arial">There was also:</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
lang="EN-GB"style="font-size: 
10.0pt;font-family:Arial">"[Bug target/46072] AIX linker chokes on debug info for uninitialized static
variables"</span></font><pclass="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size: 
10.0pt;font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:
10.0pt;font-family:Arial">This is an IBM bug in AIX’s assembler (as) which causes corrupt object code that is crashing
whentrying to execute it.</span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:
10.0pt;font-family:Arial">As far as I know IBM still not delived a fix for this. It seems that they are not interested
inthis as IBM’s xlc is not using the assembler to create object code.  </span></font><p class="MsoNormal"><font
face="Arial"size="2"><span lang="EN-GB" style="font-size: 
10.0pt;font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:
10.0pt;font-family:Arial">Does any one know whether there is an alternate way to compile postgresql on AIX 6.1 using
gcc???</span></font><pclass="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size: 
10.0pt;font-family:Arial">I appreciate even the smallest hint!</span></font><p class="MsoNormal"><font face="Arial"
size="2"><spanlang="EN-GB" style="font-size: 
10.0pt;font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:
10.0pt;font-family:Arial">Regards </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:
10.0pt;font-family:Arial">WW</span></font><p class="MsoNormal"><font face="Times New Roman" size="3"><span lang="EN-GB"
style="font-size:12.0pt"> </span></font></div><brclear="both" /> http://www.pilkington.com/nsg/disclaimer.htm<br /> 

Re: postgesql-9.0.4 compile on AIX 6.1 using gcc 4.4.6

From
"Albe Laurenz"
Date:
Wilfried Weiss wrote:
> I am just trying to compile postgresql-9.0.4 on AIX 6100-06-03-1048
using gcc 4.4.6.

> There was also:
>
> "[Bug target/46072] AIX linker chokes on debug info for uninitialized
static variables"

> Does any one know whether there is an alternate way to compile
postgresql on AIX 6.1 using gcc???
>
> I appreciate even the smallest hint!

I don't have any AIX boxes to play with any more, I guess
(after reading the bug description) that it should work if
you compile without generating debug info (-g).

Yours,
Laurenz Albe


Re: postgesql-9.0.4 compile on AIX 6.1 using gcc 4.4.6

From
Steve Singer
Date:
On 11-08-30 07:58 AM, Weiss, Wilfried wrote: <blockquote
cite="mid:D5F2E1B9C59A394D96FB85687155459901271D97@sdegel00069.euro.pilkington.net"type="cite"><style>
 
<!--/* Font Definitions */@font-face{font-family:"MS Mincho";panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face{font-family:"\@MS Mincho";panose-1:2 2 6 9 4 2 5 8 3 4;}/* Style Definitions */p.MsoNormal, li.MsoNormal,
div.MsoNormal{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"TimesNew Roman";}
 
a:link, span.MsoHyperlink{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed{color:purple;text-decoration:underline;}

p{mso-margin-top-alt:auto;margin-right:0cm;mso-margin-bottom-alt:auto;margin-left:0cm;font-size:12.0pt;font-family:"Times
NewRoman";}
 
span.E-MailFormatvorlage17{mso-style-type:personal-compose;font-family:Arial;color:windowtext;}
@page Section1{size:595.3pt 841.9pt;margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1{page:Section1;}
-->
</style><div class="Section1"><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt;
font-family:Arial;">Hello,</span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt;
font-family:Arial;"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:10pt; font-family: Arial;">I am just trying to compile postgresql-9.0.4 on AIX 6100-06-03-1048 using
gcc4.4.6.</span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt;
font-family:Arial;"> </span></font><font face="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt;
font-family:Arial;">Unfortunately that was not all. </span></font><p class="MsoNormal"><font face="Arial"
size="2"><spanlang="EN-GB" style="font-size: 10pt; font-family: Arial;">There was also:</span></font><p
class="MsoNormal"><fontface="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial;">"[Bug
target/46072]AIX linker chokes on debug info for uninitialized static variables"</span></font><p
class="MsoNormal"><fontface="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt; font-family:
Arial;"> </span></font><pclass="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt;
font-family:Arial;">This is an IBM bug in AIX’s assembler (as) which causes corrupt object code that is crashing when
tryingto execute it.</span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size:
10pt;font-family: Arial;">As far as I know IBM still not delived a fix for this. It seems that they are not interested
inthis as IBM’s xlc is not using the assembler to create object code.  </span></font><p class="MsoNormal"><font
face="Arial"size="2"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial;"> </span></font><p
class="MsoNormal"><fontface="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial;">Does any
oneknow whether there is an alternate way to compile postgresql on AIX 6.1 using gcc???</span></font><p
class="MsoNormal"><fontface="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial;">I
appreciateeven the smallest hint!</span></font></div></blockquote><br /> I have compiled 9.0.4 on AIX 5.3 with GCC
4.1.1without any issues.<br /> (well the regression tests hit an issue on REL9_0_STABLE builds that they don't hit with
morerecent branches but that is due to a makefile related issue that I should post about in a different thread. <br
/><br/> The buildfarm member grebe (<a class="moz-txt-link-freetext"
href="http://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=grebe&br=HEAD">http://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=grebe&br=HEAD</a>)
doesthis.<br /><br /> I do not have access to a AIX 6.1 machine<br /><br /><br /><blockquote
cite="mid:D5F2E1B9C59A394D96FB85687155459901271D97@sdegel00069.euro.pilkington.net"type="cite"><div class="Section1"><p
class="MsoNormal"><fontface="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt; font-family:
Arial;"> </span></font><pclass="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB" style="font-size: 10pt;
font-family:Arial;">Regards </span></font><p class="MsoNormal"><font face="Arial" size="2"><span lang="EN-GB"
style="font-size:10pt; font-family: Arial;">WW</span></font><p class="MsoNormal"><font face="Times New Roman"
size="3"><spanlang="EN-GB" style="font-size: 12pt;"> </span></font></div><br clear="both" /><a
class="moz-txt-link-freetext"
href="http://www.pilkington.com/nsg/disclaimer.htm">http://www.pilkington.com/nsg/disclaimer.htm</a><br
/></blockquote><br/>