[SOLVED] Error in prepare() when building kernel linux-omap

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

Re: Error in prepare() when building kernel linux-omap

Postby kmihelich » Tue Dec 03, 2013 12:22 am

You're trying to run a PKGBUILD inside a git-tracked directory that is doing a 'git apply' of one of the patches. Copy the linux-omap folder outside of the clone and it will work.

After copying it out, if you comment the git apply'd patch in the PKGBUILD, you'll notice you see the exact same patch failure you mentioned.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Error in prepare() when building kernel linux-omap

Postby abhay » Tue Dec 03, 2013 2:36 am

Hi Kevin,

I think that I might have found the *source* of the problem. But I still don't know the solution or why it happens.

I found that the failed hunks come from sections that should have been patched earlier by the rcn patch (patch-3.7.10-x13.diff).

It appears that the "git apply" statement is not applying the patch at all and hence it fails.

So I tried to apply the patch at the command line to test and guess what? 0 files changed!
$this->bbcode_second_pass_code('', '
# git apply --stat --verbose "../patch-3.7.10-x13.diff"
0 files changed
')

So the mystery now is, why does git apply not work? Any hints?
abhay
 
Posts: 21
Joined: Thu Nov 07, 2013 3:05 am

Re: Error in prepare() when building kernel linux-omap

Postby kmihelich » Tue Dec 03, 2013 2:41 am

Really, read what I'm saying.

$this->bbcode_second_pass_quote('kmihelich', 'Y')ou're trying to run a PKGBUILD inside a git-tracked directory that is doing a 'git apply' of one of the patches


Since you're inside the PKGBUILDs directory, git apply is not behaving as intended (which is when run inside a non-git-tracked directory).
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Error in prepare() when building kernel linux-omap

Postby abhay » Tue Dec 03, 2013 3:33 am

So instead of trying to debug why "git apply" does not work, I changed that line in PKGBUILD to:

$this->bbcode_second_pass_code('', '
patch -Np1 -i "${srcdir}/patch-${pkgver}-${rcnrel}.diff"
')

Now it works for those two hunks that had a problem before, but now fails at the different file:

$this->bbcode_second_pass_code('', '
patching file sound/soc/davinci/davinci-sffsdr.c
==> ERROR: A failure occurred in prepare().
Aborting...
')

Will keep you updated on my progress ...
abhay
 
Posts: 21
Joined: Thu Nov 07, 2013 3:05 am

Re: Error in prepare() when building kernel linux-omap

Postby kmihelich » Tue Dec 03, 2013 3:36 am

Stop breaking my PKGBUILD and posting crap about it. The git apply is needed because it's a git diff containing binary blobs. Move the linux-omap directory outside of the git clone. This will let you build it normally, as intended.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Error in prepare() when building kernel linux-omap

Postby abhay » Tue Dec 03, 2013 3:38 am

ah! sorry, i didn't see your reply and kept on trying my stuff. will try your suggestion now.
abhay
 
Posts: 21
Joined: Thu Nov 07, 2013 3:05 am

Re: Error in prepare() when building kernel linux-omap

Postby abhay » Tue Dec 03, 2013 4:39 am

Thanks, that works. Marking the thread as solved.

I followed the official wiki: https://wiki.archlinux.org/index.php/Ke ... ild_System

No where is it mentioned that the directory has to be moved out of the repository for compilation.

Anyway, I hope your vanity has not been too badly bruised by my meanderings. I enjoyed the learning experience and tracking down the problem. You have a head start, I'm just beginning my work with Arch and the kernel.
abhay
 
Posts: 21
Joined: Thu Nov 07, 2013 3:05 am

Re: [SOLVED] Error in prepare() when building kernel linux-o

Postby kmihelich » Tue Dec 03, 2013 4:41 am

ABS doesn't use git. It uses tar or rsync.

If you want to read something about building, read this: https://wiki.archlinux.org/index.php/De ... ean_Chroot
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Previous

Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 13 guests