This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: does glibc "make check" run any C++ test cases?




----------------------------------------
> Date: Fri, 16 Apr 2010 11:15:34 -0400
> Subject: Re: does glibc "make check" run any C++ test cases?
> From: carlos@systemhalted.org
> To: johnlumby@hotmail.com
> CC: libc-help@sourceware.org
>
> On Fri, Apr 16, 2010 at 8:08 AM, John Lumby  wrote:
>> I ask because recently after building and installing my own glibc 2.11.1,  including 100% success reported on the make check,   compilation of certain c++ programs  (including some very basic examples) started failing.     I appreciate that the purpose of glibc test cases is to test glibc code,   and compilation of a c++ program is primarily a gcc task;     but, like it or not,  compilation of c++ programs does involve glibc code and header files,   and in my case it was the change of glibc level which gave rise to the failure,   so it seems to me it would help if there were just a couple of basic c++ programs in the test bucket.
>>
>> (I found out the cause of the failure and fixed it and not complaining about that,  but would have preferred it be found in make check.).
>
> This isn't the normal toolchain build and test procedure.
>
> After build glibc, you need to rebuild gcc with the new glibc and run
> the C++ and C++ Library testsuite to check for errors.

Thanks Carlos.??? While debugging my problem I gradually started thinking that might be how to fix it,? but didn't do that (yet).?? But good to know that's what is needed in general.???? And since glibc needs to be built with a current gcc, it means the process has to be
?? build & install gcc
?? build & install glibc
?? rebuild and reinstall gcc

>
> Building and testing an entire toolchain is hard. No single testsuite
> is designed to catch all errors.

That's reasonable,?? although I wasn't asking for that,? just for glibc make check to check whether compilation of c++ works.??? In view of what you said,??? I guess that nowadays it may be quite common that compilation of c++ will not work after installing glibc? (if the gcc was built against a much older glibc),? but still I feel it would be a useful test to add.

>
> Cheers,
> Carlos.
 		 	   		  
_________________________________________________________________
Got a phone? Get Hotmail & Messenger for mobile!
http://go.microsoft.com/?linkid=9724464

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]