You are not logged in.

#1 2008-03-11 22:02:38

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Makepkg fails on custom kernel.

Hi.

I'm trying to compile the arch kernel with a few added patches to increase battery life.

What I have done is: Installed abs, and ran ABS as root. Then I made a directory called kernel, copied the kernel26 from ABS to that directory (so kernel had a subdirectory called kernel26).

Then I ran this script (changed the name to mine) in the kernel (not kernel26) folder, which created a new kernel26-gigamo folder.

What I did next was copy these four patches to that directory, and added them in to the pkgbuild:

avoid-overflows-in-kernel-timec.patch
clockevent-simplify-list-operations.patch
uvesafb-small-cleanups.patch
writeback-speed-up-writeback-of-big-dirty-files.patch

(they come from here)

My PKGBUILD:

# $Id: PKGBUILD,v 1.294 2008/03/05 14:44:07 tpowa Exp $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=kernel26-gigamo
_basekernel=2.6.24
pkgver=2.6.24.3
pkgrel=3
pkgdesc="The Linux Kernel and modules"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
backup=('boot/kconfig26-gigamo' etc/mkinitcpio.d/${pkgname}.preset etc/mkinitcpio.d/${pkgname}-fallback.conf)
depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.15')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26-gigamo now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-gigamo-scsi'
          'alsa-driver' 'ieee80211' 'hostap-driver26'
          'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
      'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs')
md5sums=('')

install=kernel26-gigamo.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-$pkgver.bz2
    ### next two lines only needed for rc kernel building
    #http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.24-rc6.bz2
    #http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.24-rc6-git2.bz2
    # the main kernel config files
    config config.x86_64
    # the archlinux boot logos
    logo_linux_clut224.ppm
    logo_linux_mono.pbm
    logo_linux_vga16.ppm
    # standard config files for mkinitcpio ramdisk
    kernel26-gigamo.preset
    mkinitcpio-$pkgname.conf
    # add possibility to load your own dsdt acpi table
    acpi-dsdt-initrd-v0.8.4-2.6.21.patch
    # own patches
    avoid-overflows-in-kernel-timec.patch
    clockevent-simplify-list-operations.patch
    uvesafb-small-cleanups.patch
    writeback-speed-up-writeback-of-big-dirty-files.patch 
    # fix bluetooth on some toshiba notebooks
    toshiba-bluetooth.patch
    # add additional unusual usb entry
    usb-storage-unusual-devs.patch
    # improve intel macintosh support
    mactel-linux-2.6.24.patch
    # fix broken acpi c states on buggy bioses, which violate acpi specification
    acpi-buggy-bios.patch
    # add squashfs and unionfs
    http://heanet.dl.sourceforge.net/sourceforge/squashfs/squashfs3.3.tar.gz
    http://download.filesystems.org/unionfs/stable/unionfs-2.2.4_for_2.6.24.2.diff.gz
    # patch below for aufs compatibility
    lhash-2.6.24.patch
    put_filp-2.6.24.patch
    sec_perm-2.6.24.patch
    splice-2.6.24.patch
    #put_filp.patch
    # add possibility to undervolt certain cpus
    linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch
    # adding genpatches from gentoo
    2000_no-if-addrlabel.patch
    2100_sd-sr-medium-detection.patch
    2101_sr-follow-tray-status.patch
    2102_sr-test-unit-ready.patch
    2300_pci-use-conf1.patch
    2400_e1000e-crc-stripping.patch
    2405_sis190-eeprom-mac.patch
    2500_arcmsr-dma-coherent-warnings.patch
    2700_alsa-hda-lifebook-e8410.patch
    # fix Leadtek_WinFast_2000
    winfast-2000.patch
    # fix fuse
    fuse-2.6.24.patch
    # fix ata limit
    ata-2.6.24.patch
    # fix keymap
    keymap-2.6.24.patch
    # fix some sis agp ids
    sis671-intelgly-2.6.24.patch
)

build() {
  [ "${CARCH}" = "i686" ]   && KARCH=x86
  [ "${CARCH}" = "x86_64" ] && KARCH=x86

  cd $startdir/src/linux-$_basekernel
  # add upstream patch from 2.6.24 series
  patch -Np1 -i ../patch-$pkgver || return 1

  # add queued patches for 2.6.24 series
  #http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
  #patch -Np1 -i ../pre-2.6.24.3.patch || return 1
  ### next 2 lines are only needed for rc kernels
  #patch -Np1 -i ../patch-$pkgver-rc6 || return 1
  #patch -Np1 -i ../patch-2.6.24-rc6-git2 || return 1

  # add custom acpi dsdt patch, in reference to:
  # http://gaugusch.at/kernel.shtml
  # http://acpi.sourceforge.net
  patch -Np1 -i ../acpi-dsdt-initrd-v0.8.4-2.6.21.patch || return 1

  # fix enabling of bluetooth on some toshiba notebooks in reference to:
  # http://bugs.archlinux.org/task/5608
  # http://www.cwrose.de/toshiba/s5200.html#bluetooth
  patch -Np1 -i ../toshiba-bluetooth.patch || return 1

  # fix I/O errors with Teac HD-35PU devices
  patch -Np1 -i ../usb-storage-unusual-devs.patch || return 1

  # improve intel macintosh support, in reference to:
  # http://www.mactel-linux.org/wiki/Main_Page
  # http://mactel-linux.svn.sourceforge.net/viewvc/mactel-linux/trunk/kernel/
  patch -Np1 -i ../mactel-linux-2.6.24.patch || return 1

  # add possibility to undervolt certain cpus, in reference to:
  # https://www.dedigentoo.org/trac/linux-phc/
  patch -Np1 -i ../linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch || return 1

  # fix buggy bios acpi to get c states, which violate acpi specification, in reference to:
  # http://bugzilla.kernel.org/show_bug.cgi?id=7578
  # http://bugs.archlinux.org/task/6875
  patch -Np1 -i ../acpi-buggy-bios.patch || return 1

  # fix Leadtek_WinFast_2000
  # in reference to: 
  # http://www.linuxtv.org/v4lwiki/index.php/Leadtek_WinFast_2000
  patch -Np0 -i ../winfast-2000.patch || return 1

  # fix fuse
  # in reference to:
  # http://groups.google.com/group/linux.kernel/msg/20cd4e76b289d738
  patch -Np1 -i ../fuse-2.6.24.patch || return 1

  # fix keymaps
  # in reference to:
  # http://bugzilla.kernel.org/show_bug.cgi?id=10143
  # http://bugs.archlinux.org/task/9593
  patch -Np1 -i ../keymap-2.6.24.patch || return 1

  # fix sis ids
  # in reference to:
  # http://www.linuxconsulting.ro/xorg-drivers/
  # http://bugs.archlinux.org/task/9655
  patch -Np1 -i ../sis671-intelgly-2.6.24.patch || return 1

  # fix some ata limits
  # http://bugs.archlinux.org/task/9386
  # in reference to:
  # http://www.mail-archive.com/linux-ide%40vger.kernel.org/msg14722.html
  patch -Np2 -i ../ata-2.6.24.patch || return 1

  # adding some genpatches from gentoo, in reference to:
  # http://sources.gentoo.org/viewcvs.py/linux-patches/genpatches-2.6/trunk/2.6.24/
  patch -Np1 -i ../2000_no-if-addrlabel.patch || return 1
  patch -Np1 -i ../2100_sd-sr-medium-detection.patch || return 1
  patch -Np1 -i ../2101_sr-follow-tray-status.patch || return 1
  patch -Np1 -i ../2102_sr-test-unit-ready.patch || return 1
  patch -Np1 -i ../2300_pci-use-conf1.patch || return 1
  patch -Np1 -i ../2400_e1000e-crc-stripping.patch || return 1
  patch -Np1 -i ../2405_sis190-eeprom-mac.patch || return 1
  patch -Np1 -i ../2500_arcmsr-dma-coherent-warnings.patch || return 1
  patch -Np1 -i ../2700_alsa-hda-lifebook-e8410.patch || return 1

  # own patches
  patch -Np1 -i ../avoid-overflows-in-kernel-timec.patch || return 1
  patch -Np1 -i ../clockevent-simplify-list-operations.patch || return 1
  patch -Np1 -i ../uvesafb-small-cleanups.patch || return 1
  patch -Np1 -i ../writeback-speed-up-writeback-of-big-dirty-files.patch || return 1

  # add sqashfs support, in reference to:
  # http://squashfs.sourceforge.net/
  patch -Np1 -i ../squashfs3.3/kernel-patches/linux-2.6.24/squashfs3.3-patch || return 1

  # add unionfs support. in reference to:
  # http://www.fsl.cs.sunysb.edu/project-unionfs.html
  patch -Np1 -i ../unionfs-2.2.4_for_2.6.24.2.diff || return 1

  # add sec_perm-2.6.24.patch for aufs, in reference to:
  # http://aufs.sourceforge.net/
  patch -Np1 -i ../sec_perm-2.6.24.patch || return 1
  patch -Np0 -i ../put_filp-2.6.24.patch || return 1
  patch -Np1 -i ../lhash-2.6.24.patch || return 1
  patch -Np0 -i ../splice-2.6.24.patch || return 1

  # remove the extraversion from Makefile
  ### next line is only needed for rc kernels
  #sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =-rc6|g' Makefile
  sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile
  # Arch logo!
  cp ../logo_linux_clut224.ppm drivers/video/logo/
  cp ../logo_linux_mono.pbm drivers/video/logo/
  cp ../logo_linux_vga16.ppm drivers/video/logo/
  if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
  else
    cat ../config >./.config
  fi
  # build the full kernel version to use in pathnames
  . ./.config
  ### next line is only needed for rc kernels
  #_kernver="2.6.24-rc6${CONFIG_LOCALVERSION}"
  _kernver="${_basekernel}${CONFIG_LOCALVERSION}"
  
  # configure kernel before build
  make menuconfig

  # load configuration
  yes "" | make config
  # build!
  ####################
  # stop here
  #msg "Stopping build"
  #return 1
  ####################
  make bzImage modules || return 1
  mkdir -p $startdir/pkg/{lib/modules,boot}
  make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
  cp System.map $startdir/pkg/boot/System.map26-gigamo
  cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26-gigamo
  install -D -m644 Makefile \
    $startdir/pkg/usr/src/linux-${_kernver}/Makefile
  install -D -m644 kernel/Makefile \
    $startdir/pkg/usr/src/linux-${_kernver}/kernel/Makefile
  install -D -m644 .config \
    $startdir/pkg/usr/src/linux-${_kernver}/.config
  install -D -m644 .config $startdir/pkg/boot/kconfig26-gigamo
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include

  for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-${_kernver}/include/
  done

  # copy files necessary for later builds, like nvidia and vmware
  cp Module.symvers $startdir/pkg/usr/src/linux-${_kernver}
  cp -a scripts $startdir/pkg/usr/src/linux-${_kernver}
  # fix permissions on scripts dir
  chmod og-w -R $startdir/pkg/usr/src/linux-${_kernver}/scripts
  #mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/.tmp_versions

  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel

  cp arch/$KARCH/Makefile $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
  cp arch/$KARCH/Makefile_32 $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
  cp arch/$KARCH/Makefile_64 $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
  if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
  fi
  cp arch/$KARCH/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel/

  # add headers for lirc package
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video
  cp drivers/media/video/*.h  $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/
  for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
   mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
   cp -a drivers/media/video/$i/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
  done
  # add dm headers
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
  cp drivers/md/*.h  $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
  # add inotify.h
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/linux
  cp include/linux/inotify.h $startdir/pkg/usr/src/linux-${_kernver}/include/linux/
  # add CLUSTERIP file for iptables
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
  cp net/ipv4/netfilter/ipt_CLUSTERIP.c $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
  # add wireless headers
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
  cp net/mac80211/*.h $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
  # add xfs and shmem for aufs building
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/mm
  cp fs/xfs/xfs_sb.h $startdir/pkg/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
  cp mm/shmem.c $startdir/pkg/usr/src/linux-${_kernver}/mm/shmem.c
  # add vmlinux
  cp vmlinux $startdir/pkg/usr/src/linux-${_kernver}
  # copy in Kconfig files
  for i in `find . -name "Kconfig*"`; do 
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-${_kernver}/$i
  done

  cd $startdir/pkg/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm

  chown -R root.root $startdir/pkg/usr/src/linux-${_kernver}
  find $startdir/pkg/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
  cd $startdir/pkg/lib/modules/${_kernver} && \
    (rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
  # install fallback mkinitcpio.conf file and preset file for kernel
  install -m644 -D $startdir/src/${pkgname}.preset $startdir/pkg/etc/mkinitcpio.d/${pkgname}.preset || return 1
  install -m644 -D $startdir/src/mkinitcpio-$pkgname.conf $startdir/pkg/etc/mkinitcpio.d/$pkgname-fallback.conf || return 1
  # set correct depmod command for install
  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26-gigamo.install
  echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${pkgname}.kver
  # remove unneeded architectures
  rm -rf $startdir/pkg/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
}

And the error I'm getting when running makepkg (in the kernel26-gigamo directory where my own pathces are added and the pkgbuild resides in):

~/kernel/kernel26-gigamo]: makepkg
==> Making package: kernel26-gigamo 2.6.24.3-3  (Tue Mar 11 23:02:49 CET 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found linux-2.6.24.tar.bz2 in build dir
  -> Found patch-2.6.24.3.bz2 in build dir
  -> Found config in build dir
  -> Found config.x86_64 in build dir
  -> Found logo_linux_clut224.ppm in build dir
  -> Found logo_linux_mono.pbm in build dir
  -> Found logo_linux_vga16.ppm in build dir
  -> Found kernel26-gigamo.preset in build dir
  -> Found mkinitcpio-kernel26-gigamo.conf in build dir
  -> Found acpi-dsdt-initrd-v0.8.4-2.6.21.patch in build dir
  -> Found avoid-overflows-in-kernel-timec.patch in build dir
  -> Found clockevent-simplify-list-operations.patch in build dir
  -> Found uvesafb-small-cleanups.patch in build dir
  -> Found writeback-speed-up-writeback-of-big-dirty-files.patch in build dir
  -> Found toshiba-bluetooth.patch in build dir
  -> Found usb-storage-unusual-devs.patch in build dir
  -> Found mactel-linux-2.6.24.patch in build dir
  -> Found acpi-buggy-bios.patch in build dir
  -> Found squashfs3.3.tar.gz in build dir
  -> Found unionfs-2.2.4_for_2.6.24.2.diff.gz in build dir
  -> Found lhash-2.6.24.patch in build dir
  -> Found put_filp-2.6.24.patch in build dir
  -> Found sec_perm-2.6.24.patch in build dir
  -> Found splice-2.6.24.patch in build dir
  -> Found linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch in build dir
  -> Found 2000_no-if-addrlabel.patch in build dir
  -> Found 2100_sd-sr-medium-detection.patch in build dir
  -> Found 2101_sr-follow-tray-status.patch in build dir
  -> Found 2102_sr-test-unit-ready.patch in build dir
  -> Found 2300_pci-use-conf1.patch in build dir
  -> Found 2400_e1000e-crc-stripping.patch in build dir
  -> Found 2405_sis190-eeprom-mac.patch in build dir
  -> Found 2500_arcmsr-dma-coherent-warnings.patch in build dir
  -> Found 2700_alsa-hda-lifebook-e8410.patch in build dir
  -> Found winfast-2000.patch in build dir
  -> Found fuse-2.6.24.patch in build dir
  -> Found ata-2.6.24.patch in build dir
  -> Found keymap-2.6.24.patch in build dir
  -> Found sis671-intelgly-2.6.24.patch in build dir
==> WARNING: Integrity checks (md5) are missing or incomplete.
==> Extracting Sources...
  -> bsdtar -x -f linux-2.6.24.tar.bz2
  -> bunzip2 -f patch-2.6.24.3.bz2
  -> bsdtar -x -f squashfs3.3.tar.gz
  -> gunzip -d -f unionfs-2.2.4_for_2.6.24.2.diff.gz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
patching file Documentation/video4linux/CARDLIST.cx23885
patching file Makefile
patching file arch/powerpc/platforms/chrp/pci.c
patching file arch/powerpc/platforms/powermac/feature.c
patching file arch/s390/lib/uaccess_std.c
patching file arch/sparc/lib/rwsem.S
patching file arch/sparc64/lib/rwsem.S
patching file arch/x86/kernel/Makefile_32
patching file arch/x86/mm/pageattr_64.c
patching file drivers/acpi/blacklist.c
patching file drivers/acpi/osl.c
patching file drivers/base/firmware_class.c
patching file drivers/char/drm/drm_stub.c
patching file drivers/char/drm/drm_vm.c
patching file drivers/char/mspec.c
patching file drivers/firmware/dmi_scan.c
patching file drivers/macintosh/smu.c
patching file drivers/media/video/cx23885/cx23885-cards.c
patching file drivers/net/bonding/bond_main.c
patching file drivers/net/dl2k.h
patching file drivers/net/forcedeth.c
patching file drivers/net/pcmcia/smc91c92_cs.c
patching file drivers/net/sky2.c
patching file drivers/net/wireless/b43/dma.c
patching file drivers/net/wireless/b43/main.c
patching file drivers/net/wireless/b43/xmit.c
patching file drivers/net/wireless/b43/xmit.h
patching file drivers/net/wireless/b43legacy/dma.c
patching file drivers/net/wireless/b43legacy/main.c
patching file drivers/net/wireless/b43legacy/pio.c
patching file drivers/net/wireless/b43legacy/xmit.c
patching file drivers/net/wireless/b43legacy/xmit.h
patching file drivers/pci/hotplug/fakephp.c
patching file drivers/scsi/gdth.c
patching file drivers/scsi/sd.c
patching file drivers/usb/class/usblp.c
patching file drivers/usb/core/driver.c
patching file drivers/usb/core/hub.c
patching file drivers/usb/gadget/fsl_usb2_udc.c
patching file drivers/usb/misc/usbtest.c
patching file drivers/usb/serial/cp2101.c
patching file drivers/usb/serial/ftdi_sio.c
patching file drivers/usb/serial/ftdi_sio.h
patching file drivers/usb/serial/keyspan.c
patching file drivers/usb/serial/kobil_sct.c
patching file drivers/usb/serial/option.c
patching file drivers/usb/serial/pl2303.c
patching file drivers/usb/serial/pl2303.h
patching file drivers/usb/serial/sierra.c
patching file drivers/usb/storage/unusual_devs.h
patching file fs/eventpoll.c
patching file fs/inotify_user.c
patching file fs/ncpfs/mmap.c
patching file fs/nfs/write.c
patching file fs/splice.c
patching file fs/xfs/linux-2.6/xfs_file.c
patching file include/asm-powerpc/pmac_feature.h
patching file include/linux/Kbuild
patching file include/linux/dmi.h
patching file include/linux/hrtimer.h
patching file include/linux/hugetlb.h
patching file include/linux/ktime.h
patching file include/linux/wait.h
patching file kernel/audit.c
patching file kernel/compat.c
patching file kernel/futex.c
patching file kernel/futex_compat.c
patching file kernel/hrtimer.c
patching file kernel/irq/chip.c
patching file kernel/posix-timers.c
patching file kernel/relay.c
patching file kernel/sched_fair.c
patching file kernel/sysctl.c
patching file mm/filemap.c
patching file mm/fremap.c
patching file mm/hugetlb.c
patching file mm/memory.c
patching file mm/mmap.c
patching file mm/slab.c
patching file mm/slub.c
patching file net/bluetooth/hci_sysfs.c
patching file net/ipv4/fib_hash.c
patching file net/ipv4/fib_trie.c
patching file net/ipv4/inet_diag.c
patching file net/ipv4/ip_output.c
patching file net/ipv4/ipcomp.c
patching file net/ipv4/sysctl_net_ipv4.c
patching file net/ipv4/xfrm4_tunnel.c
patching file net/ipv6/ip6_output.c
patching file net/ipv6/ipcomp6.c
patching file net/netfilter/nf_conntrack_proto_tcp.c
patching file net/sched/em_meta.c
patching file net/sched/ematch.c
patching file scripts/mod/file2alias.c
patching file security/selinux/ss/services.c
patching file sound/oss/via82cxxx_audio.c
patching file sound/usb/usx2y/usX2Yhwdep.c
patching file sound/usb/usx2y/usx2yhwdeppcm.c
The next patch would create the file Documentation/dsdt-initrd.txt,
which already exists!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file Documentation/dsdt-initrd.txt.rej
patching file drivers/acpi/Kconfig
Hunk #1 succeeded at 274 (offset -24 lines).
patching file drivers/acpi/osl.c
Hunk #1 succeeded at 312 (offset 56 lines).
patching file init/initramfs.c
patching file init/main.c
Hunk #1 succeeded at 91 with fuzz 1 (offset -6 lines).
Hunk #2 succeeded at 650 (offset 13 lines).
==> ERROR: Build Failed.
    Aborting...

Sorry for the long post and thanks for bothering with me.

Last edited by Gigamo (2008-03-11 22:09:12)

Offline

#2 2008-03-11 22:14:22

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: Makepkg fails on custom kernel.

it seems that patching failed before the actual compiling took place, you might want to look into your patch files. smile


Archlinux on Compaq Presario v5000 laptop smile

Offline

#3 2008-03-11 22:21:57

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: Makepkg fails on custom kernel.

blu3ness wrote:

it seems that patching failed before the actual compiling took place, you might want to look into your patch files. smile

It seems like indeed. I dont know what to look for in those files though, I just got them out of that archive and reasons, who helped me so far with this has used them succesfully.

Offline

#4 2008-03-11 22:24:23

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: Makepkg fails on custom kernel.

Did you ran makepkg multiple times without cleaning up the src directory? I have similar problems before.


Archlinux on Compaq Presario v5000 laptop smile

Offline

#5 2008-03-12 06:04:30

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: Makepkg fails on custom kernel.

blu3ness wrote:

Did you ran makepkg multiple times without cleaning up the src directory? I have similar problems before.

Yes. sad

Offline

#6 2008-03-12 07:09:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Makepkg fails on custom kernel.

Use makepkg -c to clean up your build dir. man makepkg has all the details.

Offline

#7 2008-03-12 11:51:06

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: Makepkg fails on custom kernel.

I removed the src/ directory and ran makepkg and it succeeded. Pacman -U kernel.pkg.tar.gz also worked. Now all that's left is rebooting and trying. smile

Thanks everyone.

OK, I guess it's not over yet. I rebooted in the new kernel, but it says it can't find /dev/sda3 (which is my / partition).

This is my grub entry:

title  Arch Linux Gigamo
root   (hd0,2)
kernel /boot/vmlinuz26 root=/dev/sda3 ro
initrd /boot/kernel26-gigamo.img

Okay well, I didnt realise there was a vmlinux26-gigamo as well. Will see if that fixes it.

Last edited by Gigamo (2008-03-12 16:53:22)

Offline

Board footer

Powered by FluxBB