[ovs-discuss] compilation files

Piavlo piavka at cs.bgu.ac.il
Wed Sep 16 20:53:04 UTC 2009


 Compilation of openvswitch fails on the following system

 # gcc --version
gcc (Gentoo 4.3.3-r2 p1.2, pie-10.1.5) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# uname -a
Linux fire-kvm1 2.6.30-gentoo-r4 #3 SMP Tue Sep 15 15:59:56 IDT 2009
x86_64 Intel(R) Xeon(R) CPU L5420 @ 2.50GHz GenuineIntel GNU/Linux
                           
 THe error is:

make -C /lib/modules/2.6.30-gentoo-r4/build
M=/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6
modules
make[4]: Entering directory `/usr/src/linux-2.6.30-gentoo-r4'
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/genetlink-brcompat.o
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/brcompat.o
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/brc_procfs.o
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/brc_sysfs_dp.o
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/brc_sysfs_if.o
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/actions.o
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.o
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/dp_dev.o
  CC [M] 
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/dp_notify.o
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:
In function ‘dp_ifinfo_notify’:
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:180:
error: void value not ignored as it ought to be
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:
In function ‘openvswitch_ioctl’:
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:1378:
warning: cast from pointer to integer of different size
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:1389:
warning: cast to pointer from integer of different size
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:
In function ‘openvswitch_read’:
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:1456:
warning: cast from pointer to integer of different size
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:1496:
warning: comparison of distinct pointer types lacks a cast
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:
In function ‘openvswitch_poll’:
/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.c:1518:
warning: cast from pointer to integer of different size
make[5]: ***
[/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6/datapath.o]
Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: ***
[_module_/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6]
Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r4'
make[3]: *** [default] Error 2
make[3]: Leaving directory
`/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath/linux-2.6'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4/datapath'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/net-misc/vswitch-0.90.4/work/openvswitch-0.90.4'
make: *** [all] Error 2

 Thanks
 Alex




More information about the discuss mailing list