Page 1 of 1

Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Sep 11th, '12, 19:02
by msjarrell
I would like to compile a custom kernel for my laptop. However, neither "make xconfig" nor "make gconfig" appear to work, and I would rather not use "make menuconfig" since it is rather cumbersome. Make xconfig will not work since there is no qt3-devel package available for installation. However, I have installed the usual packages to enable "make gconfig" but I still receive the error
Code: Select all
make gconfig
make[1]: *** No rule to make target `scripts/kconfig/gconf', needed by `gconfig'.  Stop.
make: *** [gconfig] Error 2

Has anyone managed to get "make gconfig" to work, and if so, could you tell me which devel packages had to be installed?

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Oct 28th, '12, 16:29
by jimfenton
It appears to be a problem in scripts/kconfig/Makefile
Code: Select all
ifeq ($(MAKECMDGOALS),xconfig)
   qconf-target := 1
endif
ifeq ($(MAKECMDGOALS),gconfig)
   gconf-target := 1
endif

3rdparty/Makefile:
   pushd $(srctree)/3rdparty ; $(PERL) ./mkbuild.pl ; popd

ifeq ($(qconf-target),1)
   hostprogs-y += qconf
endif

ifeq ($(gconf-target),1)
   hostprogs-y += gconf
endif

Try moving the contents of the second pair of ifeq statements into the first pair.
Code: Select all
ifeq ($(MAKECMDGOALS),xconfig)
   qconf-target := 1
   hostprogs-y += qconf
endif
ifeq ($(MAKECMDGOALS),gconfig)
   gconf-target := 1
   hostprogs-y += gconf
endif

3rdparty/Makefile:
   pushd $(srctree)/3rdparty ; $(PERL) ./mkbuild.pl ; popd

I was able make xconfig with this change.

Update 8 Feb 13: I had to do the same thing with the 3.4.24 kernel.

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Oct 28th, '12, 17:48
by tmb
I cant reproduce the problem :/

if you install qt4-devel "make xconfig" should work

for gconfig to work you need: gtk+2.0-devel, glade2.0_0-devel, glib2.0-devel

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Dec 16th, '12, 22:23
by badcoder
I have similar situation. Can't run make xconfig command:
Code: Select all
make[1]: *** No rule to make target "scripts/kconfig/qconfig", needed by "xconfig".Stop.
make: *** [xconfig] Error 2


And make menuconfig don`t working too. After this command is executed nothing happens.
Kernle sources is located in /usr/src/linux-3.3.8-desktop-2.mga2/ directory.

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Dec 16th, '12, 22:47
by martinw
I think you have only installed the kernel headers package. If you install the full kernel sources, they should be found in /usr/src/linux-3.3.8-2.mga2. You can't build the kernel with just the headers ;)

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Dec 16th, '12, 23:39
by badcoder
After kernel sources was installed make menuconfig is working but with xconfig I get the same error.

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Dec 17th, '12, 23:11
by martinw
Have you installed the qt4-devel package, as tmb suggests above?

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Dec 19th, '12, 09:02
by badcoder
Yes.

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Dec 20th, '12, 20:58
by martinw
Well, 'make menuconfig' may not be very pretty, but it does the job. I've never used anything else.

Re: Kernel Compile, "make xconfig" and "make gconfig" fail

PostPosted: Jun 8th, '13, 18:57
by msjarrell
This problem persists for "make xconfig" in Mageia 3 with kernel-source-3.8.13-1.mga3-1-1.mga3 and qt4-devel installed. However, the solution proposed by jimfenton continues to work.