From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31282 invoked by alias); 6 Oct 2010 19:06:07 -0000 Received: (qmail 31273 invoked by uid 22791); 6 Oct 2010 19:06:06 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Oct 2010 19:06:01 +0000 From: "gcc-tgc at jupiterrise dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/45915] New: Check for gnu_unique_object in ld.so in gcc/configure.ac is broken for non-glibc ldd X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc-tgc at jupiterrise dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 06 Oct 2010 19:06:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg00555.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45915 Summary: Check for gnu_unique_object in ld.so in gcc/configure.ac is broken for non-glibc ldd Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned@gcc.gnu.org ReportedBy: gcc-tgc@jupiterrise.com Host: i386-pc-solaris2.8 While building gcc-4.6-20101002 with this configure invocation: ./gcc-4.6-20101002/configure --prefix=/usr/tgcware/gcc46 --with-gnu-as --with-as=/opt/csw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --disable-nls --enable-shared --enable-languages=c,c++,fortran,ada Where gas is from binutils 2.20.1 (Blastwave build). I noticed this output: checking assembler for gnu_unique_object... yes expr: syntax error /export/home/pkgsrc/build/gcc-4.6-20101002/gcc/configure: test: : integer expression expected Looking in gcc/configure.ac beginning in line 3840 is the problem. It runs 'ldd --version' and expects output that can be parsed into an integer. This fails on Solaris and $glibcmajor is empty when expr tries to do math with it causing the error above to be printed.