gcc: fatal error: /usr/lib/rpm/redhat/redhat-hardened-cc1: attempt to rename spec 'cc1_options' to already defined spec 'rh_cc1_options_old' compilation terminated. Compilation of scanner failed: make[3]: *** [scan-build.stamp] Error 1 for which the fix is apparently to remove CFLAGS and LDFLAGS from a line because they got specified already in the definition of GTKDOC_CC and GTKDOC_LD: diff -up NetworkManager-0.9.8.1/gtk-doc.make.foo NetworkManager-0.9.8.1/gtk-doc.make --- NetworkManager-0.9.8.1/gtk-doc.make.foo 2013-04-30 15:16:13.049980141 -0500 +++ NetworkManager-0.9.8.1/gtk-doc.make 2013-04-30 15:17:41.525874040 -0500 @@ -108,7 +108,7 @@ scan-build.stamp: $(HFILE_GLOB) $(CFILE_ scanobj_options="--verbose"; \ fi; \ fi; \ - CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ + CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" \ gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ else \ for i in $(SCANOBJ_FILES) ; do \
this is a deficiency of the way the hardened build macro is implemented. I proposed a fix for that here: https://bugzilla.redhat.com/show_bug.cgi?id=892837
*** This bug has been marked as a duplicate of bug 892837 ***