Bug 157520 - make dep breaks build
make dep breaks build
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ernie Petrides
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-05-12 04:52 EDT by Colin Leroy
Modified: 2007-11-30 17:07 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-06-03 19:59:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Rules.make patch to fix that. (588 bytes, patch)
2005-05-12 04:52 EDT, Colin Leroy
no flags Details | Diff

  None (edit)
Description Colin Leroy 2005-05-12 04:52:27 EDT
Description of problem:
If you issue a `make dep` after make config (or oldconfig), the
include/linux/modversions.h file is incorrectly regenerated. It misses the
rhconfig.h include.

Version-Release number of selected component (if applicable):
# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon)
# rpm -q kernel-source

How reproducible:

Steps to Reproduce:
1.make oldconfig
2.make dep
3.make bzImage
Actual results:
Various strange build errors.

Expected results:
A shiny new kernel...

Additional info:
Comment 1 Colin Leroy 2005-05-12 04:52:27 EDT
Created attachment 114285 [details]
Rules.make patch to fix that.
Comment 3 Colin Leroy 2005-05-23 11:18:21 EDT

nothing new about this?
Comment 4 Ernie Petrides 2005-05-23 16:06:00 EDT
Not yet.  Obviously, "make dep" works fine in our internal build
environment.  I just need to track down what's different.
Comment 5 Colin Leroy 2005-05-23 16:12:35 EDT
Ok; don't hesitate on bugging me for more information!
Comment 6 Ernie Petrides 2005-06-03 19:59:42 EDT
Hi, Colin.

The correct build-from-source procedure is as follows:

  1) make mrproper
  2) cp configs/kernel-2.4.21-i686-smp.config .config  [or some other config]
  3) make oldconfig
  4) make dep
  5) make bzImage
  6) make modules

The Rules.make patch that you proposed in comment #1 does not work in our
build environment because include/linux/rhconfig.h does not exist.  Rather,
it is fabricated by the kernel spec file during kernel-source-* RPM builds.

Once you run "make dep", many things specific to the kernel-source-* RPM
(e.g., the funky include/linux/modules/*.ver files) are overwritten, and
thus you are forced to use the full build (from scratch) procedure above.

Cheers.  -ernie

Note You need to log in before you can comment on or make changes to this bug.