Skip to content

llvm dependencies in ebpf backend can cause cmake problems. #1376

Closed
@ChrisDodd

Description

Pulling the latest p4c, when I run cmake I get some errors:

CMake Warning at p4c/backends/ebpf/CMakeLists.txt:107 (MESSAGE):
  Kernel version 4.10.0 too small, expected 4.16.0.  Ignoring ebpf kernel
  tests...

CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:178 (include):
  include could not find load file:

    /usr/share/llvm/cmake/LLVMExports.cmake
Call Stack (most recent call first):
  p4c/backends/ebpf/CMakeLists.txt:114 (find_package)

CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:181 (include):
  include could not find load file:

    /usr/share/llvm/cmake/LLVM-Config.cmake
Call Stack (most recent call first):
  p4c/backends/ebpf/CMakeLists.txt:114 (find_package)

If I comment out the find_package(LLVM) line in that last cmake file, everything configures, but some stuff is disabled.

The README.md file just says that llvm 3.7.1 or later is required. Is the problem llvm 3.8?

Metadata

Assignees

No one assigned

    Labels

    fixedThis topic is considered to be fixed.questionThis is a topic requesting clarification.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions