<< | Thread Index | >> ]    [ << | Date Index | >> ]

To: cipe-l,AT,inka,DOT,de
Subject: Side issue: Building from RH .src.rpm (Re: CIPE fails in RH FC3kernels)
From: Karl Kleinpaste <karl,AT,charcoal,DOT,com>
Date: Thu, 03 Mar 2005 15:32:06 -0500
In-reply-to: <vxk8y55u0rk.fsf@mesquite.charcoal.com> (Karl Kleinpaste'smessage of "Wed, 02 Mar 2005 17:43:43 -0500")
References: <vxk8y55u0rk.fsf@mesquite.charcoal.com>

This may seem a trivial question to address to the list, but...

I can't get the @#$% RH .src.rpm to build.  I've never built kernels
from RH's source, so I suppose I've missed some significant piece of
RH lore along the way.

"rpm -Uvh kernel.*.src.rpm" drops piles of stuff in /usr/src/redhat.
Fine, and I tweak config files to remove REGPARM.

But "rpmbuild -bb --target i586 kernel-2.6.spec" dies because it goes
looking for arch/i586/Makefile at the "make mrproper" stage -- note
"i586" instead of "i386".  This strikes me as odd, as it should surely
be automatic to detect the specific i586 target while building from
the i386 architecture Makefiles and includes.

I put in necessary symlinks by hand, in arch/ for i586 -> i386, and in
include/ for asm-i386 -> asm-i586.  The build then proceeds through
the bulk of object generation until...

    ld:arch/i586/kernel/vmlinux.lds:1008: syntax error
    make: *** [.tmp_vmlinux1] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.35447 (%build)

The relevant content of vmlinux.lds is:

    1007        OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
    1008 ->     OUTPUT_ARCH(1)
    1009        ENTRY(startup_32)
    1010        jiffies = jiffies_64;

I'm deeply confused over this triviality.  A little help, anyone?

Apologies if I'm being extraordinarily dense about something obvious.

<< | Thread Index | >> ]    [ << | Date Index | >> ]