Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2883 - unable to compile with gentoo patches
Summary: unable to compile with gentoo patches
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-20 21:57 UTC by pball
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pball 2002-05-20 21:57:49 UTC
I went a bit off the rails. Ok, I'm playing with gentoo on my RH machine. I
hand-installed gcc 3.1 and then tried to hand-install two linux-gentoo patches:
linux-gentoo-2.4.19-crypto-r4.patch and linux-gentoo-2.4.19-gentoo-r5.patch.
Both gave the same error (below) during make bzImage. Apparently there's
something uncopacetic between the way the gcc-lib include of the cpufreq.c file
works and the way gentoo tunes that sucker. (stock kernels install fine)

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=athlon    -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/3.1/include -DKBUILD_BASENAME=cpufreq 
-DEXPORT_SYMTAB -c cpufreq.c
In file included from cpufreq.c:28:
/usr/src/linux/include/linux/cpufreq.h:41:2: #error fill in SMP version
cpufreq.c: In function `cpufreq_setup':
cpufreq.c:97: warning: implicit declaration of function `cpufreq_max'
cpufreq.c:97: invalid lvalue in assignment
cpufreq.c:98: warning: implicit declaration of function `cpufreq_min'
cpufreq.c:98: invalid lvalue in assignment
cpufreq.c: In function `cpufreq_restore':
cpufreq.c:192: warning: implicit declaration of function `cpufreq_current'
cpufreq.c: In function `cpufreq_set':
cpufreq.c:284: invalid lvalue in assignment
cpufreq.c: At top level:
cpufreq.c:407: invalid lvalue in unary `&'
cpufreq.c:407: initializer element is not constant
cpufreq.c:407: (near initialization for `ctl_cpu_vars[0].data')
cpufreq.c:411: initializer element is not constant
cpufreq.c:411: (near initialization for `ctl_cpu_vars[0]')
cpufreq.c:415: invalid lvalue in unary `&'
cpufreq.c:415: initializer element is not constant
cpufreq.c:415: (near initialization for `ctl_cpu_vars[1].data')
cpufreq.c:419: initializer element is not constant
cpufreq.c:419: (near initialization for `ctl_cpu_vars[1]')
cpufreq.c:426: initializer element is not constant
cpufreq.c:426: (near initialization for `ctl_cpu_vars[2]')
cpufreq.c:429: initializer element is not constant
cpufreq.c:429: (near initialization for `ctl_cpu_vars[3]')
cpufreq.c: In function `cpufreq_init':
cpufreq.c:503: invalid lvalue in assignment
cpufreq.c:512: invalid lvalue in assignment
make[2]: *** [cpufreq.o] Error 1
make[2]: Leaving directory `/usr/src/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/kernel'
make: *** [_dir_kernel] Error 2

Any ideas?  I thought you guys might want to know.
Comment 1 Brandon Low (RETIRED) gentoo-dev 2002-09-06 17:40:28 UTC
status on gentoo-sources-2.4.19-r9 please?