Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 16ADC6324E2 for ; Sun, 28 Mar 2010 17:41:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 86749-06 for ; Sun, 28 Mar 2010 20:41:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id B3C1263246F for ; Sun, 28 Mar 2010 17:41:34 -0300 (ADT) Received: from adsl-63-195-55-98.dsl.snfc21.pacbell.net ([63.195.55.98] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1NvzIZ-00035y-41 for pgsql-testers@postgresql.org; Sun, 28 Mar 2010 13:41:33 -0700 Message-ID: <4BAFBEF5.1030208@agliodbs.com> Date: Sun, 28 Mar 2010 13:41:25 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: pgsql-testers@postgresql.org Subject: [Fwd: Re: [Fwd: PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: configure issues: C compiler cannot create executables]] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.274 tagged_above=-10 required=5 tests=AWL=0.325, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/16 X-Sequence-Number: 65 -------- 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