Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id EFEB1632702 for ; Sun, 28 Mar 2010 17:58:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 32206-07 for ; Sun, 28 Mar 2010 20:58:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qmta10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [76.96.62.17]) by mail.postgresql.org (Postfix) with ESMTP id 39B4763263A for ; Sun, 28 Mar 2010 17:58:03 -0300 (ADT) Received: from omta07.westchester.pa.mail.comcast.net ([76.96.62.59]) by qmta10.westchester.pa.mail.comcast.net with comcast id yh121d0061GhbT85Aky2MG; Sun, 28 Mar 2010 20:58:02 +0000 Received: from sz0093.wc.mail.comcast.net ([76.96.58.151]) by omta07.westchester.pa.mail.comcast.net with comcast id yky21d00o3FmDic3Tky2Wj; Sun, 28 Mar 2010 20:58:02 +0000 Date: Sun, 28 Mar 2010 20:58:02 +0000 (UTC) From: Lou Picciano To: pgsql-testers@postgresql.org Message-ID: <956408636.7085971269809882805.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> In-Reply-To: <1898426036.7085451269809774951.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> Subject: Re: [Fwd: Re: [Fwd: PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: configure issues: C compiler cannot create executables]] MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_369766_665371795.1269809882804" X-Originating-IP: [76.117.184.231] X-Mailer: Zimbra 5.0.19_GA_3172.RHEL5_64 (ZimbraWebClient - SAF3 (Mac)/5.0.19_GA_3177.RHEL5_64) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=-10 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/17 X-Sequence-Number: 66 ------=_Part_369766_665371795.1269809882804 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Josh, Zdenek, Thanks for your inputs on this. After some hours, we've gotten past the 'C compiler cannot create executables' error (yes, I know; this is one of the internet's MDTs - 'Most-Discussed Topics!'. Still, took some time to be sure we had installed all the supporting applications a gcc compile requires. Have since been working on the latest issues, which look like a combination of linked-library and linker problems. This is outlined in a 'Test Report' to this list, following Josh's template. Title: 9.0Alpha4: openSolaris x86 snv_134: errors linking to libs in /usr/local We may be onto the issues of GNU-ld vs. Solaris-ld to which Zdenek alludes... Configure does, in fact, insist that it's using Solaris linker, even though various messages suggest that the GNU linker is required. '--with-gnu-ld' option is apparently ignored by configure. Will try next with Zdenek's '--with-ld=gld' suggestion. Objective here had been to get this particularly-configured build in place in time for your Test Fest. Thanks for your feedback. Lou Picciano ----- Original Message ----- From: "Josh Berkus" To: pgsql-testers@postgresql.org Sent: Sunday, March 28, 2010 4:41:25 PM GMT -05:00 US/Canada Eastern Subject: [Fwd: Re: [Fwd: [TESTERS] PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: configure issues: C compiler cannot create executables]] -------- Original Message -------- Subject: Re: [Fwd: [TESTERS] PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: configure issues: C compiler cannot create executables] Date: Sun, 28 Mar 2010 21:32:49 +0200 From: Zdenek Kotala To: Josh Berkus CC: Bjorn Munch Hi Josh, I don't say what is wrong. I recommend to look on solaris 11 animals. There are examples how to configure postgres with gcc. I personally recommend to use sun studio. But gcc usually works fine. But gcc in solaris contains several patches for better integration. Any own gcc compilation could cause problems. Sometime is also problem when gcc uses solaris linker. Maybe --with-ld=gld could help. Zdenek On Fri, Mar 26, 2010 at 7:59 PM, Josh Berkus wrote: > > > -------- Original Message -------- > Subject: [TESTERS] PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: > configure issues: C compiler cannot create executables > Date: Fri, 26 Mar 2010 14:18:06 +0000 (UTC) > From: Lou Picciano > To: pgsql-testers@postgresql.org > > > > Testing Friends: > > Having a wee bit of trouble ./configure-ing on openSolaris snv_134 (x86) > Ultimately, we are running into the much-dreaded 'C compiler cannot > create executables' wall... > Some snippets from config.log: > > Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs > Configured with: ../configure --with-as=/usr/ccs/bin/as > --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 > Thread model: posix > gcc version 3.4.6 > configure:3260: $? = 0 > configure:3267: gcc -V >&5 > gcc: `-V' option must have argument > configure:3271: $? = 1 > configure:3294: checking for C compiler default output file name > configure:3316: gcc conftest.c >&5 > ld: fatal: file values-Xa.o: open failed: No such file or directory > ld: fatal: file processing errors. No output written to a.out > collect2: ld returned 1 exit status > configure:3320: $? = 1 > configure:3358: result: > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "PostgreSQL" > | #define PACKAGE_TARNAME "postgresql" > | #define PACKAGE_VERSION "9.0alpha4" > | #define PACKAGE_STRING "PostgreSQL 9.0alpha4" > | #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org" > | #define PG_VERSION "9.0alpha4" > | #define PG_MAJORVERSION "9.0" > | #define USE_INTEGER_DATETIMES 1 > | #define DEF_PGPORT 5432 > | #define DEF_PGPORT_STR "5432" > | #define BLCKSZ 8192 > | #define RELSEG_SIZE 131072 > | #define XLOG_BLCKSZ 8192 > | #define XLOG_SEG_SIZE (16 * 1024 * 1024) > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:3364: error: in `/postgresql-9.0alpha4': > configure:3366: error: C compiler cannot create executables > > > However, later in the log: > > configure_args=' '\''--with-as=/usr/local/bin/as'\'' > '\''--with-ld=/usr/local/bin/ld'\'' '\''--enable-shared'\'' > '\''--enable-languages=c,c++,f77'\''' > > > I /do/ have 'supporting' applications, like as, gnu ld and bison, in > /usr/local/bin - in priority in my PATH: how does this jibe with the line?: > > Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs > > > I'm heading now into lines 3316, 3364 and 3366 to see what's up... > > Or is using SunStudio a must on openSolaris? > > Regards, Lou Picciano > > -- > -- Josh Berkus > PostgreSQL Experts Inc. > http://www.pgexperts.com > -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com - HOWTO Alpha/Beta Test: http://wiki.postgresql.org/wiki/HowToBetaTest To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-testers ------=_Part_369766_665371795.1269809882804 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Verdana; font-size: 12pt; color: #000000'>
Josh, Zdenek,=

Thanks for your inputs on this.  After some hours,= we've gotten past the 'C compiler cannot create executables' error (yes, I= know; this is one of the internet's MDTs - 'Most-Discussed Topics!'.  = ;Still, took some time to be sure we had installed all the supporting appli= cations a gcc compile requires.

Have since been wo= rking on the latest issues, which look like a combination of linked-library= and linker problems.  This is outlined in a 'Test Report' to this lis= t, following Josh's template.  Title: 9.0Alpha4: openSolaris x86 = snv_134: errors linking to libs in /usr/local

We m= ay be onto the issues of GNU-ld vs. Solaris-ld to which Zdenek alludes... &= nbsp;Configure does, in fact, insist that it's using Solaris linker, even t= hough various messages suggest that the GNU linker is required.  '--wi= th-gnu-ld' option is apparently ignored by configure.  Will try next w= ith Zdenek's '--with-ld=3Dgld' suggestion.

Objecti= ve here had been to get this particularly-configured build in place in time= for your Test Fest.  Thanks for your feedback.

Lou Picciano



----- Original = Message -----
From: "Josh Berkus" <josh@agliodbs.com>
To: pgsql= -testers@postgresql.org
Sent: Sunday, March 28, 2010 4:41:25 PM GMT -05:= 00 US/Canada Eastern
Subject: [Fwd: Re: [Fwd: [TESTERS] PostgreSQL 9.0al= pha4: openSolaris 10 x86 snv_134: configure issues: C compiler cannot creat= e executables]]



-------- Original Message --------
Subjec= t: Re: [Fwd: [TESTERS] PostgreSQL 9.0alpha4: openSolaris 10 x86
snv_134:= configure issues: C compiler cannot create executables]
Date: Sun, 28 M= ar 2010 21:32:49 +0200
From: Zdenek Kotala <zdenek.kotala@gmail.com&g= t;
To: Josh Berkus <josh@agliodbs.com>
CC: Bjorn Munch <Bjor= n.Munch@sun.com>

Hi Josh,

I don't say what is wrong. I rec= ommend to look on solaris 11 animals.
There are examples how to configur= e postgres with gcc. I personally
recommend to use sun studio. But gcc u= sually works fine. But gcc in
solaris contains several patches for bette= r integration. Any own gcc
compilation could cause problems.

Some= time is also problem when gcc uses solaris linker. Maybe
--with-ld=3Dgld= could help.

Zdenek



On Fri, Mar 26, 2010 at 7:59 PM, = Josh Berkus <josh@agliodbs.com> wrote:
>
>
> ------= -- Original Message --------
> Subject:        [T= ESTERS] PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134:
> configure= issues: C compiler cannot create executables
> Date:   Fri, 26 = Mar 2010 14:18:06 +0000 (UTC)
> From:   Lou Picciano <loupicc= iano@comcast.net>
> To:     pgsql-testers@postgresql.org=
>
>
>
> Testing Friends:
>
> Having a = wee bit of trouble ./configure-ing on openSolaris snv_134 (x86)
> Ult= imately, we are running into the much-dreaded 'C compiler cannot
> cr= eate executables' wall...
> Some snippets from config.log:
>>    Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.1= 0/3.4.6/specs
>    Configured with: ../configure --with-as= =3D/usr/ccs/bin/as
>    --with-ld=3D/usr/ccs/bin/ld --enabl= e-shared --enable-languages=3Dc,c++,f77
>    Thread model: = posix
>    gcc version 3.4.6
>    configure= :3260: $? =3D 0
>    configure:3267: gcc -V >&5
&= gt;    gcc: `-V' option must have argument
>    c= onfigure:3271: $? =3D 1
>    configure:3294: checking for C= compiler default output file name
>    configure:3316: gcc=    conftest.c  >&5
>    ld: fatal: f= ile values-Xa.o: open failed: No such file or directory
>   &nbs= p;ld: fatal: file processing errors. No output written to a.out
> &nb= sp;  collect2: ld returned 1 exit status
>    configur= e:3320: $? =3D 1
>    configure:3358: result:
>  = ;  configure: failed program was:
>    | /* confdefs.h= .  */
>    | #define PACKAGE_NAME "PostgreSQL"
>=    | #define PACKAGE_TARNAME "postgresql"
>    |= #define PACKAGE_VERSION "9.0alpha4"
>    | #define PACKAGE= _STRING "PostgreSQL 9.0alpha4"
>    | #define PACKAGE_BUGRE= PORT "pgsql-bugs@postgresql.org"
>    | #define PG_VERSION = "9.0alpha4"
>    | #define PG_MAJORVERSION "9.0"
> &n= bsp;  | #define USE_INTEGER_DATETIMES 1
>    | #define= DEF_PGPORT 5432
>    | #define DEF_PGPORT_STR "5432"
&g= t;    | #define BLCKSZ 8192
>    | #define RELSEG= _SIZE 131072
>    | #define XLOG_BLCKSZ 8192
>  =  | #define XLOG_SEG_SIZE (16 * 1024 * 1024)
>    | /*= end confdefs.h.  */
>    |
>    | int=
>    | main ()
>    | {
>   &nb= sp;|
>    |   ;
>    |   return 0= ;
>    | }
>    configure:3364: error: in `= </path/to/source/tree>/postgresql-9.0alpha4':
>    co= nfigure:3366: error: C compiler cannot create executables
>
>> However, later in the log:
>
>    configure_ar= gs=3D' '\''--with-as=3D/usr/local/bin/as'\''
>    '\''--wit= h-ld=3D/usr/local/bin/ld'\'' '\''--enable-shared'\''
>    '= \''--enable-languages=3Dc,c++,f77'\'''
>
>
> I /do/ have = 'supporting' applications, like as, gnu ld and bison, in
> /usr/local= /bin - in priority in my PATH: how does this jibe with the line?:
>>    Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.= 10/3.4.6/specs
>
>
> I'm heading now into lines 3316, 336= 4 and 3366 to see what's up...
>
> Or is using SunStudio a must= on openSolaris?
>
> Regards,  Lou Picciano
>
>= ; --
>                  =                -- Josh Berkus
&= gt;                     &= nbsp;               PostgreSQL Experts I= nc.
>                   =                   http://www.p= gexperts.com
>


--
         &n= bsp;                     =    -- Josh Berkus
           &nb= sp;                     &= nbsp;   PostgreSQL Experts Inc.
         &= nbsp;                    =       http://www.pgexperts.com
-
HOWTO Alpha/Beta Tes= t:
http://wiki.postgresql.org/wiki/HowToBetaTest
To make changes to y= our subscription:
http://www.postgresql.org/mailpref/pgsql-testers
------=_Part_369766_665371795.1269809882804--