Coder Social home page Coder Social logo

compile error about ply HOT 6 CLOSED

wkz avatar wkz commented on August 21, 2024
compile error

from ply.

Comments (6)

TinyWindzz avatar TinyWindzz commented on August 21, 2024

with command:
./autogen.sh
./configure --host=aarch64-linux-gnu
make

from ply.

wkz avatar wkz commented on August 21, 2024

Honest question: Are you happy with how you've formatted that output?

I'm over here providing free support and you can't be bothered to paste the log in a way that is at least somewhat readable. Normally I would paste it in my editor, fix the formatting, and try to give you some help. Unfortunately for you, you caught me on a bad day; sorry. Fix the formatting and I'll take a look at it.

from ply.

jgsun avatar jgsun commented on August 21, 2024

error: 'BPF_JSLE' undeclared
It seems that the kernel header version don't meet the ply.

@wkz Which version of ply support kernel version 4.9?

from ply.

TinyWindzz avatar TinyWindzz commented on August 21, 2024

My compilation environment is ubuntu x64(linux-4.4), and I'd like to cross compile ply for linux-5.4 arm64.
Any ideas or suggestions?

Thx

from ply.

wkz avatar wkz commented on August 21, 2024

BPF_JSLE has been in the kernel since 4.14, so if you're building against 5.4 you should have no problems. The fact that you do have problems indicate one of the following:

  • Something in your build environment is causing the compiler to use the host's headers.
  • Your toolchain is built against headers that are older than 4.14
  • Your toolchain is unable to find your 5.4 kernel's headers.

Have you installed your target's kernel headers somewhere in your toolchain's path? I.e. have you executed make headers_install from your kernel?

from ply.

TinyWindzz avatar TinyWindzz commented on August 21, 2024

I made the following modification, and finally compiled it successfully.

make headers_install ARCH=arm64 INSTALL_HDR_PATH=/home/frank/project/kernel_head
CFLAGS="-I /home/frank/project/kernel_head/include" ./configure --host=aarch64-linux-gnu --

BR/frank

from ply.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.