Skip to content

Vrouter doesn't build when docker host is running different kernel than latest centos #11

Description

@jluk-codi

after running make setup on mac
1:25 PM
vrouter build fails with the following
1:25 PM
d /root/contrail/vrouter/ && make SANDESH_HEADER_PATH=/root/contrail/build/debug/vrouter SANDESH_SRC_ROOT=../build/kbuild/ SANDESH_EXTRA_HEADER_PATH=/root/contrail/src/contrail-common
make -C /lib/modules/4.9.60-linuxkit-aufs/build M=/root/contrail/vrouter modules
make: *** /lib/modules/4.9.60-linuxkit-aufs/build: No such file or directory. Stop.
make: *** [default] Error 2
scons: *** [vrouter/vrouter.ko] Error 2
scons: building terminated because of errors.
1:25 PM
this is with top level scons
1:26 PM
jluk ok, this we discussed earlier I think
1:26 PM
jluk
try setting this env variable
export KERNEL_VER=3.10.0-693.el7.x86_64
export KERNELDIR=/lib/modules/$KERNEL_VER/build
scons --kernel-dir=$KERNELDIR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions