Is it possible compile an a new x86_64 kernel on an i686 CentOS system? When I tried to do so with this command rpmbuild -ba --target x86_64 kernel-2.6.spec I got the following error: make[1]: *** [nonint_oldconfig] Error 51 make: *** [nonint_oldconfig] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.40130 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.40130 (%build) Isn't gcc able to do cross compile?
On Fri, 2006-01-13 at 15:06 -0800, Fong Vang wrote:> Is it possible compile an a new x86_64 kernel on an i686 CentOS > system?no, you need to do it from an x86_64 machine. You can make i[3,4,5,6]86 RPMS on an x86_64 machine ... can't do x86_64 RPMS from a i686 machine.> When I tried to do so with this command > > rpmbuild -ba --target x86_64 kernel-2.6.spec > > I got the following error: > > make[1]: *** [nonint_oldconfig] Error 51 > make: *** [nonint_oldconfig] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.40130 (%build) > > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.40130 (%build) > > > > Isn't gcc able to do cross compile? > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20060113/01cb5ff8/attachment-0005.sig>
On 13/01/06, Johnny Hughes <mailing-lists at hughesjr.com> wrote:> On Fri, 2006-01-13 at 15:06 -0800, Fong Vang wrote: > > Is it possible compile an a new x86_64 kernel on an i686 CentOS > > system? > > no, you need to do it from an x86_64 machine.Not strictly true, it is possible to build a x86_64 kernel on an i686 using a cross compiler - I rebuilt my first x86_64 kernel in this way ... If you _really_ want to do it, googling for 'cross compiler x86_64' will produce many pointers, but I wouldn't recommend going there ... James Pearson