[Rd] Segmentation fault early in compilation of revision 85514

Avraham Adler @vr@h@m@@d|er @end|ng |rom gm@||@com
Sun Nov 12 22:59:27 CET 2023


When trying to compile R on Windows 10 64-bit using LTO as I always do, I
encountered a segmentation fault early in the compilation. I am uncertain
as to what it means (please see below for error extract). I am using the
most recent version of Rtools43 (5863) and updated its libraries prior to
starting the build. My EOPTS is " -march=native -pipe -mno-rtm" and my
LTO/LTO_OPT/LTO_FC/LTO_FC_OPT is "-flto=1 -fuse-linker-plugin".

Any explanation or suggestions would be appreciated.

Thank you,

Avi

```
installing zoneinfo
making console.d from console.c
making dynload.d from dynload.c
making embeddedR.d from embeddedR.c
making preferences.d from preferences.c
making psignal.d from psignal.c
making rui.d from rui.c
making system.d from system.c
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
console.c -o console.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
dynload.c -o dynload.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
editor.c -o editor.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
embeddedR.c -o embeddedR.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD
-I../library/grDevices/src -O3 -Wall -pedantic -march=native -pipe -mno-rtm
-flto=1 -fuse-linker-plugin   -c extra.c -o extra.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
opt.c -o opt.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
pager.c -o pager.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
preferences.c -o preferences.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
psignal.c -o psignal.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
rhome.c -o rhome.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
rt_complete.c -o rt_complete.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
rui.c -o rui.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
run.c -o run.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD  -O3 -Wall
-pedantic -march=native -pipe -mno-rtm -flto=1 -fuse-linker-plugin   -c
sys-win32.c -o sys-win32.o
gcc  -I../include -I. -I../extra -DHAVE_CONFIG_H -DR_DLL_BUILD
-DR_ARCH='"x64"' -O3 -Wall -pedantic -march=native -pipe -mno-rtm -flto=1
-fuse-linker-plugin   -c system.c -o system.o
windres   -I../include -i dllversion.rc -o dllversion.o
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/nm.exe: mlutils.o: no
symbols
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/nm.exe: log1p.o: no symbols
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/nm.exe: printf.o: no symbols
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/nm.exe: osdep.o: no symbols
gcc  -shared -O3 -Wall -pedantic -march=native -pipe -mno-rtm -flto=1
-fuse-linker-plugin -s -mwindows -o R.dll R.def console.o dynload.o
editor.o embeddedR.o extra.o opt.o pager.o preferences.o psignal.o rhome.o
rt_complete.o rui.o run.o shext.o sys-win32.o system.o dos_wglob.o
dllversion.o ../main/libmain.a ../appl/libappl.a ../nmath/libnmath.a
getline/gl.a ../extra/xdr/libxdr.a ../extra/intl/libintl.a
../extra/trio/libtrio.a ../extra/tzone/libtz.a ../extra/tre/libtre.a
-fopenmp -L. -lgfortran -lquadmath -lRblas -L../../bin/x64 -lRgraphapp
-lRiconv -lcomctl32 -lole32 -luuid -lwinmm -lversion
-L"/x86_64-w64-mingw32.static.posix"/lib/x64 -lpcre2-8 -lz -lbz2 -llzma
-L""/lib/x64 -lsicuin -lsicuuc
/x86_64-w64-mingw32.static.posix/lib/sicudt.a -lstdc++
rui.h:37:18: warning: type of 'RConsole' does not match original
declaration [-Wlto-type-mismatch]
   37 | LibExtern window RConsole;
      |                  ^
rui.c:51:9: note: type 'struct objinfo' should match type 'struct gui_obj'
   51 | console RConsole = NULL;
      |         ^
rui.c:51:9: note: 'RConsole' was previously declared here
rui.c:51:9: note: code may be misoptimized unless '-fno-strict-aliasing' is
used
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:81:
C:\rtools43\tmp\ccKMP0O7.ltrans26.ltrans.o] Error 1 (ignore
d)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:171:
C:\rtools43\tmp\ccKMP0O7.ltrans56.ltrans.o] Error 1 (ignor
ed)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:87:
C:\rtools43\tmp\ccKMP0O7.ltrans28.ltrans.o] Error 1 (ignore
d)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:96:
C:\rtools43\tmp\ccKMP0O7.ltrans31.ltrans.o] Error 1 (ignore
d)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:6:
C:\rtools43\tmp\ccKMP0O7.ltrans1.ltrans.o] Error 1 (ignored)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:195:
C:\rtools43\tmp\ccKMP0O7.ltrans64.ltrans.o] Error 1 (ignor
ed)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:18:
C:\rtools43\tmp\ccKMP0O7.ltrans5.ltrans.o] Error 1 (ignored
)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:117:
C:\rtools43\tmp\ccKMP0O7.ltrans38.ltrans.o] Error 1 (ignor
ed)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:189:
C:\rtools43\tmp\ccKMP0O7.ltrans62.ltrans.o] Error 1 (ignor
ed)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:69:
C:\rtools43\tmp\ccKMP0O7.ltrans22.ltrans.o] Error 1 (ignore
d)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:90:
C:\rtools43\tmp\ccKMP0O7.ltrans29.ltrans.o] Error 1 (ignore
d)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:36:
C:\rtools43\tmp\ccKMP0O7.ltrans11.ltrans.o] Error 1 (ignore
d)
make[5]: [C:\rtools43\tmp\ccUw2zA8.mk:99:
C:\rtools43\tmp\ccKMP0O7.ltrans32.ltrans.o] Error 1 (ignore
d)
during RTL pass: expand
../extra\trio/trio.c: In function 'TrioPower':
../extra\trio/trio.c:1261:1: internal compiler error: Segmentation fault
 1261 | }
      | ^
libbacktrace could not find executable to open
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
make[5]: *** [C:\rtools43\tmp\ccUw2zA8.mk:197:
C:\rtools43\tmp\ccKMP0O7.ltrans65.ltrans.o] Error 1
lto-wrapper.exe: fatal error: make returned 2 exit status
compilation terminated.
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: error: lto-wrapper
failed
collect2.exe: error: ld returned 1 exit status
make[4]: *** [Makefile:167: R.dll] Error 1
make[3]: *** [Makefile:187: ../../bin/x64/R.dll] Error 2
make[2]: *** [Makefile:115: rbuild] Error 2
make[1]: *** [Makefile:17: all] Error 2
make: *** [Makefile:392: distribution] Error 2
```

	[[alternative HTML version deleted]]



More information about the R-devel mailing list