make-kpkg fails compiling on Ubuntu/GFS step

Bug #287172 reported by Rakotomandimby Mihamina
This bug report is a duplicate of:  Bug #393768: [patch] Unable to make-kpg clean. Edit Remove
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

I had to recomplie a kernel, by changing one line in the sis190.c file.

I am not used with the git way, I'd rather "apt-get linux-source" and "fakeroot make-kpkg" my kernel compilation.

The compilation first failed on some Xen parts, then I removed paravirtualisation from the configuration. Then I enountered some MODSTOP mismatches about GFS. They are in the Ubuntu contribution of the source and I removed them (I dont use GFS). Then the compilation went on.

So, the current linux source package (2.6.27) is broken and wont compile. May be, if I tried with the GIT one, it would have been better. But I had no time to learn using GIT just for changing one line in a .c file.

Revision history for this message
Rakotomandimby Mihamina (tech-infogerance) wrote :

I had to recompile in order to solve my problem here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/247889

Revision history for this message
pablomme (pablomme) wrote :

You don't need to recompile the whole kernel to get a patched driver. For example, to patch sis190.ko under 2.6.24 I just do:

1$ apt-get source linux-image-$(uname -r)
2$ cd linux-2.6.24
3$ cp /boot/config-$(uname -r) .config
  4 [ patch sis190.c ]
5$ make drivers/net/sis190.ko

and that's that.

Now, regarding the actual bug you're reporting, I've compiled previous versions of 2.6.27 without problems. Are you doing it "the Ubuntu way"? I do exactly the following

1$ wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_2.6.27.orig.tar.gz
2$ wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_2.6.27-7.13.diff.gz
3$ tar xzvf linux_2.6.27.orig.tar.gz
4$ patch -p0 < <(gunzip -c linux_2.6.27-7.13.diff.gz)
5$ cd linux-2.6.27
6$ chmod u+x debian/rules debian/scripts/misc/splitconfig.pl
7$ debian/rules updateconfigs
  8 [ patch things ]
9$ AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-generic

Note that steps 1-4 I do because I'm on Hardy. You should be able to use "apt-get source linux-image-$(uname -r)" instead. Step 6 I need to do for some reason.

This should produce the .deb files you need in order to install your kernel cleanly. Refer to https://help.ubuntu.com/community/Kernel/Compile for more info, especially the restricted modules which you may also want.

If you follow the procedure above, do you still get an error?

Revision history for this message
Rakotomandimby Mihamina (tech-infogerance) wrote :

This is what I performed, from an Intrepid clean install:

    # apt-get source linux-source
    # apt-get build-dep linux-source
    # cd /usr/src/
    # tar xjf linux-source-2.6.27.tar.bz2
    # cd linux-source-2.6.27
    # cp /boot/config-2.6.27-7-generic .config
    # make-kpkg clean;
    # export CONCURRENCY_LEVEL=8
    # fakeroot make-kpkg --initrd --append-to-version=-infogerance kernel-image kernel-headers
    [...]
    ====== making target CONFIG-arch [new prereqs: stamp-arch-conf]======
    ====== making conf.vars because of Makefile .config ======
    Makefile:528: /usr/src/linux-source-2.6.27/arch/xen/Makefile: No such file or directory
    make[1]: *** No rule to make target `/usr/src/linux-source-2.6.27/arch/xen/Makefile'. Stop.
    make: *** [conf.vars] Error 2

Then I go and remove the Virtualisation at the root section of the config, and also the one in the "processors types and features" section options in the kernel configuration, and then save the conf into ".config".
Then:

    # make-kpkg clean;
    # fakeroot make-kpkg --initrd --append-to-version=-infogerance kernel-image kernel-headers

Well.. when i did it again, no GFS error...

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

[This is an automated message. Apologies if it has reached you inappropriately.]

This bug was reported against the linux-meta package when it likely should have been reported against the linux package instead. We are automatically transitioning this to the linux kernel package so that the appropriate teams are notified and made aware of this issue. Thanks.

affects: linux-meta (Ubuntu) → linux (Ubuntu)
Revision history for this message
Test-tools (roland-verifysoft) wrote :

Same happens with Karmic, using both linux-source or Ubuntu git. 2.6.30..
Directory ubuntu/gfs/ simple doesn't exist.

Revision history for this message
Test-tools (roland-verifysoft) wrote :

Hello,
did following:
 mkdir ubuntu/gfs
 touch ubunut/gfs/Makefile
works.
Roland

Revision history for this message
Test-tools (roland-verifysoft) wrote :

Hello,

the correct patch for this issue is attached in bug #393768

Now we have to find someone, who applies...

 Roland "Test-tools" Bär

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

I'm going to mark this as a duplicate to bug 393768. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.