Control: tags -1 +patch

Hi Marc,

On Tue, 2025-10-28 at 10:43 +0100, Marc Haber wrote:
> On Tue, Oct 28, 2025 at 09:11:21AM +0100, John Paul Adrian Glaubitz wrote:
> > ippl fails to build from source on loong64 and sparc64 when built with
> > many parallel jobs:
> 
> I don't have the slightest idea how to address this. ippl doesn't 
> contain more than 10 .c files in the first place.
> 
> > ippl.l:28:10: fatal error: y.tab.h: No such file or directory
> >    28 | #include "y.tab.h"
> >       |          ^~~~~~~~~
> 
> y.tab.h looks like its created during build, so it might be a simple 
> Makefile issue. Tagging the bug help.

The proposed patch by Jan fixes the problem:

--- ippl-1.4.14.orig/Source/Makefile.in
+++ ippl-1.4.14/Source/Makefile.in
@@ -47,10 +47,12 @@ $(TARGET): $(OBJS)
 %.o: %.c Makefile ../Makefile.common
        $(CC) $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES) -c $<
 
-y.tab.c: ippl.y Makefile ../Makefile.common
+y.tab.h: ippl.y
        $(YACC) -d $<
 
-lex.yy.c: ippl.l Makefile ../Makefile.common
+y.tab.c: y.tab.h
+
+lex.yy.c: ippl.l y.tab.h
        $(LEX) $<
 
 clean:

Attaching as a patch. I suggest renaming it to a more descriptive name.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- ippl-1.4.14.orig/Source/Makefile.in
+++ ippl-1.4.14/Source/Makefile.in
@@ -47,10 +47,12 @@ $(TARGET): $(OBJS)
 %.o: %.c Makefile ../Makefile.common
 	$(CC) $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES) -c $<
 
-y.tab.c: ippl.y Makefile ../Makefile.common
+y.tab.h: ippl.y
 	$(YACC) -d $<
 
-lex.yy.c: ippl.l Makefile ../Makefile.common
+y.tab.c: y.tab.h
+
+lex.yy.c: ippl.l y.tab.h
 	$(LEX) $<
 
 clean:

Reply via email to