Bug#976928: spass: FTBFS on ppc64el: iascanner.l:50:10: fatal error: iaparser.h: No such file or directory

2021-01-06 Thread Adrian Bunk
Control: retitle -1 spass sometimes FTBFS due to race condition
Control: tags -1 patch

On Wed, Dec 09, 2020 at 09:42:01AM +0100, Lucas Nussbaum wrote:
>...
> > iascanner.l:50:10: fatal error: iaparser.h: No such file or directory
> >50 | #include "iaparser.h"
> >   |  ^~~~
> > compilation terminated.
> > make[1]: *** [makefile:239: iascanner.o] Error 1
>...

This is a race condition in parallel builds due to incomplete makefile
dependencies.

Workaroud:

--- debian/rules.old2021-01-06 16:50:16.958225516 +
+++ debian/rules2021-01-06 16:50:23.310221816 +
@@ -1,4 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-   dh $@
+   dh $@ --no-parallel



Bug#976928: spass: FTBFS on ppc64el: iascanner.l:50:10: fatal error: iaparser.h: No such file or directory

2020-12-09 Thread Lucas Nussbaum
Source: spass
Version: 3.9-1
Severity: serious
Justification: FTBFS on ppc64el
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201209 ftbfs-bullseye ftbfs-ppc64el

Hi,

During a rebuild of all packages in sid, your package failed to build
on ppc64el. At the same time, it did not fail on amd64.

I'm marking this bug as severity:serious since your package currently has
ppc64el binary packages in unstable (so this is a regression).

Relevant part (hopefully):
> gcc  -pedantic -Wall -Wshadow -Wpointer-arith -Wwrite-strings -std=c99  -O2 
> -Winline  -Wno-implicit -Wno-uninitialized -c iascanner.c -o iascanner.o
> memory.c: In function ‘memory_PrintAllocatedBlocks’:
> memory.c:1430:20: warning: variable ‘BlockSize’ set but not used 
> [-Wunused-but-set-variable]
>  1430 |   unsigned int BlockSize;/* current block size
>  */
>   |^
> memory.c:1428:20: warning: variable ‘ActEndOfPage’ set but not used 
> [-Wunused-but-set-variable]
>  1428 |   POINTER  ActEndOfPage; /* end of current page   
>  */
>   |^~~~
> memory.c: In function ‘memory_PrintLeaks’:
> memory.c:1805:21: warning: variable ‘BlockSize’ set but not used 
> [-Wunused-but-set-variable]
>  1805 |   unsigned int  BlockSize; /* total block size
>  */
>   | ^
> memory.c:1802:21: warning: variable ‘ActEndOfPage’ set but not used 
> [-Wunused-but-set-variable]
>  1802 |   POINTER   ActEndOfPage;  /* end of current page 
>  */
>   | ^~~~
> memory.c:1801:21: warning: variable ‘ActNext’ set but not used 
> [-Wunused-but-set-variable]
>  1801 |   POINTER   ActNext;   /* next fresh block on current 
> page */
>   | ^~~
> sharing.c: In function ‘sharing_DeleteFromSharing’:
> sharing.c:672:8: warning: variable ‘IsIndexed’ set but not used 
> [-Wunused-but-set-variable]
>   672 |   BOOL IsIndexed;
>   |^
> order.c: In function ‘ord_LiteralCompareAux’:
> order.c:414:20: warning: variable ‘OLit2’ set but not used 
> [-Wunused-but-set-variable]
>   414 |   TERM   OLit1,OLit2;
>   |^
> order.c:414:14: warning: variable ‘OLit1’ set but not used 
> [-Wunused-but-set-variable]
>   414 |   TERM   OLit1,OLit2;
>   |  ^
> foldfg.c: In function ‘fol_CheckFatherLinks’:
> foldfg.c:1540:8: warning: variable ‘Result’ set but not used 
> [-Wunused-but-set-variable]
>  1540 |   TERM Result;
>   |^~
> flags.c: In function ‘flag_GetFlagStringValue’:
> flags.c:1231:10: warning: variable ‘IntValue’ set but not used 
> [-Wunused-but-set-variable]
>  1231 |   intIntValue;
>   |  ^~~~
> rules-split.c: In function ‘split_Backtrack’:
> rules-split.c:173:14: warning: variable ‘DeepestRightBranchLevel’ set but not 
> used [-Wunused-but-set-variable]
>   173 |   intDeepestRightBranchLevel = 
> prfs_ComputeDeepestRightBranchLevel(PS);
>   |  ^~~
> iascanner.l:50:10: fatal error: iaparser.h: No such file or directory
>50 | #include "iaparser.h"
>   |  ^~~~
> compilation terminated.
> make[1]: *** [makefile:239: iascanner.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/12/09/spass_3.9-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on a Power8 cluster part of the
Grid'5000 testbed. Hardware specs: 
https://www.grid5000.fr/w/Grenoble:Hardware#drac