Crosstool-0.24 problems on Solaris
Dan Kegel
dank@kegel.com
Sun Nov 16 01:11:00 GMT 2003
Addison Laurent wrote:
>>>... gcc-3.2.3-glibc-2.3.2/build-glibc/csu/version-info.h:8: too many decimal points in floating constant
>>>make[2]: ***
>>
>>What's in version-info.h?
>
> "Compiled on a SunOS 5.8 system on 2003-11-13.
> "
> "Available extensions:
> "
> GNU libio by Per Bothner
> rypt add-on version 2.1 by Michael Glad and others
> linuxthreads-0.10 by Xavier Leroy
> BIND-8.2.3-T5B
> libthread_db work sponsored by Alpha Processor Inc
> NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
That's interesting. The BIND-8.2.3-T5B, along with all
the other lines, should have been in quotes. Here's how it looks on my machine:
"Compiled on a Linux 2.4.21 system on 2003-11-08.\n"
"Available extensions:\n"
" GNU libio by Per Bothner\n"
" crypt add-on version 2.1 by Michael Glad and others\n"
" linuxthreads-0.10 by Xavier Leroy\n"
" BIND-8.2.3-T5B\n"
" libthread_db work sponsored by Alpha Processor Inc\n"
" NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk\n"
" software FPU emulation by Richard Henderson, Jakub Jelinek and others\n"
And here's the little bit of csu/Makefile that generates that:
echo "\"Available extensions:\\n\""; \
sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \
-e 's/\(^.*$$\)/\"\1\\n\"/' $$files; \
Whew, that's hard to read! That last -e is the one that puts quotes on.
And hey presto, when I try that little sed command on Solaris,
it doesn't add the quotes! Turs out Solaris 5.8's sed doesn't
like the ^ and $ to be inside the (). I guess we found ourselves a
little bug! And whaddaya know, it's been fixed in CVS, see
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/csu/Makefile.diff?r1=1.70&r2=1.71&cvsroot=glibc
So you're not imagining things; it really was broken on Solaris!
Probably installing gnu sed made the problem vanish for you.
- Dan
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list