Description of problem: Package do not compile due to compiler flag '-fno-merge-constants'. Failure occurred in directory xc/lib/font/bitmap, file bitmap.c Flag mentioned is not found neither in gcc 2.96, nor in gcc 3.0 How reproducible: Always Steps to Reproduce: 1.rpm --rebuild XFree86-4.1.0-0.8.6.src.rpm 2. 3. Actual Results: gcc -O2 -march=i386 -mcpu=i686 -pipe -ansi -pedantic -Wall -Wpointer-arith -fno-merge-constants -I../../../../include/fonts -I../../include -I../../../../programs/Xserver/include -I../../../../include -I../ -I../../../.. -I../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DFONTMODULE -DBDFFORMAT -DSNFFORMAT -DPCFFORMAT -c bitmap.c cc1: Unrecognized option `-fno-merge-constants' make[6]: *** [bitmap.o] Error 1 Expected Results: compilation OK Additional info:
You need to either: 1) Use gcc from rawhide or 2) Edit the spec file and remove the changes that were done to work with gcc string merging, prelinking #1 is recommended, unless this is for a production system, in which case it is not recommended to use 4.1.0 yet anyway. I've resolved this bug by making gcc >= 2.96-93 a buildprereq in the specfile.