Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36302 - gentoo-sources-2.4.22-r2: compilation fails with CONFIG_HW_RANDOM set
Summary: gentoo-sources-2.4.22-r2: compilation fails with CONFIG_HW_RANDOM set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brian Jackson (RETIRED)
URL:
Whiteboard:
Keywords:
: 36730 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-22 07:47 UTC by Stefan Sperling
Modified: 2004-01-08 22:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my kernel configuration (.config,27.84 KB, text/plain)
2003-12-22 07:48 UTC, Stefan Sperling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Sperling 2003-12-22 07:47:20 UTC
When I include CONFIG_HW_RANDOM in my kernel configuration the kernel
fails to compile:

make[3]: Entering directory `/usr/src/linux-2.4.22-gentoo-r2/drivers/char'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-gentoo-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -finline-limit=2000 -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=hw_random  -c -o hw_random.o hw_random.c
hw_random.c: In function `via_init':
hw_random.c:433: `MSR_VIA_RNG' undeclared (first use in this function)
hw_random.c:433: (Each undeclared identifier is reported only once
hw_random.c:433: for each function it appears in.)
hw_random.c: In function `via_cleanup':
hw_random.c:459: `MSR_VIA_RNG' undeclared (first use in this function)
hw_random.c: In function `rng_init':
hw_random.c:592: `cpu_has_xstore' undeclared (first use in this function)
make[3]: *** [hw_random.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r2/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r2/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r2/drivers'
make: *** [_dir_drivers] Error 2


It makes no diference whether the feature is compiled into the kernel
or as a module. With CONFIG_HW_RANDOM=n the kernel compiles as usual.

Reproducible: Always
Steps to Reproduce:
1. Include CONFIG_HW_RANDOM in the kernel configuration (it's in the 'Character devices' section)
2. make dep && make bzImage && make modules

Actual Results:  
see the Deatils section

Expected Results:  
Well, the kernel should have compiled, obviously.
Comment 1 Stefan Sperling 2003-12-22 07:48:54 UTC
Created attachment 22542 [details]
my kernel configuration
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2003-12-22 08:05:15 UTC
try picking only one of of the hardware random drivers
Comment 3 Stefan Sperling 2003-12-23 02:17:26 UTC
# CONFIG_AMD_RNG is not set
# CONFIG_INTEL_RNG is not set
CONFIG_HW_RANDOM=y

- still fails with the same error.

I have actually tried that before, now I tried it once
again to be sure. It does not make a difference.
Comment 4 Ryan Koski 2003-12-23 07:46:32 UTC
I can confirm this same thing.  The gentoo-sources patchset for 2.4.22-r1 included a patch to include/asm-i386/msr.h that defined MSR_VIA_RNG.  This patch to msr.h is no longer present in the gentoo-sources patchset for 2.4.22-r2.
Comment 5 Brian Jackson (RETIRED) gentoo-dev 2003-12-23 07:58:16 UTC
Hmm, that may have been backed out when I dropped the patch that was causing the apic not to work. It'll be fixed in the next release.
Comment 6 Brian Jackson (RETIRED) gentoo-dev 2003-12-29 10:42:22 UTC
*** Bug 36730 has been marked as a duplicate of this bug. ***
Comment 7 Brian Jackson (RETIRED) gentoo-dev 2004-01-08 22:42:05 UTC
should be fixed in -r4