rstudio/websocket

install via remotes::install_github does not compile

simonheb opened this issue · 1 comments

I get the following error on Windows 10:

s/R/win-library/3.6/later/include"     -DSTRICT_R_HEADERS   -O2 -Wall  -mtune=core2 -gdwarf-2 -g -O0 -fno-omit-frame-pointer -c websocket_connection.cpp -o websocket_connection.o
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/as.exe: websocket_connection.o: too many sections (43091)
C:\Users\...\AppData\Local\Temp\cc8wORht.s: Assembler messages:
C:\Users\...\AppData\Local\Temp\cc8wORht.s: Fatal error: can't write websocket_connection.o: File too big
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/as.exe: websocket_connection.o: too many sections (43091)
C:\Users\...\AppData\Local\Temp\cc8wORht.s: Fatal error: can't close websocket_connection.o: File too big
make: *** [C:/PROGRA~1/R/R-36~1.3/etc/x64/Makeconf:215: websocket_connection.o] Error 1
ERROR: compilation failed for package 'websocket'

Let me know if there's other info required to debug this.

Adding -O3 to the flags in ~/.R/Makevars (on Win this is in C:\Users\...\Documents) solved this for me.