automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make -j1 fails


From: Ralf Wildenhues
Subject: Re: make -j1 fails
Date: Thu, 13 Jan 2011 19:22:20 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Pippijn,

* Pippijn van Steenhoven wrote on Thu, Jan 13, 2011 at 09:24:42AM CET:
> I am using the FreeBSD make utility to build an automake based
> distribution. When I run make with a -j option (even -j1), it fails.
> Running make with a -j option makes the utility behave differently. The
> issue only arises with built sources (in my case, yacc generated C code),
> since those trigger the inference rule ".c.lo". Perhaps a solution would
> be to also generate explicit rules for built sources.
> 
> I have attached the output of running make with and without -j1.

Thanks for the bug report.  Which version of Automake are you using?
If older than v1.10b-62-g0e411a0, then please update to 1.11.1 and
retry.  It may be possible that we overlooked one case in the
above-mentioned commit, but I don't see where that should be.

If the failure persists, please post short configure.ac and
Makefile.am which expose the problem for you. You can start with
what I show below, and adjust that if it doesn't expose it.

Does the failure happen reliably, i.e., every time, or only sometimes?
You can try in a loop with something like

  for i in 1 2 3 4 5 6 7 8 9 10; do
    rm -f axl.[clo]*
    make V=1 -j1
  done

Does 'make -B -jN' work for you reliably?
Which exact FreeBSD version are you using?  I'm kind of suspecting a bug
in the make implementation, or we're overlooking something with
one-shell issues.

cat >configure.ac <<\END
AC_INIT([a], [1])
AC_CONFIG_AUX_DIR([autoconf])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile])
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_YACC
AC_OUTPUT
END

cat >Makefile.am <<\END
lib_LTLIBRARIES = libfoo.la
libfoo_la_SOURCES = src/compiler/phases/parse/axl.y
END

Thanks,
Ralf

> /bin/sh ./libtool  --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H  -I. -I.. 
> -I./include/config  -I../include -I./include  -I../include -I./include 
> -D_DEBUG  -DPREFIX='"/usr/local"' -I../`echo axl.c | grep -o  
> 'src/library/\w\+'`/include      -g -O2 -pipe -ggdb3 -pedantic -ansi 
> -fvisibility=hidden -MT axl.lo -MD -MP -MF .deps/axl.Tpo -c -o axl.lo axl.c

> /bin/sh ./libtool  --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H  -I. -I.. 
> -I./include/config  -I../include -I./include  -I../include -I./include 
> -D_DEBUG  -DPREFIX='"/usr/local"' -I../`echo axl.c | grep -o  
> 'src/library/\w\+'`/include      -g -O2 -pipe -ggdb3 -pedantic -ansi 
> -fvisibility=hidden -MT axl.lo -MD -MP -MF 
> .deps/src/compiler/phases/parse/axl.Tpo -c -o axl.lo axl.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I./include/config 
> -I../include -I./include -I../include -I./include -D_DEBUG 
> -DPREFIX=\"/usr/local\" -I..//include -g -O2 -pipe -ggdb3 -pedantic -ansi 
> -fvisibility=hidden -MT axl.lo -MD -MP -MF 
> .deps/src/compiler/phases/parse/axl.Tpo -c axl.c  -fPIC -DPIC -o .libs/axl.o
> axl.c:3626: fatal error: opening dependency file 
> .deps/src/compiler/phases/parse/axl.Tpo: No such file or directory



reply via email to

[Prev in Thread] Current Thread [Next in Thread]