[R-pkg-team] Bug#976473: r-cran-s2: FTBFS: ../inst/include/s2/third_party/absl/base/internal/unaligned_access.h:289:8: error: ‘uint64’ does not name a type; did you mean ‘uint64_t’?

Lucas Nussbaum lucas at debian.org
Sat Dec 5 12:29:42 GMT 2020


Source: r-cran-s2
Version: 1.0.3-1
Severity: serious
Justification: FTBFS on arm64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201205 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on arm64 (I don't know if it also fails on amd64).

Relevant part (hopefully):
> g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/wk/include'   -DIS_LITTLE_ENDIAN -pthread -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-jYaHN5/r-base-4.0.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c s2/encoded_s2cell_id_vector.cc -o s2/encoded_s2cell_id_vector.o
> In file included from ../inst/include/s2/encoded_uint_vector.h:23,
>                  from ../inst/include/s2/encoded_s2cell_id_vector.h:22,
>                  from s2/encoded_s2cell_id_vector.cc:18:
> ../inst/include/s2/third_party/absl/base/internal/unaligned_access.h:289:8: error: ‘uint64’ does not name a type; did you mean ‘uint64_t’?
>   289 | inline uint64 UnalignedLoad64(const void *p) {
>       |        ^~~~~~
>       |        uint64_t
> ../inst/include/s2/third_party/absl/base/internal/unaligned_access.h:299:39: error: ‘uint64’ has not been declared
>   299 | inline void UnalignedStore64(void *p, uint64 v) { memcpy(p, &v, sizeof v); }
>       |                                       ^~~~~~
> ../inst/include/s2/encoded_uint_vector.h: In function ‘T s2coding::GetUintWithLength(const char*, int)’:
> ../inst/include/s2/third_party/absl/base/internal/unaligned_access.h:309:25: error: ‘UnalignedLoad64’ is not a member of ‘absl::base_internal’; did you mean ‘UnalignedLoad32’?
>   309 |   (absl::base_internal::UnalignedLoad64(_p))
>       |                         ^~~~~~~~~~~~~~~
> ../inst/include/s2/encoded_uint_vector.h:166:32: note: in expansion of macro ‘ABSL_INTERNAL_UNALIGNED_LOAD64’
>   166 |     if (sizeof(T) == 8) return ABSL_INTERNAL_UNALIGNED_LOAD64(ptr);
>       |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[1]: *** [/usr/lib/R/etc/Makeconf:179: s2/encoded_s2cell_id_vector.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/12/05/r-cran-s2_1.0.3-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 EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the R-pkg-team mailing list