Ask Your Question

Fedora Make options cause build to fail

asked 2014-04-30 15:42:24 -0500


I'm trying to get a GnuBatch package into Fedora, which is currently being reviewed. One of the points raised in the review was that I was running make without any Fedora options. I've added these as requested so the make line now looks like:

make %{?_smp_mflags} CFLAGS="%{optflags}" BINDIR=%{_bindir}

FYI these expand out to :

make -j4 CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic" BINDIR=/usr/bin

However with these options the build is now failing where is was working fine before using just make. The errors are related to being unable to find the header files (i.e. config.h). I've tried added -I option pointing to the header directory but this did not help.

What I don't understand is why this worked before, where as with these make options set the build now fails. Any pointers much appreciated as I'm just going in circles here trying to resolve this problem.

Many thanks, Jon

edit retag flag offensive close merge delete


This is an example of the type of error I'm getting:

make[4]: Entering directory `/home/jon/rpmbuild/BUILD/gnubatch-1.10/util' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o helpparse.o helpparse.c helpparse.c:18:20: fatal error: config.h: No such file or directory #include "config.h" ^ helpparse.c:18:20: fatal error: config.h: No such file or directory #include "config.h"

jondkent gravatar imagejondkent ( 2014-04-30 15:45:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-04-30 16:36:49 -0500

This is probably a better question for your reviewer/sponsor or - you might get an answer, of course, but the platform is targeted more towards end user support.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-04-30 15:42:24 -0500

Seen: 140 times

Last updated: Apr 30 '14