You are not logged in.

#1 2008-11-06 03:10:45

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Problems compiling kernel from ABS, patches not found. [solved]

I'm trying to compile a special kernel for an old desktop of mine that I thought I'd try to convert into a personal router. Trying to make the kenel26 package from ABS fails to build on the desktop (latest version; unmodified PKGBUILD). Interestingly enough, same files build just fine on my laptop.

When I build on my desktop, ABS complains it can't find the patches. Looking at the src folder I can confirm they are there, but they never get extracted. I have both patch and bzip2 installed from pacman. Changing the PGKBUILD lines from

patch -Np1 <PATCH> || return 1

to

bzip2 -d -c <PATCH>.bz2 | patch -Np1 || return 1

makes it work all of a sudden. The build still fails on other should-be-valid lines in the PKGBUILD after that fix (can't remember of the top of my head).

I've read the Arch Wiki's ABS documentation quite extensively. As I said the same PKGBUILD works on my laptop, and both my desktop and laptop would have the same version of building utilities installed. Is there something I'm missing or is there some sort of a misconfiguration? Or is this an indication of a bug somewhere?

Last edited by simongmzlj (2008-11-06 15:47:10)

Offline

#2 2008-11-06 04:45:50

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Problems compiling kernel from ABS, patches not found. [solved]

One issue is that your patch command is missing the --input flag.  It needs to look like the code below.

Of course, this still won't work if the patch isn't being extracted.  I can't think of why that's happening unless it's been added to the noextract array somehow.  Can you post the PKGBUILD?

patch -Np1 -i $srcdir/my-patch.diff || return 1

ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#3 2008-11-06 04:55:25

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

Here it is. It's straight from AUR untouched. This --input flag was always there, my bad for missing it on the post.

# $Id: PKGBUILD 17204 2008-10-26 20:29:18Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=kernel26-mine
_basekernel=2.6.27
pkgver=2.6.27.4
pkgrel=1
_patchname="patch-${pkgver}-${pkgrel}-ARCH"
pkgdesc="The Linux Kernel and modules"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
depends=('coreutils')
makedepends=('patch')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 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' 'kernel26-scsi'
          'madwifi')
install=kernel26.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
    http://wifi.ozo.com/airo/openwrt/firmware/kamikaze/2.6/x86/testing/mac80211-patches/patches-2.6.27/working/full/007-ath5k-ap-mode.patch
        config config.x86_64)
md5sums=('b3e78977aa79d3754cb7f8143d7ddabd'
         '94c0ef057c5573f6275aebb24a11ca49'
         'baf0ac52908965f3dffd378bf6d49412'
         'fb065939bd595f9ec2e4aa1445d8bad3'
         '25584700a0a679542929c4bed31433b6')

build() {
  KARCH=x86

  cd $startdir/src/linux-$_basekernel
  # Add -ARCH patches
  # See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
  patch -Np1 -i $startdir/src/${_patchname} || return 1

  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.25${CONFIG_LOCALVERSION}"
  _kernver="${_basekernel}${CONFIG_LOCALVERSION}"
  # load configuration
  yes "" | make menuconfig
  # build!
  ####################
  # stop here
  # this is useful to configure the kernel
  #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
  cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26
  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
  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/
  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/
  # 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 dvb headers for external modules
  # in reference to:
  # http://bugs.archlinux.org/task/9912
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
  cp drivers/media/dvb/dvb-core/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
  # add dvb headers for external modules
  # in reference to:
  # http://bugs.archlinux.org/task/11194
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/config/dvb/
  cp include/config/dvb/*.h $startdir/pkg/usr/src/linux-${_kernver}/include/config/dvb/
  # 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
  # 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
  # set correct depmod command for install
  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26.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,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
}

Last edited by simongmzlj (2008-11-06 04:56:16)

Offline

#4 2008-11-06 05:26:54

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Problems compiling kernel from ABS, patches not found. [solved]

The PKGBUILD tries to apply the -ARCH patch called $_patchname, which is defined as patch-2.6.27.4-1-ARCH.  Your source array has been changed to download kernel.org's patch-2.6.27.4 instead of Arch's patch-2.6.27.4-1-ARCH.  That's why makepkg says it can't find the patch.  If you didn't change this, sync your abs with `sudo abs` and grab a new copy.  Your source array should look something like this (note the 2nd url, as well as the preset file that was also missing):

source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
        ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
        http://wifi.ozo.com/airo/openwrt/firmware/kamikaze/2.6/x86/testing/mac80211-patches/patches-2.6.27/working/full/007-ath5k-ap-mode.patch
        # the main kernel config files
        config config.x86_64
        # standard config files for mkinitcpio ramdisk
        kernel26.preset)

Then you apply the ath5k patch by adding this line below the -ARCH patch line:

patch -Np1 -i $srcdir/007-ath5k-ap-mode.patch || return 1

Last edited by creslin (2008-11-06 05:33:00)


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#5 2008-11-06 05:32:51

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

However, when I run it, the patch bzip file downloads. It sits in the src folder. For some darn reason it won't extract. Wouldn't the makepkg command stop anyways if it can't find a sourcefile? Or am I missing something? The thing is that this PKGBUILD works on my laptop.

Offline

#6 2008-11-06 05:38:52

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Problems compiling kernel from ABS, patches not found. [solved]

simongmzlj wrote:

However, when I run it, the patch bzip file downloads. It sits in the src folder. For some darn reason it won't extract. Wouldn't the makepkg command stop anyways if it can't find a sourcefile? Or am I missing something? The thing is that this PKGBUILD works on my laptop.

Oh, so it sounds like you changed it on purpose?  It downloads the file because it's in the source array.  However, the patch command does not call it.  The patch command calls the variable ${_patchname}, which is patch-2.6.27.4-1-ARCH, not patch-2.6.27.4.

If you want to use the kernel.org patch, you'll have to change this line:

 patch -Np1 -i $startdir/src/${_patchname} || return 1

to this:

 patch -Np1 -i $startdir/src/patch-$pkgver || return 1

or you could redefine the variable directly by changing _patchname="patch-${pkgver}-${pkgrel}-ARCH" to:

_patchname="patch-$pkgver"

If you're using this exact same PKGBUILD on your laptop and it builds fine, I can't think of how that's possible unless your laptop has previously downloaded the -ARCH patch and it's still in the src dir.

Last edited by creslin (2008-11-06 05:48:17)


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#7 2008-11-06 05:47:50

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

oh shoot, i just realize i grabbed the wrong PKGBUILD. That one I was tweaking myself for the sake of learning, yes your right and I know its broken. I ment to post the one I got from abs... this one:

# $Id: PKGBUILD 17203 2008-10-26 20:28:29Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=kernel26
_basekernel=2.6.27
pkgver=2.6.27.4
pkgrel=1
_patchname="patch-${pkgver}-${pkgrel}-ARCH"
pkgdesc="The Linux Kernel and modules"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.18')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 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-scsi'
          'alsa-driver' 'ieee80211' 'hostap-driver26'
          'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
      'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
      'gspcav1')
install=kernel26.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
        ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
        # the main kernel config files
        config config.x86_64
        # standard config files for mkinitcpio ramdisk
        kernel26.preset)
md5sums=('b3e78977aa79d3754cb7f8143d7ddabd'
         '94c0ef057c5573f6275aebb24a11ca49'
         'baf0ac52908965f3dffd378bf6d49412'
         'fb065939bd595f9ec2e4aa1445d8bad3'
         '25584700a0a679542929c4bed31433b6')

build() {
  KARCH=x86

  cd $startdir/src/linux-$_basekernel
  # Add -ARCH patches
  # See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
  patch -Np1 -i $startdir/src/${_patchname} || return 1

  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.25${CONFIG_LOCALVERSION}"
  _kernver="${_basekernel}${CONFIG_LOCALVERSION}"
  # load configuration
  yes "" | make config
...
...
...

It won't find the patch.

Last edited by simongmzlj (2008-11-06 05:48:08)

Offline

#8 2008-11-06 05:54:44

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

Here's the exact output I get:

==> Making package: kernel26 2.6.27.4-1 x86_64 (Thu Nov  6 00:53:19 EST 2008)
==> WARNING: Running makepkg as root...
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading linux-2.6.27.tar.bz2...
--2008-11-06 00:53:19--  ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.tar.bz2   
           => `linux-2.6.27.tar.bz2.part'
Resolving ftp.kernel.org... 204.152.191.37, 204.152.191.5
Connecting to ftp.kernel.org|204.152.191.37|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/linux/kernel/v2.6 ... done.
==> SIZE linux-2.6.27.tar.bz2 ... 50355835
==> PASV ... done.    ==> RETR linux-2.6.27.tar.bz2 ... done.
Length: 50355835 (48M)

100%[======================================>] 50,355,835   869K/s   in 58s

2008-11-06 00:54:20 (846 KB/s) - `linux-2.6.27.tar.bz2.part' saved [50355835]

  -> Downloading patch-2.6.27.4-1-ARCH.bz2...
--2008-11-06 00:54:20--  ftp://ftp.archlinux.org/other/kernel26/patch-2.6.27.4-1-ARCH.bz2  
           => `patch-2.6.27.4-1-ARCH.bz2.part'
Resolving ftp.archlinux.org... 209.85.41.145, 209.85.41.144
Connecting to ftp.archlinux.org|209.85.41.145|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /other/kernel26 ... done.
==> SIZE patch-2.6.27.4-1-ARCH.bz2 ... 200994
==> PASV ... done.    ==> RETR patch-2.6.27.4-1-ARCH.bz2 ... done.
Length: 200994 (196K)

100%[======================================>] 200,994      375K/s   in 0.5s

2008-11-06 00:54:22 (375 KB/s) - `patch-2.6.27.4-1-ARCH.bz2.part' saved [200994]

  -> Found config in build dir
  -> Found config.x86_64 in build dir
  -> Found kernel26.preset in build dir
==> Validating source files with md5sums...
    linux-2.6.27.tar.bz2 ... Passed
    patch-2.6.27.4-1-ARCH.bz2 ... Passed
    config ... Passed
    config.x86_64 ... Passed
    kernel26.preset ... Passed
==> Extracting Sources...
  -> bsdtar -x -f linux-2.6.27.tar.bz2
==> Starting build()...
patch: **** Can't open patch file /var/abs/core/kernel26/src/patch-2.6.27.4-1-ARCH : No such file or directory
==> ERROR: Build Failed.
    Aborting...

ls -la reveals

drwxr-xr-x   4 root root     4096 2008-11-06 00:57 .
drwxr-xr-x 172 root root     4096 2008-11-05 00:08 ..
-rw-r--r--   1 root root     6779 2008-11-05 00:07 PKGBUILD
-rw-r--r--   1 root root    88695 2008-11-05 00:07 config
-rw-r--r--   1 root root    83371 2008-11-05 00:07 config.x86_64
-rw-r--r--   1 root root     5854 2008-11-05 00:07 kernel26.install
-rw-r--r--   1 root root      465 2008-11-05 00:07 kernel26.preset
-rw-r--r--   1 root root 50355835 2008-11-06 00:54 linux-2.6.27.tar.bz2
-rw-r--r--   1 root root   200994 2008-11-06 00:54 patch-2.6.27.4-1-ARCH.bz2
drwxr-xr-x   2 root root        6 2008-11-06 00:57 pkg
drwxr-xr-x   3 root root      139 2008-11-06 00:54 src

and ls -la src

drwxr-xr-x  3 root root  139 2008-11-06 00:54 .
drwxr-xr-x  4 root root 4096 2008-11-06 00:57 ..
lrwxrwxrwx  1 root root   29 2008-11-06 00:54 config -> /var/abs/core/kernel26/config
lrwxrwxrwx  1 root root   36 2008-11-06 00:54 config.x86_64 -> /var/abs/core/kernel26/config.x86_64
lrwxrwxrwx  1 root root   38 2008-11-06 00:54 kernel26.preset -> /var/abs/core/kernel26/kernel26.preset
drwxr-xr-x 22 root root 4096 2008-10-09 18:13 linux-2.6.27
lrwxrwxrwx  1 root root   43 2008-11-06 00:54 linux-2.6.27.tar.bz2 -> /var/abs/core/kernel26/linux-2.6.27.tar.bz2
lrwxrwxrwx  1 root root   48 2008-11-06 00:54 patch-2.6.27.4-1-ARCH.bz2 -> /var/abs/core/kernel26/patch-2.6.27.4-1-ARCH.bz2

Offline

#9 2008-11-06 06:06:02

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Problems compiling kernel from ABS, patches not found. [solved]

simongmzlj wrote:
==> Extracting Sources...
  -> bsdtar -x -f linux-2.6.27.tar.bz2
==> Starting build()...

I don't know why it only extracts the kernel source.  I can only suspect it's related to running makepkg as root.  Copy the kernel26 folder to a local folder and see if it still happens when you build in there.


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#10 2008-11-06 06:08:25

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

I was defiantly running as root. cool never bothered to set up another account. I'll try as another user now. Why would running as root cause a problem like this?

Offline

#11 2008-11-06 06:15:08

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Problems compiling kernel from ABS, patches not found. [solved]

I don't really know for sure.. it's only my best guess.  Maybe it has something to do with fakeroot issues on the root account.  I don't know the inner workings of these things.


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#12 2008-11-06 06:17:07

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

Still doesn't work. However, interestingly enough, when I tried it as a newly created user it complained fakeroot wasn't installed. Installed fakeroot but it still errors out at the same spot.

Offline

#13 2008-11-06 06:21:01

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Problems compiling kernel from ABS, patches not found. [solved]

If you didn't have fakeroot, then you haven't installed the base-devel group.  I don't know if it will fix this specific issue, but you still need to install base-devel for makepkg.

Last edited by creslin (2008-11-06 06:21:44)


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#14 2008-11-06 06:25:16

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

I installed fakeroot before I tested it away from root. I have the following base-devel packages installed: diffutils, ed, fakeroot, gcc, make, and patch. I'll install the rest and test.

Offline

#15 2008-11-06 06:30:12

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

No good, installing the whole base-devel didn't help

Offline

#16 2008-11-06 06:40:35

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Problems compiling kernel from ABS, patches not found. [solved]

Just to recap, it still fails after these steps?

Install base-devel as root:

# pacman -Sy base-devel

Sync abs as root:

# abs

Copy the kernel26 abs folder to a local folder as a regular user:

$ cp -r /var/abs/core/kernel26  ~/builds/

Run makepkg as a regular user:

$ cd ~/builds/kernel26
$ makepkg

If this still gives you the same error, I'm out of ideas.. maybe someone else can figure it out in the morning neutral

Last edited by creslin (2008-11-06 06:41:24)


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#17 2008-11-06 06:41:49

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

Yes. Followed those steps to the letter, erased all previous builds and everything. If this helps, here is a list of all packages on my system:

abs 2.3-1
acl 2.2.47-1
apr 1.3.3-1
apr-util 1.3.4-1
attr 2.4.41-1
autoconf 2.63-1
automake 1.10.1-2
bash 3.2.039-3
bin86 0.16.17-3
binutils 2.18-9
bison 2.3-4
bzip2 1.0.5-3
coreutils 6.12-1
cpio 2.9-3
cracklib 2.8.13-1
cryptsetup 1.0.6-2
db 4.7.25-1
dcron 3.2-3
device-mapper 1.02.24-1
dhcpcd 4.0.3-1
dialog 1.1_20080819-1
diffutils 2.8.1-5
dmapi 2.2.8-3
e2fsprogs 1.41.3-2
ed 1.1-2
expat 2.0.1-2
fakeroot 1.10.1-1
file 4.26-1
filesystem 2008.07-1
findutils 4.4.0-1
flex 2.5.35-1
gawk 3.1.6-2
gcc 4.3.2-1
gcc-libs 4.3.2-1
gdbm 1.8.3-5
gen-init-cpio 2.6.17-3
gettext 0.17-2
glibc 2.8-3
gmp 4.2.4-1
gpm 1.20.5-2
grep 2.5.3-3
groff 1.19.2-4
gzip 1.3.12-4
hdparm 8.9-1
heimdal 1.2-2
htop 0.8-2
hwdetect 0.9.1-2
initscripts 2008.09-2
iputils 20071127-2
jfsutils 1.1.13-1
kbd 1.14.1.20080309-2
kbproto 1.0.3-1
kernel-headers 2.6.26.3-1
kernel26 2.6.27.4-1
klibc 1.5.14-1
klibc-extras 2.5-1
klibc-kbd 1.15.20080312-7
klibc-module-init-tools 3.4-2
klibc-udev 130-1
less 418-1
libarchive 2.5.5-1
libdownload 1.3-1
libelf 0.8.10-3.1
libgcrypt 1.4.3-2
libgpg-error 1.6-1
libice 1.0.4-1
libldap 2.3.43-3
libpcap 0.9.8-2
libsasl 2.1.22-7
libsm 1.1.0-1
libtool 2.2.6a-1
libusb 0.1.12-3
libx11 1.1.5-2
libxau 1.0.4-1
libxcb 1.1.90.1-1
libxdmcp 1.0.2-1
libxt 1.0.5-1
licenses 2.4-1
lilo 22.8-2
logrotate 3.7.5-1
lvm2 2.02.36-1
lzo2 2.02-3
m4 1.4.12-1
madwifi-svn 3866-4712
madwifi-utils-svn 3866-4712
mailx 8.1.1-5
make 3.81-3
man 1.6f-2
man-pages 3.11-1
mdadm 2.6.7-1
mkinitcpio 0.5.19-1
module-init-tools 3.4-1
mpfr 2.3.2-2
nano 2.0.9-1
ncurses 5.6-8
neon 0.28.3-1
net-tools 1.60-13
openssh 5.1p1-1
openssl 0.9.8i-1
pacman 3.2.1-1
pam 1.0.2-2
patch 2.5.9-1
pciutils 3.0.2-1
pcmciautils 015-2
pcre 7.8-1
perl 5.10.0-4
pkgconfig 0.23-1
popt 1.14-1
procinfo 19-3
procps 3.2.7-5
psmisc 22.6-2
python 2.6-2
readline 5.2-8
reiserfsprogs 3.6.20-3
rsync 3.0.4-1
ruby 1.8.7_p72-2
screen 4.0.3-6
sdparm 1.03-1
sed 4.1.5-3
shadow 4.1.2.1-2
subversion 1.5.4-1
sysfsutils 2.1.0-4
syslog-ng 2.0.9-1
sysvinit 2.86-4
tar 1.20-2
tcp_wrappers 7.6-8
termcap-compat 1.2.3-4
texinfo 4.13a-1
tzdata 2008h-1
udev 130-1
unixodbc 2.2.12-2
usbutils 0.73-5
util-linux-ng 2.14-1
vi 7.2.25-1
vim 7.2.25-1
wget 1.11.4-1
which 2.20-1
wireless_tools 29-2
xcb-proto 1.2-2
xfsdump 2.2.48-1
xfsprogs 2.10.1-1
xproto 7.0.13-1
yaourt 0.9.1-1
zlib 1.2.3.3-2

Thanks for all the help so far.

Last edited by simongmzlj (2008-11-06 06:52:56)

Offline

#18 2008-11-06 08:43:30

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: Problems compiling kernel from ABS, patches not found. [solved]

Okay, well something was seriously wrong with my system. I don't know what, I still don't know why I was having the problem I was having, but turns out the system wouldn't even boot up after I rebooted it. Wiped it, reinstalled fresh, everything is working find now.

Thanks for the help.

Offline

Board footer

Powered by FluxBB