[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Ltib] kernel build failure
From: |
Stuart Hughes |
Subject: |
RE: [Ltib] kernel build failure |
Date: |
Thu, 31 Jul 2008 10:19:52 +0100 |
Hi Frank,
I had a quick look and can't see anything wrong. The best bet is to
move your current source tree (mv linux-xxx linux-xxx.sav) and then
re-run ./ltib -p kernel. This will unpack from scratch and build.
Also, the odd thing is I can't find any trace of the original kernel
spec file: dist/lfs-5.1/kernel/kernel-2.6.23-m5445x.spec.in
Regards, Stuart
On Thu, 2008-07-31 at 13:51 +1200, Frank Wei wrote:
> Hi Stuart,
>
> I've attached the file in this email. I added "Patch49 :
> linux-2.6.20-m5445x_i2c-1.patch" at the middle of the file and another
> line "%patch49 -p1" at the bottom.
>
> Cheers,
>
> -----Original Message-----
> From: Stuart Hughes [mailto:address@hidden
> Sent: Wednesday, 30 July 2008 8:36 p.m.
> To: Kurt Mahan
> Cc: Frank Wei; 'address@hidden'
> Subject: Re: [Ltib] kernel build failure
>
> Hi Frank,
>
> It also looks like there may be an error in your
> kernel-2.6.23-m5445x.spec.in from the error line. Can you send either a
> copy of this file, or a diff of your changes.
>
> Regards, Stuart
>
> On Tue, 2008-07-29 at 20:45 -0600, Kurt Mahan wrote:
> > The issue you're running into is a safety measure built into ltib.
> >
> > You've got a kernel prep'd in ltib/rpm/BUILD/linux* -- ltib recognizes
> > that and won't blow it away. If you don't have any local changes in it
> > you can just remove that kernel (rm -rf ltib/rpm/BUILD/linux*) and then
> > attempt this again.
> >
> > --Kurt
> >
> > Frank Wei wrote:
> > >
> > > Hi,
> > >
> > > I've added Patch49 : linux-2.6.20-m5445x_i2c-1.patch" to the
> > > /dist/lfs-5.1/kernel/kernel-2.6.23-m5445x.spec.in
> > > <http://kernel-2.6.23-m5445x.spec.in> as instructed by Kurt Mahan and
> > > try to start rebuild the kernel and I got the error:
> > >
> > > Processing: kernel-2.6.23-m5445x
> > >
> > > ==================================
> > >
> > > Cowardly refusing to clobber existing directory:
> > >
> > > /home/fw/ltib/ltib-mcf5445x-20071214//rpm/BUILD/linux-2.6.23
> > >
> > > Remove this by hand if you really want to rebuild this package from
> > > scratch
> > >
> > > scbuild/scdeploy already unpacked package
> > >
> > > Processing: kernel-2.6.23-m5445x
> > >
> > > ==================================
> > >
> > > rpmbuild --dbpath /home/fw/ltib/ltib-mcf5445x-20071214//rpmdb --define
> > > '_unpackaged_files_terminate_build 0' --define '_target_cpu m68k'
> > > --define '__strip strip' --define '_topdir
> > > /home/fw/ltib/ltib-mcf5445x-20071214//rpm' --define '_prefix /usr'
> > > --define '_tmppath /home/fw/ltib/ltib-mcf5445x-20071214//tmp' --define
> > > '_mandir /usr/share/man' --define '_sysconfdir /etc' --define
> > > '_localstatedir /var' -bc --short-circuit
> > > /home/fw/ltib/ltib-mcf5445x-20071214//tmp/kernel-2.6.23-m5445x.spec
> > >
> > > error: line 229: Bad arg to %patch -p: %Install
> > >
> > > Build time for kernel-2.6.23-m5445x: 0 seconds
> > >
> > > Failed building kernel-2.6.23-m5445x
> > >
> > > f_buildrpms() returned an error, exiting
> > >
> > > Started: Wed Jul 30 16:31:01 2008
> > >
> > > Ended: Wed Jul 30 16:31:18 2008
> > >
> > > Elapsed: 17 seconds
> > >
> > > These packages failed to build:
> > >
> > > kernel-2.6.23-m5445x
> > >
> > > Build Failed
> > >
> > > How to remove this error and build the kernel successfully?
> > >
> > > Regards
> > >
> > > Frank
> > >
> > > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > LTIB home page: http://bitshrine.org
> > >
> > > Ltib mailing list
> > > address@hidden
> > > http://lists.nongnu.org/mailman/listinfo/ltib
> > >
> >
> >
> >
> > _______________________________________________
> > LTIB home page: http://bitshrine.org
> >
> > Ltib mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/ltib
>