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

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

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

Postby msjarrell » Sep 11th, '12, 19:02

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?
msjarrell
 
Posts: 12
Joined: Aug 22nd, '12, 05:31

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

Postby jimfenton » Oct 28th, '12, 16:29

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.
Last edited by jimfenton on Feb 9th, '13, 03:51, edited 1 time in total.
jimfenton
 
Posts: 1
Joined: Oct 28th, '12, 16:08

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

Postby tmb » Oct 28th, '12, 17:48

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
User avatar
tmb
 
Posts: 21
Joined: Mar 29th, '11, 22:13
Location: Finland

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

Postby badcoder » Dec 16th, '12, 22:23

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.
badcoder
 
Posts: 4
Joined: Dec 16th, '12, 22:10

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

Postby martinw » Dec 16th, '12, 22:47

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 ;)
martinw
 
Posts: 608
Joined: May 14th, '11, 10:59

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

Postby badcoder » Dec 16th, '12, 23:39

After kernel sources was installed make menuconfig is working but with xconfig I get the same error.
badcoder
 
Posts: 4
Joined: Dec 16th, '12, 22:10

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

Postby martinw » Dec 17th, '12, 23:11

Have you installed the qt4-devel package, as tmb suggests above?
martinw
 
Posts: 608
Joined: May 14th, '11, 10:59

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

Postby badcoder » Dec 19th, '12, 09:02

Yes.
badcoder
 
Posts: 4
Joined: Dec 16th, '12, 22:10

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

Postby martinw » Dec 20th, '12, 20:58

Well, 'make menuconfig' may not be very pretty, but it does the job. I've never used anything else.
martinw
 
Posts: 608
Joined: May 14th, '11, 10:59

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

Postby msjarrell » Jun 8th, '13, 18:57

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.
msjarrell
 
Posts: 12
Joined: Aug 22nd, '12, 05:31


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest