gcc/configure failed to detect assembler hidden support on solaris2.6
Daniel Jacobowitz
drow@mvista.com
Mon Dec 2 10:01:00 GMT 2002
On Thu, Nov 28, 2002 at 05:29:29PM +0100, Thibaud Tortech wrote:
> Hi all,
>
> I'm working on sparc-sun-solaris2.6 and I'm trying to build
> binutils-2.13.1 + gcc-3.2.1 on that platform.
>
> First I build and install binutils-2.13.1 then configured gcc with the
> following line:
> ../gcc-3.2.1/configure --prefix=/var/tmp/gnu --with-gnu-as --with-gnu-ld
> --with-as=/var/tmp/gnu/bin/as --with-ld=/var/tmp/gnu/bin/ld
> --enable-languages=c
>
> The gcc/configure script reports that the assembler doesn't support
> hidden symbol attribute. Or in the same script there's a comment saying
> that: "GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN."
>
> Then I found that the following line(#7220) in gcc/configure:
> ld_vers=`echo $ld_ver | sed -n 's,^.*[
> ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
> return an empty line instead of 2.13.1.
>
> I changed it to:
> ld_vers=`echo $ld_ver | sed -n 's,^.*[
> ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
> and things seens to be OK.
>
> Is it OK?
What's $ld_vers? This looks like a bug in your 'sed'... it may be
misnumbering the backreference?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc
mailing list