This is the mail archive of the mailing list for the binutils 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: Run more ld tests when not native

On Wed, Jan 11, 2017 at 07:22:05PM +0000, Maciej W. Rozycki wrote:
>  If you've decided to broaden coverage like this, then I think that beyond 
> a simple check that $CC can be found in $PATH a proper installation check 
> for the standard system libraries ought to be made, such as by trying to 
> build a trivial executable comprised of `int main(void) { return 0; }'.  
> This check might be executed once only per LD test suite invocation and 
> cached rather than repeatedly for each dependent test script, taking 
> advantage of all the test suite being executed in the same namespace (so 
> that a plain global variable will do).  This is to avoid spurious failures 
> in the case where a partial development environment has been installed 
> only, e.g. binutils and a bootstrap compiler, but no C library.

On the other hand, a trival executable may fail to link due to some
catastrophic ld failure.  I'm inclined to leave things as they are
unless we get a lot of complaints.

Alan Modra
Australia Development Lab, IBM

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