[SOLVED] Failed to build kernel package

Discussion about U-Boot and the kernel.

[SOLVED] Failed to build kernel package

Postby spamru » Wed Nov 14, 2012 8:53 am

Hi guys! I've downloaded full git repo from archlinuxarm, moved to linux-kirkwood and tried to build.

First time it fails and complains about modules directory, I re-create it in usr dir with symlink to ../lib and doing restart of makepkg -e, and it stops with the following messages:

$this->bbcode_second_pass_code('', '
[root@goflexnet linux-kirkwood]# pwd
/home/archlinux/custom-kernel/PKGBUILDs/core/linux-kirkwood
[root@goflexnet linux-kirkwood]# makepkg --asroot -Acse
==> Making package: linux-kirkwood 3.6.4-1 (Wed Nov 14 09:38:42 CET 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Skipping source retrieval -- using existing src/ tree
==> WARNING: Skipping source integrity checks -- using existing src/ tree
patching file drivers/usb/core/quirks.c
Hunk #1 succeeded at 229 with fuzz 2 (offset 191 lines).
Hunk #2 succeeded at 312 with fuzz 2 (offset 225 lines).
patching file drivers/usb/core/quirks.c
Hunk #1 succeeded at 235 (offset 191 lines).
patching file drivers/usb/core/quirks.c
Hunk #1 succeeded at 241 (offset 191 lines).
The next patch would delete the file arch/arm/boot/dts/kirkwood-goflexnet.dts,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file arch/arm/boot/dts/kirkwood-iconnect.dts,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file arch/arm/boot/dts/kirkwood-ts219-6281.dts,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file arch/arm/boot/dts/kirkwood-ts219-6282.dts,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file arch/arm/boot/dts/kirkwood-ts219.dtsi,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
patching file arch/arm/mach-kirkwood/Kconfig
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file arch/arm/mach-kirkwood/Kconfig.rej
patching file arch/arm/mach-kirkwood/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file arch/arm/mach-kirkwood/Makefile.rej
patching file arch/arm/mach-kirkwood/Makefile.boot
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file arch/arm/mach-kirkwood/Makefile.boot.rej
The next patch would delete the file arch/arm/mach-kirkwood/board-goflexnet.c,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file arch/arm/mach-kirkwood/board-iconnect.c,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
The next patch would delete the file arch/arm/mach-kirkwood/board-ts219.c,
which does not exist! Skipping patch.
1 out of 1 hunk ignored
patching file arch/arm/mach-kirkwood/common.h
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file arch/arm/mach-kirkwood/common.h.rej
patching file arch/arm/mach-kirkwood/dockstar-setup.c
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file arch/arm/mach-kirkwood/dockstar-setup.c.rej
The next patch would create the file arch/arm/mach-kirkwood/goflexhome-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file arch/arm/mach-kirkwood/goflexnet-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file arch/arm/mach-kirkwood/guruplug-setup.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file arch/arm/mach-kirkwood/guruplug-setup.c.rej
The next patch would create the file arch/arm/mach-kirkwood/iconnect-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file arch/arm/mach-kirkwood/ionics-stratus-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file arch/arm/mach-kirkwood/nas6210-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file arch/arm/mach-kirkwood/nsa310-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file arch/arm/mach-kirkwood/nsa320-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file arch/arm/mach-kirkwood/pogo_e02-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file arch/arm/mach-kirkwood/pogoplugv4-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file arch/arm/mach-kirkwood/sheevaplug-setup.c
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file arch/arm/mach-kirkwood/sheevaplug-setup.c.rej
The next patch would create the file arch/arm/mach-kirkwood/topkick-setup.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file arch/arm/plat-orion/common.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file arch/arm/plat-orion/common.c.rej
patching file drivers/ata/sata_mv.c
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file drivers/ata/sata_mv.c.rej
patching file drivers/hwmon/Kconfig
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/hwmon/Kconfig.rej
patching file drivers/hwmon/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/hwmon/Makefile.rej
The next patch would create the file drivers/hwmon/nsa3xx-hwmon.c,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file drivers/leds/Kconfig
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/leds/Kconfig.rej
patching file drivers/mmc/core/core.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/mmc/core/core.c.rej
patching file drivers/mmc/core/sd.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/mmc/core/sd.c.rej
patching file drivers/mmc/host/mvsdio.c
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file drivers/mmc/host/mvsdio.c.rej
The next patch would create the file include/linux/nsa3xx-hwmon.h,
which already exists! Skipping patch.
1 out of 1 hunk ignored
==> ERROR: A failure occurred in build().
Aborting...
[root@goflexnet linux-kirkwood]#
[root@goflexnet linux-kirkwood]# ls -lah
total 80M
drwxr-xr-x 4 root root 4.0K Nov 14 09:38 .
drwxr-xr-x 38 root root 4.0K Nov 13 10:43 ..
-rw-r--r-- 1 root root 3.0K Nov 13 10:51 0001-block-cgroups-kconfig-build-bits-for-BFQ-v5-3.6.patch
-rw-r--r-- 1 root root 165K Nov 13 10:51 0002-block-introduce-the-BFQ-v5-I-O-sched-for-3.6.patch
-rw-r--r-- 1 root root 85K Nov 13 10:43 archlinuxarm.patch
-rw-r--r-- 1 root root 134K Nov 13 10:43 aufs3-3.6.patch.xz
-rw-r--r-- 1 root root 603 Nov 13 10:43 change-default-console-loglevel.patch
-rw-r--r-- 1 root root 101K Nov 13 23:22 config
-rw-r--r-- 1 root root 54K Nov 13 10:51 cryptodev-linux-1.5.tar.gz
-rw-r--r-- 1 root root 79M Nov 13 10:51 linux-3.6.4.tar.bz2
-rw-r--r-- 1 root root 1.5K Nov 14 04:50 linux-kirkwood.install
-rw-r--r-- 1 root root 170K Nov 13 10:43 mach-types
drwxr-xr-x 2 root root 4.0K Nov 14 09:38 pkg
-rw-r--r-- 1 root root 9.2K Nov 13 23:25 PKGBUILD
drwxr-xr-x 4 root root 4.0K Nov 14 09:15 src
-rw-r--r-- 1 root root 316 Nov 13 10:43 support.patch
-rw-r--r-- 1 root root 3.7K Nov 13 10:43 usb-add-reset-resume-quirk-for-several-webcams.patch
[root@goflexnet linux-kirkwood]#
')

Anyone has any idea how can I understand why it fails?
Last edited by spamru on Thu Nov 15, 2012 8:19 am, edited 1 time in total.
spamru
 
Posts: 4
Joined: Wed Nov 14, 2012 8:47 am

Re: Failed to build kernel package

Postby pepedog » Wed Nov 14, 2012 9:47 am

Looks like you tried to build once already, patches failed because they already been patched.
Either comment out patch lines in PKGBUILD or rm -r src
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Failed to build kernel package

Postby spamru » Wed Nov 14, 2012 9:56 am

$this->bbcode_second_pass_quote('pepedog', 'L')ooks like you tried to build once already, patches failed because they already been patched.
Either comment out patch lines in PKGBUILD or rm -r src


Yepp, commenting out patch lines helped. Thx!
spamru
 
Posts: 4
Joined: Wed Nov 14, 2012 8:47 am


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 7 guests