[R-pkg-team] Bug#1020049: r-cran-hdf5r: FTBFS: datatype_export.c:1903:19: error: storage size of ‘myenum’ isn’t known

Lucas Nussbaum lucas at debian.org
Sun Sep 18 07:21:55 BST 2022


Source: r-cran-hdf5r
Version: 1.3.5+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220917 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/hdf5/serial    -D__USE_MINGW_ANSI_STDIO   -fpic  -g -O2 -ffile-prefix-map=/build/r-base-J8F88F/r-base-4.2.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c datatype_export.c -o datatype_export.o
> datatype_export.c: In function ‘create_DT_H5R_type_t’:
> datatype_export.c:1903:19: error: storage size of ‘myenum’ isn’t known
>  1903 |   enum H5R_type_t myenum;
>       |                   ^~~~~~
> datatype_export.c:1904:41: error: invalid application of ‘sizeof’ to incomplete type ‘enum H5R_type_t’
>  1904 |   hid_t base_type = get_h5_equiv(sizeof(enum H5R_type_t), issigned(enum H5R_type_t));
>       |                                         ^~~~
> In file included from datatype_export.c:20:
> datatype_export.c:1904:73: error: conversion to incomplete type
>  1904 |   hid_t base_type = get_h5_equiv(sizeof(enum H5R_type_t), issigned(enum H5R_type_t));
>       |                                                                         ^~~~~~~~~~
> datatype_export.h:29:24: note: in definition of macro ‘issigned’
>    29 | #define issigned(t) (((t)(-1)) < 0)
>       |                        ^
> make[1]: *** [/usr/lib/R/etc/Makeconf:168: datatype_export.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/09/17/r-cran-hdf5r_1.3.5+dfsg-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220917;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220917&fusertaguser=lucas@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 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 mine
so that we can identify if something relevant changed in the meantime.



More information about the R-pkg-team mailing list