2.6.35.10-74 compilation (and build) problems

Mr Dash Four mr.dash.four at googlemail.com
Tue Jan 11 19:16:33 UTC 2011


>> The problem is that even with the patch valid kernel options are still 
>> getting excluded (DRM_NOVEAU group of options for example, but there are 
>> *many* more options which are missing) and I am unable to get this to 
>> work no matter what I tried!
>>     
>
> The config you sent did not have DRM_NOVEAU enabled but I used your config
> running through the same procedures with success.
>
> [dzickus at ihatethathostname rpmbuild]$
> [dzickus at ihatethathostname rpmbuild]$ cp ~/tmp/dashfour.config SOURCES/config-local
> [dzickus at ihatethathostname rpmbuild]$ diff ~/tmp/dashfour.config SOURCES/config-local
> [dzickus at ihatethathostname rpmbuild]$ rpmbuild -bp  SPECS/kernel.spec &> /dev/null && echo "pass" || echo "fail"
> pass
> [dzickus at ihatethathostname rpmbuild]$ pushd
> ~/rpmbuild/BUILD/kernel-2.6.35.fc14/linux-2.6.35.x86_64 ~/rpmbuild
> [dzickus at ihatethathostname linux-2.6.35.x86_64]$ pwd
> /home/dzickus/rpmbuild/BUILD/kernel-2.6.35.fc14/linux-2.6.35.x86_64
> [dzickus at ihatethathostname linux-2.6.35.x86_64]$ diff ~/tmp/dashfour.config .config
> 3,4c3,4
> < # Linux kernel version: 2.6.35.10-74.fc13.x86_64
> < # Tue Jan  4 20:41:14 2011
> ---
>   
>> # Linux kernel version: 2.6.35.10
>> # Tue Jan 11 13:00:49 2011
>>     
> [dzickus at ihatethathostname linux-2.6.35.x86_64]$
>
>
> Am I missing something?
>   
Before I answer that I am assuming that the patch for kernel.spec would 
allow me to use custom options (including those from previous revisions 
of the kernel) and these will be 'amalgamated' (in some sort of 'union') 
with the options of the current kernel which is being compiled, where 
preference will be given to the options specified in config-local, 
right? If so, I do not think that patch works!

I attach two files in this post (please refer to what these are for 
below) - "solar-34-options.config" and ".config". Here is what I do 
after executing "rpm -ivh kernel-*.rpm"

1. cp ~/t/kernel/solar-34-options.config ~/rpmbuild/SOURCES/config-local 
(solar-34-options.config contains the entire set of .34 options I used 
to compile the .34 version of the kernel with)
2. rpmbuild -bp --target=`uname -m` kernel.spec

After much output I am ending up with the following error:

=====================================
+ make ARCH=x86_64 nonint_oldconfig
.config:3287:warning: symbol value 'm' invalid for MFD_WM8994
CONFIG_BACKLIGHT_PCF50633
make[1]: *** [nonint_oldconfig] Error 1
make: *** [nonint_oldconfig] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.v6UZfC (%prep)
=====================================

So, the presumption is that MFD_WM8994 is either deprecated or not used 
as it cannot be specified as a kernel module, so I do this:

3. vi config-local and change  "CONFIG_MFD_WM8994=m" to "# 
CONFIG_MFD_WM8994 is not set"
4. rpmbuild -bp --target=`uname -m` kernel.spec

Again, after much output I end up with the following error:

=====================================
+ make ARCH=x86_64 nonint_oldconfig
CONFIG_BACKLIGHT_PCF50633
make[1]: *** [nonint_oldconfig] Error 1
make: *** [nonint_oldconfig] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.GTGMAV (%prep)
=====================================

I presume that the CONFIG_BACKLIGHT_PCF50633 is missing from the .34 
version of the config file. This is indeed the case, so I do the following:

5. vi config-local and then add "# CONFIG_BACKLIGHT_PCF50633 is not set" 
at the end of the CONFIG_BACKLIGHT_* group of options (just in case the 
parser is sensitive to the sections of the .config file)
6. rpmbuild -bp --target=`uname -m` kernel.spec (no errors!)
7. grep "DRM_NO" ~/rpmbuild/BUILD/kernel-2.6.35.fc13/linux-2.6.35.x86_64/
.config (copy of ~/rpmbuild/BUILD/kernel-2.6.35.fc13/linux-2.6.35.x86_64/
.config is the second file I attached to this message) - no output, 
which means that the DRM_NOVEAU group of options which exist in my 
config-local file (which is a copy of my .34 options) have 
'mysteriously' disappeared in the resulting .config file which is used 
for the kernel compilation.

Executing "make oldconfig" does not change that! DRM_NOVEAU group of 
options are vital as they compile the driver for my video card and if 
this is missing I am getting the VGA-style bootup screen and everything 
is a mess - all this I have already described in the first post of this 
thread.

Am I doing something wrong?

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: solar-34-options.config
Url: http://lists.fedoraproject.org/pipermail/kernel/attachments/20110111/062894f4/attachment-0002.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: .config
Url: http://lists.fedoraproject.org/pipermail/kernel/attachments/20110111/062894f4/attachment-0003.pl 


More information about the kernel mailing list