kernel-package does not compile linux-kernel-2.6.27

Bug #281699 reported by murrayf on 2008-10-11
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kernel-package (Debian)
Fix Released
Unknown
kernel-package (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: kernel-package

Trying to compile linux-kernel-2.6.27 ubuntu way using kernel-package-11.001-0.1 in intrepid:
root@mdr:/usr/src/linux# make-kpkg clean
exec debian/rules DEBIAN_REVISION=5:10.Custom clean
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 3: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator

====== making target CLN-common [new prereqs: testdir]======

====== making target CLN-common [new prereqs: ]======
/usr/bin/make -f ./debian/rules real_stamp_clean
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 3: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
make[1]: se ingresa al directorio `/usr/src/linux-2.6.27'
====== making target real_stamp_clean [new prereqs: ]======
running clean
test ! -f scripts/package/builddeb.kpkg-dist || \
          mv -f scripts/package/builddeb.kpkg-dist scripts/package/builddeb
test ! -f scripts/package/Makefile.kpkg-dist || \
          mv -f scripts/package/Makefile.kpkg-dist scripts/package/Makefile
test ! -f .config || cp -pf .config config.precious
test ! -f Makefile || \
            /usr/bin/make ARCH=xen distclean
make[2]: se ingresa al directorio `/usr/src/linux-2.6.27'
Makefile:518: /usr/src/linux-2.6.27/arch/xen/Makefile: No existe el fichero ó directorio
make[2]: *** No hay ninguna regla para construir el objetivo `/usr/src/linux-2.6.27/arch/xen/Makefile'. Alto.
make[2]: se sale del directorio `/usr/src/linux-2.6.27'
make[1]: *** [real_stamp_clean] Error 2
make[1]: se sale del directorio `/usr/src/linux-2.6.27'
make: *** [CLN-common] Error 2
root@mdr:/usr/src/linux#
------------------------------------
root@mdr:/usr/src/linux# make-kpkg --initrd kernel_image kernel_headers
exec debian/rules DEBIAN_REVISION=2.6.27-10.00.Custom INITRD=YES kernel_image kernel_headers
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 3: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator
[: 1: 2: unexpected operator

====== making target CONFIG-common [new prereqs: testdir]======

====== making target debian/stamp-conf [new prereqs: ]======
# work around idiocy in recent kernel versions
test ! -e scripts/package/builddeb || \
            mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist
test ! -e scripts/package/Makefile || \
            (mv -f scripts/package/Makefile scripts/package/Makefile.kpkg-dist && \
               (echo "# Dummy file "; echo "help:") > scripts/package/Makefile)
test -d debian || mkdir ./debian
test ! -e stamp-building || rm -f stamp-building
test ! -f ./debian || test -f stamp-debian || test -f debian/official || \
               (rm -rf ./debian && mkdir ./debian)
test -f stamp-debian || \
          ( test -f debian/official && test -f debian/control) || \
    sed -e 's/=V/../g' -e 's/=D/2.6.27-10.00.Custom/g' \
        -e 's/=A/amd64/g' -e 's/=SA//g' \
                -e 's/=L/grub,xen-vm, /g' -e 's/=I/initramfs-tools (>= 0.53) | yaird (>= 0.0.11) | linux-initramfs-tool, /g' \
                -e 's/=CV/./g' \
                -e 's/=M/Unknown Kernel Package Maintainer <email address hidden>/g' \
                -e 's/=ST/linux/g' -e 's/=B/xen/g' \
           /usr/share/kernel-package/Control> debian/control
test -f stamp-debian || test -f debian/official || \
           sed -e 's/=V/../g' -e 's/=D/2.6.27-10.00.Custom/g' \
     -e 's/=A/amd64/g' -e 's/=M/Unknown Kernel Package Maintainer <email address hidden>/g' \
            -e 's/=ST/linux/g' -e 's/=B/xen/g' \
  /usr/share/kernel-package/changelog > debian/changelog
test -f debian/rules || install -p -m 755 /usr/share/kernel-package/rules debian/rules
test -f stamp-debian || test -f debian/official || \
    for file in ChangeLog Control Control.bin86 config templates.in rules; do \
               cp -f /usr/share/kernel-package/$file ./debian/; \
           done
test -f stamp-debian || test -f debian/official || \
    for dir in Config docs examples ruleset scripts pkg po; do \
             cp -af /usr/share/kernel-package/$dir ./debian/; \
           done
echo done > stamp-debian
echo done > debian/stamp-conf
====== making target CONFIG-common [new prereqs: stamp-conf]======
This is kernel package version 11.001-0.1.
====== making target stamp-arch-conf [new prereqs: CONFIG-common]======

====== making target CONFIG-arch [new prereqs: stamp-arch-conf]======
====== making target conf.vars [new prereqs: Makefile .config]======

Makefile:518: /usr/src/linux-2.6.27/arch/xen/Makefile: No existe el fichero ó directorio
make[1]: *** No hay ninguna regla para construir el objetivo `/usr/src/linux-2.6.27/arch/xen/Makefile'. Alto.
make: *** [conf.vars] Error 2
root@mdr:/usr/src/linux#

Thx,

Alberto.

murrayf (murrayf07) wrote :
murrayf (murrayf07) on 2008-10-11
description: updated
Splex (splex) wrote :

I was having a similar issue, notice in your log when you run make-kpkg it is trying to build with ARCH=xen.
Try adding --arch=amd64 or --arch=i386 when calling make-kpkg. That got me past this issue.

I have sucessfully compiled kernel 2.6.27.1 using kernel-package
disabling XEN (CONFIG_XEN=n) in .config.

THX,

Alberto.

El sáb, 18-10-2008 a las 00:50 +0000, Splex escribió:
> I was having a similar issue, notice in your log when you run make-kpkg it is trying to build with ARCH=xen.
> Try adding --arch=amd64 or --arch=i386 when calling make-kpkg. That got me past this issue.
>

______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y m�es desde 1 c�imo por minuto.
http://es.voice.yahoo.com

techmin (info-techemia) wrote :

This is related to this debian bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446879

Add --arch=am64 --subarch=x86_64 when calling make-kpkg

mokabar (tim-klingt) wrote :

according to the debian bug report, this has been fixed in version 11.003 ... maybe it is possible to update the package to this version?

Ulrich Lukas (ulrich-lukas) wrote :

Hi, I had the problem, too.

The updated Debian package works.

Tested with:

-> kernel-package (11.015)
-> debianutils (2.30)

Changed in kernel-package:
status: New → Confirmed
Changed in kernel-package:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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