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: unassig...@gcc.gnu.org ReportedBy: gcc-...@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.