Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-16 Thread Jonathan Wakely via Gcc-patches
On 16/11/20 12:46 +0100, Rainer Orth wrote: Hi Jonathan, libstdc++-v3/ChangeLog: * src/Makefile.am (libstdc++-symbols.ver-sun): Remove -lrt from arguments passed to make_sunver.pl script. * src/Makefile.in: Regenerate. Tested sparc-solaris2.11. Rainer, does this look O

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-16 Thread Rainer Orth
Hi Jonathan, >>I did try to use "-l ?[[:alnum:]]+" but Solaris sed only supports BREs >>(as POSIX requires) and there doesn't seem to be an equivalent of the >>GNU sed -E option to use EREs. > > POSIX agreed to add the -E option 8 years ago but that hasn't made it > into the standard yet (because

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-16 Thread Rainer Orth
Hi Jonathan, >>> libstdc++-v3/ChangeLog: >>> >>> * src/Makefile.am (libstdc++-symbols.ver-sun): Remove -lrt from >>> arguments passed to make_sunver.pl script. >>> * src/Makefile.in: Regenerate. >>> >>> Tested sparc-solaris2.11. Rainer, does this look OK? >> >>it does, but let me give

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-16 Thread Jonathan Wakely via Gcc-patches
On 16/11/20 10:32 +, Jonathan Wakely wrote: On 16/11/20 11:17 +0100, Rainer Orth wrote: Hi Jonathan, Currently this is shown when building libstdc++ on Solaris: -lrt: open: No such file or directory The error comes from the make_sunver.pl script which tries to open each of its arguments.

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-16 Thread Jonathan Wakely via Gcc-patches
On 16/11/20 11:17 +0100, Rainer Orth wrote: Hi Jonathan, Currently this is shown when building libstdc++ on Solaris: -lrt: open: No such file or directory The error comes from the make_sunver.pl script which tries to open each of its arguments. The arguments are passed by this make rule:

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-16 Thread Jonathan Wakely via Gcc-patches
On 16/11/20 11:23 +0100, Rainer Orth wrote: Hi Jonathan, But in practice the snippet above is only used if you explicitly configure with --enable-libstdcxx-time={yes,rt} and will only add anything to GLIBCXX_LIBS if clock_gettime or nanosleep lives in one of librt or libposix4. I think libposix

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-16 Thread Rainer Orth
Hi Jonathan, > But in practice the snippet above is only used if you explicitly > configure with --enable-libstdcxx-time={yes,rt} and will only add > anything to GLIBCXX_LIBS if clock_gettime or nanosleep lives in one of > librt or libposix4. I think libposix4 is Solaris-specific, and I don't > th

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-16 Thread Rainer Orth
Hi Jonathan, > Currently this is shown when building libstdc++ on Solaris: > > -lrt: open: No such file or directory > > The error comes from the make_sunver.pl script which tries to open each > of its arguments. The arguments are passed by this make rule: > > perl ${glibcxx_srcdir}/scripts/

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-13 Thread Iain Sandoe via Gcc-patches
Jonathan Wakely wrote: On 13/11/20 11:07 +, Jonathan Wakely wrote: Currently this is shown when building libstdc++ on Solaris: -lrt: open: No such file or directory The error comes from the make_sunver.pl script which tries to open each of its arguments. The arguments are passed by this

Re: [PATCH] libstdc++: Fix error shown during Solaris build

2020-11-13 Thread Jonathan Wakely via Gcc-patches
On 13/11/20 11:07 +, Jonathan Wakely wrote: Currently this is shown when building libstdc++ on Solaris: -lrt: open: No such file or directory The error comes from the make_sunver.pl script which tries to open each of its arguments. The arguments are passed by this make rule: perl $