Description of problem: (note that gcc was picked as the component for this bug because R and R-Core (the stat packages) were not in the component drop-down list). Version-Release number of selected component (if applicable): R-3.2.2-2.fc23.x86_64 How reproducible: Start R Install a package that will require compilation (many, but not all) {Note that in my case I tried to build the package EGRET [install.packages("EGRET"), but this should fail for many packages} Steps to Reproduce: 1. Install R on fairly clean/new Fedora 23 2. Run R 3. Try to install packages which require compilation (gcc, gfortran, likely others) Actual results: Error messages result from the compiler because of use of flags. For example: gcc -m64 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c bit-ops.c -o bit-ops.o gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory /usr/lib64/R/etc/Makeconf:134: recipe for target 'bit-ops.o' failed make: *** [bit-ops.o] Error 1 ERROR: compilation failed for package ‘bitops’ and gfortran -m64 -fpic -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules -c bckslvmodified.f -o bckslvmodified.o gfortran: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory /usr/lib64/R/etc/Makeconf:158: recipe for target 'bckslvmodified.o' failed make: *** [bckslvmodified.o] Error 1 Expected results: R packages compile and install successfully. Additional info: Proposed solution: Add redhat-rpm-config as a dependency to either R, or the compiler packages (gcc, gfortran). Installing this package seems to fix the problem. See indirectly related issue and fix at https://community.gns3.com/thread/22847.
GCC itself does not add -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 , so it must come either from the rpm configuration, or some other tool like libtool or pkgconfig.
You probably know, but '%undefine _hardened_build' should work-around this issue.
Reassigning to R, if it sets -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 on builds then it needs to require it too. BTW see also bug 1218294, there appears to be a common theme here.
I'm not sure how you managed this. From the R.spec: %if 0%{?fedora} %global modern 1 %global hardening 1 %endif %package core Summary: The minimal R components necessary for a functional runtime Group: Applications/Engineering Requires: xdg-utils, cups # R inherits the compiler flags it was built with, hence we need this on hardened systems %if 0%{hardening} Requires: redhat-rpm-config %endif ***** Looking at the R-core-3.3.2-2.fc23 package: http://koji.fedoraproject.org/koji/rpminfo?rpmID=8470725 redhat-rpm-config shows up under Requires.