public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* What is this check error?
@ 2010-04-16 11:22 H.J. Lu
  2010-04-16 15:54 ` Dave Korn
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2010-04-16 11:22 UTC (permalink / raw)
  To: GCC Development

On Linux/x86-64, "make check" gave me

make[6]: *** No rule to make target `check-lto', needed by `check'.

Where does it come from?

-- 
H.J.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What is this check error?
  2010-04-16 11:22 What is this check error? H.J. Lu
@ 2010-04-16 15:54 ` Dave Korn
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Korn @ 2010-04-16 15:54 UTC (permalink / raw)
  To: H.J. Lu; +Cc: GCC Development

On 16/04/2010 05:47, H.J. Lu wrote:
> On Linux/x86-64, "make check" gave me
> 
> make[6]: *** No rule to make target `check-lto', needed by `check'.
> 
> Where does it come from?

  I saw this too, but now you made me wonder.  So:

  check-lto is in CHECK_TARGETS because all languages are unconditionally
added to check_languages in configure.ac here:

> check_languages=
> for language in $all_selected_languages
> do
> 	check_languages="$check_languages check-$language"
> done

  The check-% targets in Makefile.in are only matched for languages matching
lang_checks:

> # This is only used for check-% targets that aren't parallelized.
> $(filter-out $(lang_checks_parallelized),$(lang_checks)): check-% : site.exp
  [ snip ]

> $(patsubst %,%-subtargets,$(filter-out $(lang_checks_parallelized),$(lang_checks))): check-%-subtargets:

and lang_checks is built up from contributions from each Make-lang.in:

> $ grep lang_checks */Ma*
> cp/Make-lang.in:lang_checks += check-g++
> cp/Make-lang.in:lang_checks_parallelized += check-g++
> fortran/Make-lang.in:lang_checks += check-gfortran
> fortran/Make-lang.in:lang_checks_parallelized += check-gfortran
> objc/Make-lang.in:lang_checks += check-objc
> objcp/Make-lang.in:lang_checks += check-obj-c++

  Probably the simplest solution would be for lto/Make-lang.in to add a dummy
check-lto goal that does nothing, I think.  The original error itself is harmless.

    cheers,
      DaveK

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-16 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-16 11:22 What is this check error? H.J. Lu
2010-04-16 15:54 ` Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).