Re: xdp2 on ubuntu-24.04.3-live-server-amd64?
dave seddon <[email protected]> Fri, 26 Sep 2025 15:38:23 -0700
| Newsgroups | dev.linux.lists.xdp2 |
|---|---|
| Message-ID | <CANypexRQ4aOd9ASrXHD=AOLsNTC_K2Znta=58uuhsCy+3YkyQw@mail.gmail.com> |
Package versions das@ubuntu2204:~/xdp2/src$ sudo apt-get install -y build-essential gcc-multilib pkg-config bison flex libboost-all-dev libpcap-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done build-essential is already the newest version (12.10ubuntu1). gcc-multilib is already the newest version (4:13.2.0-7ubuntu1). pkg-config is already the newest version (1.8.1-2build1). bison is already the newest version (2:3.8.2+dfsg-1build2). flex is already the newest version (2.6.4-8.2build1). libboost-all-dev is already the newest version (1.83.0.1ubuntu2). libpcap-dev is already the newest version (1.10.4-4.1ubuntu3). 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. das@ubuntu2204:~/xdp2/src$ sudo apt-get install -y graphviz Reading package lists... Done Building dependency tree... Done Reading state information... Done graphviz is already the newest version (2.42.2-9ubuntu0.1). 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. das@ubuntu2204:~/xdp2/src$ sudo apt-get install -y libelf-dev clang llvm libbpf-dev linux-tools-$(uname -r) Reading package lists... Done Building dependency tree... Done Reading state information... Done libelf-dev is already the newest version (0.190-1.1ubuntu0.1). clang is already the newest version (1:18.0-59~exp2). llvm is already the newest version (1:18.0-59~exp2). libbpf-dev is already the newest version (1:1.3.0-2build2). linux-tools-6.8.0-84-generic is already the newest version (6.8.0-84.84). 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. das@ubuntu2204:~/xdp2/src$ ./configure Platform is default Architecture is x86_64 Architecture includes for x86_64 not found, using generic Target Architecture is COMPILER is gcc Clang library missing or broken! das@ubuntu2204:~/xdp2/src$ On Fri, Sep 26, 2025 at 3:26=E2=80=AFPM dave seddon <[email protected]= om> wrote: > > G'day Tom, > > I hope you are doing well. > > > I've been trying to get xdp2 working on nixOS and it's been quite a > journey because of both gcc and clang/llvm. I'm getting pretty close > now, but I suspect I'm getting segfaults with the xdp2-compiler > because of versions of compilers and libraries xdp2 is expecting. ( > Let's not discuss nix for now though ) > > > With the intention of compiling xdp2 on a more "normal" distribution, > I tried following the instructions in the readme.md ( > https://github.com/xdp2-dev/xdp2/blob/main/README.md#prerequisites ) > on a completely fresh ubuntu-24.04.3-live-server-amd64. > > To my surprise, I'm getting "Clang library missing or broken!" > > " > das@ubuntu2204:~/xdp2/src$ ./configure > > > Platform is default > Architecture is x86_64 > Architecture includes for x86_64 not found, using generic > Target Architecture is > COMPILER is gcc > Clang library missing or broken! > das@ubuntu2204:~/xdp2/src$ > " > > I guess I'm unclear which distribution system xdp2 expects. Maybe > Debian? Which version please? > > I'd love to know which versions of gcc, clang, python, boost are > recommended please. > > Thanks in advance, > > -- > Regards, > Dave Seddon --=20 Regards, Dave Seddon +1 415 857 5102