rawhide report: 20070320 changes -- vmware module building [SOLVED]
John Poelstra
poelstra at redhat.com
Wed Mar 21 21:22:05 UTC 2007
John Poelstra said the following on 03/21/2007 01:39 PM Pacific Time:
> Jim Bevier said the following on 03/21/2007 10:26 AM Pacific Time:
>> Well it looks like it is the CFLAGS parameters in the kernel Makefile
>> that is causing the problem. I.e.
>> /usr/src/kernels/2.6.20-1.2997.fc7-x86_64/Makefile or
>> /usr/src/kernels/2.6.20-1.2999.fc7-x86_64/Makefile. You need to
>> replace the -Wextra parameter with -Wundef that is around line 318 in
>> the Makefile. This will allow VMWare tp build again without an error.
>>
>> CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
>> -fno-strict-aliasing -fno-common \
>> -Werror-implicit-function-declaration \
>> -Wundef -Wno-unused-parameter -Wno-missing-field-initializers
>> ## -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
>>
>> Jim
>>
>
> Thanks. Unfortunately I'm trying to build against
> /usr/src/kernels/2.6.20-1.2925.fc6-i586 and the parameters you refer to
> are not in the Makefile.
>
> This is the error I get....
>
> cc1plus: warning: command line option
> "-Werror-implicit-function-declaration" is valid for C/ObjC but not for C++
> cc1plus: warning: command line option "-Wdeclaration-after-statement" is
> valid for C/ObjC but not for C++
> cc1plus: warning: command line option "-Wno-pointer-sign" is valid for
> C/ObjC but not for C++
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> cc1plus: warning: command line option "-ffreestanding" is valid for
> C/ObjC but not for C++
> /tmp/vmware-config9/vmmon-only/common/task_compat.h: In function ‘int
> Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV321]’:
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1522: warning:
> ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1523: warning:
> ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h: In function ‘int
> Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV3]’:
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1522: warning:
> ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1523: warning:
> ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h: In function ‘int
> Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageGSX1]’:
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1522: warning:
> ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1523: warning:
> ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h: In function ‘int
> Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV2]’:
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1522: warning:
> ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1523: warning:
> ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h: In function ‘int
> Vmx86_RunVM_V4(VMDriver*, Vcpuid) [with VMCrossPage = VMCrossPageV4]’:
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::rsp’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h: In function ‘int
> Vmx86_RunVM(VMDriver*, Vcpuid)’:
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1522: warning:
> ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1523: warning:
> ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::rsp’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::rsp’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:2073: warning:
> ‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h: In function ‘void
> Task_Switch_V45(VMDriver*, Vcpuid)’:
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1713: warning:
> ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
> this function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1713: warning:
> ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1713: warning:
> ‘sysenterState.SysenterStateV45::rsp’ may be used uninitialized in this
> function
> /tmp/vmware-config9/vmmon-only/common/task_compat.h:1713: warning:
> ‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in this
> function
> CC [M] /tmp/vmware-config9/vmmon-only/common/vmx86.o
> CC [M] /tmp/vmware-config9/vmmon-only/vmcore/compat.o
> CC [M] /tmp/vmware-config9/vmmon-only/vmcore/moduleloop.o
> LD [M] /tmp/vmware-config9/vmmon-only/vmmon.o
> Building modules, stage 2.
> MODPOST 1 modules
> CC /tmp/vmware-config9/vmmon-only/vmmon.mod.o
> LD [M] /tmp/vmware-config9/vmmon-only/vmmon.ko
> make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2925.fc6-i586'
> cp -f vmmon.ko ./../vmmon.o
> make: Leaving directory `/tmp/vmware-config9/vmmon-only'
> Unable to make a vmmon module that can be loaded in the running kernel:
> insmod: error inserting '/tmp/vmware-config9/vmmon.o': -1 Invalid module
> format
> There is probably a slight difference in the kernel configuration
> between the set of C header files you specified and your running
> kernel. You may want to rebuild a kernel based on that directory, or
> specify another directory.
>
> For more information on how to troubleshoot module-related problems,
> please visit our Web site at
> "http://www.vmware.com/download/modules/modules.html" and
> "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
>
>
> Execution aborted.
>
This was the cause of the problem: https://www.redhat.com/archives/fedora-list/2007-March/msg02775.html
The wrong kernel-devel is being installed using yum. I removed kernel-devel-i586 and manually installed kernel-devel.i686 and it builds fine.
I've filed a bug against against yum https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233370
More information about the fedora-test-list
mailing list