Source: btrfs-compsize
Version: 1.5-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20241228 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, this package failed to build
on i386.

This package currently has binary packages on i386, so this is a regression.

Relevant part (hopefully):
> cc -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o radix-tree.o 
> radix-tree.c
> In file included from radix-tree.c:39:
> kerncompat.h:124:9: warning: "__bitwise__" redefined
>   124 | #define __bitwise__
>       |         ^~~~~~~~~~~
> In file included from kerncompat.h:30:
> /usr/include/linux/types.h:29:9: note: this is the location of the previous 
> definition
>    29 | #define __bitwise__ __bitwise
>       |         ^~~~~~~~~~~
> In file included from compsize.c:17:
> radix-tree.h:51:9: error: unknown type name ‘gfp_t’
>    51 |         gfp_t                   gfp_mask;
>       |         ^~~~~
> radix-tree.h:78:24: error: unknown type name ‘gfp_t’
>    78 | int radix_tree_preload(gfp_t gfp_mask);
>       |                        ^~~~~
> radix-tree.h: In function ‘radix_tree_preload_end’:
> radix-tree.h:94:9: error: implicit declaration of function ‘preempt_enable’ 
> [-Wimplicit-function-declaration]
>    94 |         preempt_enable();
>       |         ^~~~~~~~~~~~~~
> compsize.c: In function ‘parse_file_extent_item’:
> compsize.c:163:10: error: implicit declaration of function ‘IS_ALIGNED’ 
> [-Wimplicit-function-declaration]
>   163 |     if (!IS_ALIGNED(disk_bytenr, 1 << 12))
>       |          ^~~~~~~~~~
> compsize.c:167:5: error: implicit declaration of function 
> ‘radix_tree_preload’; did you mean ‘radix_tree_preload_end’? 
> [-Wimplicit-function-declaration]
>   167 |     radix_tree_preload(GFP_KERNEL);
>       |     ^~~~~~~~~~~~~~~~~~
>       |     radix_tree_preload_end
> compsize.c:167:24: error: ‘GFP_KERNEL’ undeclared (first use in this 
> function); did you mean ‘SI_KERNEL’?
>   167 |     radix_tree_preload(GFP_KERNEL);
>       |                        ^~~~~~~~~~
>       |                        SI_KERNEL
> compsize.c:167:24: note: each undeclared identifier is reported only once for 
> each function it appears in
> compsize.c:168:59: warning: cast to pointer from integer of different size 
> [-Wint-to-pointer-cast]
>   168 |     if (radix_tree_insert(&ws->seen_extents, disk_bytenr, (void 
> *)disk_bytenr) == 0)
>       |                                                           ^
> compsize.c: In function ‘do_file’:
> compsize.c:194:13: error: ‘errno’ undeclared (first use in this function)
>   194 |         if (errno == ENOTTY)
>       |             ^~~~~
> compsize.c:19:1: note: ‘errno’ is defined in header ‘<errno.h>’; this is 
> probably fixable by adding ‘#include <errno.h>’
>    18 | #include "endianness.h"
>   +++ |+#include <errno.h>
>    19 | 
> compsize.c:194:22: error: ‘ENOTTY’ undeclared (first use in this function); 
> did you mean ‘N_TTY’?
>   194 |         if (errno == ENOTTY)
>       |                      ^~~~~~
>       |                      N_TTY
> compsize.c: In function ‘do_recursive_search’:
> compsize.c:246:17: error: ‘errno’ undeclared (first use in this function)
>   246 |             if (errno == ELOOP    // symlink
>       |                 ^~~~~
> compsize.c:246:17: note: ‘errno’ is defined in header ‘<errno.h>’; this is 
> probably fixable by adding ‘#include <errno.h>’
> compsize.c:246:26: error: ‘ELOOP’ undeclared (first use in this function)
>   246 |             if (errno == ELOOP    // symlink
>       |                          ^~~~~
> compsize.c:247:26: error: ‘ENXIO’ undeclared (first use in this function)
>   247 |              || errno == ENXIO    // some device nodes
>       |                          ^~~~~
> compsize.c:248:26: error: ‘ENODEV’ undeclared (first use in this function); 
> did you mean ‘NODEV’?
>   248 |              || errno == ENODEV   // /dev/ptmx
>       |                          ^~~~~~
>       |                          NODEV
> compsize.c:249:26: error: ‘ENOMEDIUM’ undeclared (first use in this function)
>   249 |              || errno == ENOMEDIUM// more device nodes
>       |                          ^~~~~~~~~
> compsize.c:250:26: error: ‘ENOENT’ undeclared (first use in this function)
>   250 |              || errno == ENOENT)  // something just deleted
>       |                          ^~~~~~
> compsize.c:252:31: error: ‘EACCES’ undeclared (first use in this function)
>   252 |             else if (errno == EACCES)
>       |                               ^~~~~~
> compsize.c:275:26: error: implicit declaration of function ‘strlen’ 
> [-Wimplicit-function-declaration]
>   275 |             path_size += strlen(path) + NAME_MAX;
>       |                          ^~~~~~
> compsize.c:19:1: note: include ‘<string.h>’ or provide a declaration of 
> ‘strlen’
>    18 | #include "endianness.h"
>   +++ |+#include <string.h>
>    19 | 
> compsize.c:275:26: warning: incompatible implicit declaration of built-in 
> function ‘strlen’ [-Wbuiltin-declaration-mismatch]
>   275 |             path_size += strlen(path) + NAME_MAX;
>       |                          ^~~~~~
> compsize.c:275:26: note: include ‘<string.h>’ or provide a declaration of 
> ‘strlen’
> compsize.c:290:26: error: implicit declaration of function ‘strcmp’ 
> [-Wimplicit-function-declaration]
>   290 |                     if (!strcmp(de->d_name, "."))
>       |                          ^~~~~~
> compsize.c:290:26: note: include ‘<string.h>’ or provide a declaration of 
> ‘strcmp’
> compsize.c:294:41: error: implicit declaration of function ‘strrchr’ 
> [-Wimplicit-function-declaration]
>   294 |                     const char *slash = strrchr(path, '/');
>       |                                         ^~~~~~~
> compsize.c:294:41: note: include ‘<string.h>’ or provide a declaration of 
> ‘strrchr’
> compsize.c:294:41: warning: incompatible implicit declaration of built-in 
> function ‘strrchr’ [-Wbuiltin-declaration-mismatch]
> compsize.c:294:41: note: include ‘<string.h>’ or provide a declaration of 
> ‘strrchr’
> make[2]: *** [Makefile:19: compsize.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/12/28/btrfs-compsize_1.5-1_unstable-i386.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20241228;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20241228&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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 mark 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 mine
so that we can identify if something relevant changed in the meantime.

Reply via email to