Avraham Adler
2024-Oct-31 16:30 UTC
[Rd] Error compiling 87283 on Windows 10 using Rtools4.4 6335-6327
When compiling R, the build fails after byte compiling grDevices with the following error: byte-compiling package 'grDevices' make[4]: *** [../../../share/make/lazycomp.mk:9: ../../../library/grDevices/R/grDevices.rdb] Error 139 make[3]: *** [Makefile.win:23: all] Error 2 make[2]: *** [Makefile.win:34: R] Error 1 make[1]: *** [Makefile:18: all] Error 2 make: *** [Makefile:392: distribution] Error 2 I restarted the build, as sometimes that allows it to power through, but it failed at the same point. Any thoughts or suggestions would be appreciated. This may be unrelated, but as I was monitoring the compilation, I saw an warning which I haven't seen before in the 20 or so years I've been building R on Windows: In function 'R_chk_memset', inlined from 'do_aperm' at ../main/array.c:1754:5: ../main/memory.c:3578:16: warning: 'memset' specified bound between 18446744056529682432 and 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 3578 | return n ? memset(s, c, n) : s; | No idea if it is related but I thought I should mention it. Thank you, Avi
Tomas Kalibera
2024-Oct-31 16:42 UTC
[Rd] Error compiling 87283 on Windows 10 using Rtools4.4 6335-6327
On 10/31/24 17:30, Avraham Adler wrote:> When compiling R, the build fails after byte compiling grDevices with > the following error: > > byte-compiling package 'grDevices' > make[4]: *** [../../../share/make/lazycomp.mk:9: > ../../../library/grDevices/R/grDevices.rdb] Error 139 > make[3]: *** [Makefile.win:23: all] Error 2 > make[2]: *** [Makefile.win:34: R] Error 1 > make[1]: *** [Makefile:18: all] Error 2 > make: *** [Makefile:392: distribution] Error 2 > > I restarted the build, as sometimes that allows it to power through, > but it failed at the same point. Any thoughts or suggestions would be > appreciated.Dear Avi, could you please post which compile options are you using? The vanilla builds with default options are being tested regularly (and work). Best Tomas> > This may be unrelated, but as I was monitoring the compilation, I saw > an warning which I haven't seen before in the 20 or so years I've been > building R on Windows: > > In function 'R_chk_memset', > inlined from 'do_aperm' at ../main/array.c:1754:5: > ../main/memory.c:3578:16: warning: 'memset' specified bound between > 18446744056529682432 and 18446744073709551608 exceeds maximum object > size 9223372036854775807 [-Wstringop-overflow=] > 3578 | return n ? memset(s, c, n) : s; > | > > No idea if it is related but I thought I should mention it.> > Thank you, > > Avi > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Prof Brian Ripley
2024-Oct-31 18:10 UTC
[Rd] Error compiling 87283 on Windows 10 using Rtools4.4 6335-6327
On 31/10/2024 16:30, Avraham Adler wrote:> When compiling R, the build fails after byte compiling grDevices with > the following error: > > byte-compiling package 'grDevices' > make[4]: *** [../../../share/make/lazycomp.mk:9: > ../../../library/grDevices/R/grDevices.rdb] Error 139 > make[3]: *** [Makefile.win:23: all] Error 2 > make[2]: *** [Makefile.win:34: R] Error 1 > make[1]: *** [Makefile:18: all] Error 2 > make: *** [Makefile:392: distribution] Error 2 > > I restarted the build, as sometimes that allows it to power through, > but it failed at the same point. Any thoughts or suggestions would be > appreciated. > > This may be unrelated, but as I was monitoring the compilation, I saw > an warning which I haven't seen before in the 20 or so years I've been > building R on Windows: > > In function 'R_chk_memset', > inlined from 'do_aperm' at ../main/array.c:1754:5: > ../main/memory.c:3578:16: warning: 'memset' specified bound between > 18446744056529682432 and 18446744073709551608 exceeds maximum object > size 9223372036854775807 [-Wstringop-overflow=] > 3578 | return n ? memset(s, c, n) : s; > | > > No idea if it is related but I thought I should mention it.This is known for an LTO build with gcc 14.2.x -- not normally used on Windows though. It is a over-aggressive warning, one we are working on for R-devel. -- Brian D. Ripley, ripley at stats.ox.ac.uk Emeritus Professor of Applied Statistics, University of Oxford