Dear List

I'm trying to duplicate a warning CRAN is seeing on the additional checks
for gcc-UBSAN.  That is using:

CRAN's gcc-UBSAN:
* using R Under development (unstable) (2024-12-04 r87420)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
    gcc-14 (GCC) 14.2.0
    GNU Fortran (GCC) 14.2.0
* running under: Fedora Linux 36 (Workstation Edition)

And gave warnings like.
    input2.c:863:5: warning: ‘__builtin_strncpy’ output may be truncated
copying 225 bytes from a string of length 255 [-Wstringop-truncation]

To try and duplicate, I added a src/Makevars with
PKG_CFLAGS = -Wstringop-truncation

And ran in two different docker images:
Docker #1 (fedora:40)
* using R version 4.4.2 (2024-10-31)

* using platform: aarch64-redhat-linux-gnu

* R was compiled by

    gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)

    GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)

* running under: Fedora Linux 40 (Container Image)

Docker #2 (thanks to Tomas Kalibera)

* using R Under development (unstable) (2024-12-02 r87417)

* using platform: aarch64-unknown-linux-gnu

* R was compiled by

    gcc (Debian 14.2.0-8) 14.2.0

    GNU Fortran (Debian 14.2.0-8) 14.2.0

* running under: Debian GNU/Linux trixie/sid

The flag appears in 00install.out, but the warning doesn't get raised.

Any ideas on how to duplicate?

Thanks,

Brad

PS checks for my package are here:
https://www.stats.ox.ac.uk/pub/bdr/memtests/gcc-UBSAN/epanet2toolkit/00check.log

        [[alternative HTML version deleted]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to