Compiled on X8DTU with 2 physical Intel Xeon E5530 CPU (8C16T) Dependencies: compiletc gfortran Xorg-7.7-dev pth-dev pcre2-dev boost-1.74-dev curl-dev libjpeg-turbo-dev tiff-dev libtirpc-dev miktex texinfo ### Note: at the time of writting, texinfo depends on older perl5 ### I downgrade to previous version (5.28.0) ### loadable library and perl binaries are mismatched (got handshake key 0xce00080, needed 0xed00080) Commands: # setup miktex first # if you don't want to keep miktex in it latter on # backup your mydata.tgz with a different name # Note that if you're running miktex for the first time # due to a bug that had yet to be fixed # you have to load it in copy mode # tce-load -ci miktex # then open miktex-console in GUI # choose the install mode # It's recommended to install locally # test run R configure in a GUI terminal # a dialog would popup, install those missing packages # backup with filetool then reboot # now the miktex extension can be loaded normally tar xf R-4.0.5.tar.xz cd R-4.0.5 # Note: don't do 'mkdir build && cd build' or it may not build CC='gcc -mtune=generic' CXX='gcc -mtune=generic' CFLAGS='-Os -pipe -fuse-linker-plugin -flto' CXXFLAGS='-Os -pipe -fuse-linker-plugin -flto' FCFLAGS='-mtune=generic -Os -pipe' LDFLAGS='-Wl,-O1' ./configure --prefix=/usr/local LIBnn=lib --with-gnu-ld --enable-static sed -i '/CFLAGS/ s: -O3::' ./src/gnuwin32/Makefile ./src/gnuwin32/front-ends/Makefile sed -i '/FFLAGS/ s:-O[23] ::' ./src/gnuwin32/Makefile # if you don't want to build doc # you could remove the target # sed -i '/SUBDIRS/ s: doc::' Makefile # however, you should, otherwise R gets quirkey time make -j15 real 8m 4.11s user 16m 9.34s sys 0m 38.92s make DESTDIR=/tmp/r install # REMOVE LTO from the setting # by Makeconf sed -i 's/ -flto $(LTO)/ $(LTO)/g' usr/local/lib/R/etc/Makeconf sed -i '/LTCFLAGS/s: -flto::' usr/local/lib/R/bin/libtool ============================================================================================================================================ R is now configured for x86_64-pc-linux-gnu Source directory: . Installation directory: /usr/local C compiler: gcc -mtune=generic -Os -pipe -fuse-linker-plugin -flto Fortran fixed-form compiler: gfortran -fno-optimize-sibling-calls -mtune=generic -Os -pipe Default C++ compiler: gcc -mtune=generic -std=gnu++11 -Os -pipe -fuse-linker-plugin -flto C++14 compiler: gcc -mtune=generic -std=gnu++14 -Os -pipe -fuse-linker-plugin -flto C++17 compiler: gcc -mtune=generic -std=gnu++17 -Os -pipe -fuse-linker-plugin -flto C++20 compiler: gcc -mtune=generic -std=gnu++20 -Os -pipe -fuse-linker-plugin -flto Fortran free-form compiler: gfortran -fno-optimize-sibling-calls -mtune=generic -Os -pipe Obj-C compiler: Interfaces supported: X11, tcltk External libraries: pcre2, readline, curl Additional capabilities: PNG, JPEG, TIFF, NLS, ICU Options enabled: shared BLAS, R profiling Capabilities skipped: cairo Options not enabled: memory profiling Recommended packages: yes configure: WARNING: I could not determine a browser configure: WARNING: I could not determine a PDF viewer