failed build using module-assistant

Bug #300917 reported by John Pye
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kqemu (Ubuntu)
New
Undecided
Unassigned

Bug Description

I couldn't manage to build kqemu-source using module-assistant. It gave me a message about being unable to find the source code, even though I had installed kqemu-source and followed the instructions in README.Debian.

I cd'ed to the source direction and ./configure && make install and it appears to work fine. But the module-assistant technique seems to be broken.

This was on a system recently upgraded to Ubuntu Intrepid.

Revision history for this message
Jason Ash (wizardofki) wrote :

I'm having this same problem in Jaunty (9.04). I tried to follow the instructions on https://help.ubuntu.com/community/WindowsXPUnderQemuHowTo, and I have the kqemu-source and kqemu-common installed. These instructions worked perfectly in Ubuntu 8.04, but after I upgraded to 9.04 (fresh install), I experienced this problem upon trying to re-setup kquemu. Here's the output of the terminal:

jason@jason-laptop:~$ sudo module-assistant prepare
Getting source for kernel version: 2.6.28-13-generic
Kernel headers available in /usr/src/linux-headers-2.6.28-13-generic
Creating symlink...
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!
jason@jason-laptop:~$ sudo module-assistant auto-install kqemu

Updated infos about 1 packages
Getting source for kernel version: 2.6.28-13-generic
Kernel headers available in /usr/src/linux
Creating symlink...
Couldn't create the /usr/src/linux symlink!
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!
unpack
The source tarball could not be found!
Package kqemu-source not installed?
Running "m-a -f get kqemu-source" may help.
"/usr/share/modass/packages/default.sh" build KVERS=2.6.28-13-generic
KSRC=/usr/src/linux-headers-2.6.28-13-generic KDREV=2.6.28-13.45
kdist_image
jason@jason-laptop:~$

Revision history for this message
Jason Ash (wizardofki) wrote :
Download full text (4.1 KiB)

BTW, trying the alternative method of installing from /usr/src/kqemu did not work either. Make clean was necessary because choosing make again didn't do anything (make:nothing to be done for 'all'.) See terminal output below:

jason@jason-laptop:/usr/src$ ls
kqemu-1.4.0~pre1 linux-OLDVERSION.1247445960
linux-headers-2.6.28-11 linux-OLDVERSION.1247445973
linux-headers-2.6.28-11-generic linux-OLDVERSION.1247446470
linux-headers-2.6.28-13 linux-OLDVERSION.1247447415
linux-headers-2.6.28-13-generic linux-OLDVERSION.1247447431
linux-OLDVERSION.1247440843 linux-OLDVERSION.1247448443
linux-OLDVERSION.1247441546 linux-OLDVERSION.1247448459
linux-OLDVERSION.1247441573 linux-OLDVERSION.1247448636
linux-OLDVERSION.1247442304 linux-OLDVERSION.1247450572
linux-OLDVERSION.1247442327 linux-OLDVERSION.1247453417
linux-OLDVERSION.1247443244 linux-OLDVERSION.1247453428
linux-OLDVERSION.1247443275 modules
jason@jason-laptop:/usr/src$ cd kqemu-1.4.0~pre1/
jason@jason-laptop:/usr/src/kqemu-1.4.0~pre1$ sudo ./configure
Source path /usr/src/kqemu-1.4.0~pre1
C compiler gcc
Host C compiler gcc
make make
host CPU i386

kernel sources /lib/modules/2.6.28-13-generic/build
kbuild type 2.6
jason@jason-laptop:/usr/src/kqemu-1.4.0~pre1$ sudo make
make: Nothing to be done for 'all'.
jason@jason-laptop:/usr/src/kqemu-1.4.0~pre1$ sudo make clean
make -C common clean
make[1]: Entering directory `/usr/src/kqemu-1.4.0~pre1/common'
rm -f *.o *~ monitor-image.h genoffsets genmon monitor_def.h \
          monitor-image.bin monitor-image.out \
          i386/*.o x86_64/*.o
make[1]: Leaving directory `/usr/src/kqemu-1.4.0~pre1/common'
rm -f kqemu.ko *.o *~
jason@jason-laptop:/usr/src/kqemu-1.4.0~pre1$ sudo make
make -C common all
make[1]: Entering directory `/usr/src/kqemu-1.4.0~pre1/common'
gcc -Wall -O2 -Werror -g -D__KERNEL__ -I.. -o genoffsets genoffsets.c
./genoffsets > monitor_def.h
gcc -D__KERNEL__ -nostdinc -iwithprefix include -I. -I..
-D__ASSEMBLY__ -c -o i386/nexus_asm.o i386/nexus_asm.S
gcc -D__KERNEL__ -nostdinc -iwithprefix include -I. -I..
-D__ASSEMBLY__ -c -o i386/monitor_asm.o i386/monitor_asm.S
gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror
-fno-stack-protector -D__KERNEL__ -nostdinc -iwithprefix include
-I. -I.. -c -o monitor.o monitor.c
gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror
-fno-stack-protector -D__KERNEL__ -nostdinc -iwithprefix include
-I. -I.. -c -o monitor-utils.o monitor-utils.c
gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror
-fno-stack-protector -D__KERNEL__ -nostdinc -iwithprefix include
-I. -I.. -c -o interp.o interp.c
ld -T i386/monitor.ld -o monitor-image.out i386/nexus_asm.o
i386/monitor_asm.o monitor.o monitor-utils.o interp.o
objcopy -O binary monitor-image.out monitor-image.bin
gcc -Wall -O2 -Werror -g -o genmon genmon.c
./genmon < monitor-image.bin > monitor-image.h
gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror
-D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o kernel.o
kernel.c
gcc -D__KERNEL__ -nostdinc -iwithprefix include -I. -I..
-D__ASSE...

Read more...

Revision history for this message
Jason Ash (wizardofki) wrote :

The build still failed using module-assistant, but the compile method works after all. 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.