[ovs-discuss] OpenVSwitch 1.7.1 does not compile on later Ubuntu 12.10 & latest Linux kernels

Polehn, MikeX A mikex.a.polehn at intel.com
Wed Dec 5 22:23:59 UTC 2012


Hi!

openvswitch 1.7.1 does not compile on later Ubuntu 12.10

Later kernels don't seem to have:

/arch/x86/include/asm/system.h

Which is required for openvswitch 1.7.1

At first I thought it was a Ubuntu kernel patch, but the latest Linux kernel does not have /arch/x86/include/asm/system.h
either.

Below shows the build error and also the search on the Linux kernels for Ubuntu 12.10 and Ubuntu 12.04

Mike

Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0-17-generic x86_64)

* Documentation:  https://help.ubuntu.com/

  System information as of Wed Dec  5 13:53:44 PST 2012

  System load:  0.0                 Users logged in:         0
  Usage of /:   10.7% of 407.03GB   IP address for eth0:     192.168.5.247
  Memory usage: 0%                  IP address for eth1:     10.1.1.247
  Swap usage:   0%                  IP address for br0:      192.168.0.247
  Processes:    252                 IP address for br-ovs-1: 172.168.0.247

  Graph this data and manage this system at https://landscape.canonical.com/

35 packages can be updated.
17 updates are security updates.

Last login: Tue Dec  4 08:33:25 2012 from 192.168.194.132

mike at Oflow4:~$ sudo su
[sudo] password for mike:

root at Oflow4:/home/mike# cd /usr/src/openvswitch-1.7.1

root at Oflow4:/usr/src/openvswitch-1.7.1# make
make  all-recursive
make[1]: Entering directory `/usr/src/openvswitch-1.7.1'
Making all in datapath
make[2]: Entering directory `/usr/src/openvswitch-1.7.1/datapath'
Making all in linux
make[3]: Entering directory `/usr/src/openvswitch-1.7.1/datapath/linux'
make -C /lib/modules/3.5.0-17-generic/build M=/usr/src/openvswitch-1.7.1/datapath/linux modules
make[4]: Entering directory `/usr/src/linux-headers-3.5.0-17-generic'
  CC [M]  /usr/src/openvswitch-1.7.1/datapath/linux/datapath.o
/usr/src/openvswitch-1.7.1/datapath/linux/datapath.c:42:24: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[5]: *** [/usr/src/openvswitch-1.7.1/datapath/linux/datapath.o] Error 1
make[4]: *** [_module_/usr/src/openvswitch-1.7.1/datapath/linux] Error 2
make[4]: Leaving directory `/usr/src/linux-headers-3.5.0-17-generic'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/usr/src/openvswitch-1.7.1/datapath/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/openvswitch-1.7.1/datapath'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/openvswitch-1.7.1'
make: *** [all] Error 2
root at Oflow4:/usr/src/openvswitch-1.7.1#


root at Oflow4:/usr/src/openvswitch-1.7.1# cd ../kernel/
root at Oflow4:/usr/src/kernel# dir
config-3.5.0-17-generic  linux-3.6.9.tar.bz2  linux-source-3.5.0.tar.bz2
linux-3.6.9              linux-source-3.5.0

root at Oflow4:/usr/src/kernel# find linux-source-3.5.0 |grep system.h
linux-source-3.5.0/tools/power/cpupower/bench/system.h
linux-source-3.5.0/tools/perf/util/include/asm/system.h
linux-source-3.5.0/arch/arm/include/asm/system.h
linux-source-3.5.0/arch/arm/mach-vt8500/include/mach/system.h
linux-source-3.5.0/arch/arm/mach-shmobile/include/mach/system.h
linux-source-3.5.0/arch/arm/mach-msm/include/mach/system.h
linux-source-3.5.0/arch/arm/mach-gemini/include/mach/system.h
linux-source-3.5.0/arch/cris/include/arch-v10/arch/system.h
linux-source-3.5.0/arch/cris/include/arch-v32/arch/system.h
linux-source-3.5.0/arch/mips/include/asm/dec/system.h
linux-source-3.5.0/arch/x86/math-emu/fpu_system.h
linux-source-3.5.0/sound/core/seq/seq_system.h


#### System with Ubuntu 12.04 and kernel source code:

Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic x86_64)

* Documentation:  https://help.ubuntu.com/

  System information as of Wed Dec  5 14:02:42 PST 2012

  System load:  0.15               Users logged in:         1
  Usage of /:   6.3% of 413.04GB   IP address for eth0:     192.168.5.241
  Memory usage: 2%                 IP address for eth1:     10.1.1.241
  Swap usage:   0%                 IP address for br0:      192.168.0.241
  Processes:    334                IP address for br-ovs-1: 172.168.0.241

  Graph this data and manage this system at https://landscape.canonical.com/

Last login: Wed Dec  5 09:38:37 2012 from 192.168.194.135


root at Oflow3:/home/mike# cd /usr/src/kernel/
root at Oflow3:/usr/src/kernel# dir
config-3.2.0-29-generic  linux-3.6.9.tar.bz2  linux-source-3.2.0  linux-source-3.2.0.tar.bz2

root at Oflow3:/usr/src/kernel# find linux-source-3.2.0 |grep system.h
linux-source-3.2.0/tools/perf/util/include/asm/system.h
linux-source-3.2.0/tools/power/cpupower/bench/system.h
linux-source-3.2.0/sound/core/seq/seq_system.h
linux-source-3.2.0/arch/h8300/include/asm/system.h
linux-source-3.2.0/arch/tile/include/asm/system.h
linux-source-3.2.0/arch/sparc/include/asm/system.h
linux-source-3.2.0/arch/avr32/include/asm/system.h
linux-source-3.2.0/arch/arm/mach-ixp23xx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-w90x900/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-ks8695/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-pnx4008/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-s3c2410/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-s5pv210/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-nomadik/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-ux500/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-lpc32xx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-omap2/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-iop33x/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-kirkwood/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-s5pc100/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-cns3xxx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-bcmring/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-rpc/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-integrator/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-exynos/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-footbridge/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-orion5x/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-prima2/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-ebsa110/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-realview/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-ep93xx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-dove/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-s5p64x0/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-davinci/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-vexpress/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-netx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-highbank/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-mv78xx0/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-zynq/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-picoxcell/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-ixp4xx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-shmobile/include/mach/system.h
linux-source-3.2.0/arch/arm/plat-spear/include/plat/system.h
linux-source-3.2.0/arch/arm/plat-omap/include/plat/system.h
linux-source-3.2.0/arch/arm/mach-h720x/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-ixp2000/include/mach/system.h
linux-source-3.2.0/arch/arm/plat-mxc/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-spear3xx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-msm/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-vt8500/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-mmp/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-sa1100/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-versatile/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-clps711x/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-shark/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-omap1/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-at91/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-s3c64xx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-iop13xx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-iop32x/include/mach/system.h
linux-source-3.2.0/arch/arm/include/asm/system.h
linux-source-3.2.0/arch/arm/mach-gemini/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-spear6xx/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-u300/include/mach/system.h
linux-source-3.2.0/arch/arm/plat-tcc/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-tegra/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-pxa/include/mach/system.h
linux-source-3.2.0/arch/arm/mach-mxs/include/mach/system.h
linux-source-3.2.0/arch/powerpc/include/asm/system.h
linux-source-3.2.0/arch/sh/include/asm/system.h
linux-source-3.2.0/arch/m32r/include/asm/system.h
linux-source-3.2.0/arch/m68k/include/asm/system.h
linux-source-3.2.0/arch/s390/include/asm/system.h
linux-source-3.2.0/arch/unicore32/include/asm/system.h
linux-source-3.2.0/arch/frv/include/asm/system.h
linux-source-3.2.0/arch/mn10300/include/asm/system.h
linux-source-3.2.0/arch/blackfin/include/asm/system.h
linux-source-3.2.0/arch/hexagon/include/asm/system.h
linux-source-3.2.0/arch/openrisc/include/asm/system.h
linux-source-3.2.0/arch/x86/math-emu/fpu_system.h
linux-source-3.2.0/arch/x86/um/asm/system.h
linux-source-3.2.0/arch/x86/include/asm/system.h
linux-source-3.2.0/arch/parisc/include/asm/system.h
linux-source-3.2.0/arch/score/include/asm/system.h
linux-source-3.2.0/arch/mips/include/asm/system.h
linux-source-3.2.0/arch/mips/include/asm/dec/system.h
linux-source-3.2.0/arch/microblaze/include/asm/system.h
linux-source-3.2.0/arch/cris/include/arch-v32/arch/system.h
linux-source-3.2.0/arch/cris/include/asm/system.h
linux-source-3.2.0/arch/cris/include/arch-v10/arch/system.h
linux-source-3.2.0/arch/alpha/include/asm/system.h
linux-source-3.2.0/arch/xtensa/include/asm/system.h
linux-source-3.2.0/arch/ia64/include/asm/system.h
linux-source-3.2.0/include/asm-generic/system.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20121205/b1dfbce0/attachment.html>


More information about the discuss mailing list