[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Xen build error - undefined reference to bpf_program__set_socket_filter


  • To: Arthur Borsboom <arthurborsboom@xxxxxxxxx>, "qemu-devel@xxxxxxxxxx" <qemu-devel@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 17 Oct 2022 10:43:35 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=my6NE2jctkUT5juoBWQqP9FyXBIIo4bZ4t/oX3Q0Jxk=; b=DluDQJBP7AbnutYGmZCCwfUY3oZzI2PGDhVghB4Yez9O9eVkSH2OFXUa3MTfgFHLntQHXIrXvU1jdCG++zYlIrK+SWNFZgPTFhviverRu4QnBXeo/zMIekcgtjBldDNYnfER/GZMn2oBlBDmPA1RRqs+bUeGT+kA5+dnSE8tgedCXw7RJCS1mXUjrzkp+i0XfOA9ht4GTdDV8I+12O9K0KSWqyuwFiEvbXf+iZ052R3vWtYFOgVnO5oipkysOSddtD2K54Tn4jNWu0ZHG11zdg9+URL2rK/CXQ7I253cQIl0CvuNUKToSHEcXTCqk0IjogoJMRYbY9EBpcWuXNYwKQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H8avUDc30eKOL4QlEhe2aqH74Bbxm/pCUSUBgfcYoYjv9V3zx8XCsmnMtmONVPfPftzcTiLbQHK+4h95OP4AZsh8kEyXfchx2wahiyC2hmdSwYxfVW3kvDzJyL8QZCD2i+Voy19zoxWNcOgtdYu4+OKRWmnd8RhknyPvZ4QIVgdo5T+4pn0r1Fs6qc1vCTu55+83TsyzsvSCJwKQE+gq80/FChXvMubi89tYRxDe9qMoscyP4Kzxz7MHpRMuEcuDz2xG+RwHuOM4kDcBfvf2RnimAhCRn88iREJQtF8Ov5eJ85LF4nPKWS/yqFmus9sx+5zCCPRaVOrHv0tdl3klOg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxx>
  • Delivery-date: Mon, 17 Oct 2022 08:43:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.10.2022 10:12, Arthur Borsboom wrote:
> Xen 4.16.1, 4.16.2 and 4.17.0-rc1 don't build anymore in Arch Linux.

That is, qemu doesn't build. That's something to be taken care of there,
not in Xen, I think.

Jan

> I believe it is caused by the missing function
> bpf_program__set_socket_filter provided by libbpf.
> This function has been deprecated in v0.8 and has been removed in v1.0.
> 
> Arch Linux uses libbpf v1.0.1 since October 2022.
> A downgrade to libbpf v0.8.1 fixes the Xen build problem.
> 
> Source about the deprecation:
> https://libbpf-test.readthedocs.io/en/latest/api.html
> 
> Build error:
> 
> /bin/ld: libcommon.fa.p/ebpf_ebpf_rss.c.o: in function `ebpf_rss_load':
> /home/arthur/.cache/yay/xen/src/xen-4.16.1/tools/qemu-xen-build/../qemu-xen/ebpf/ebpf_rss.c:52:
> undefined reference to `bpf_program__set_socket_filter'
> collect2: error: ld returned 1 exit status
> ...
> ...
> ninja: build stopped: subcommand failed.
> make: *** [Makefile:156: run-ninja] Error 1
> make: Leaving directory
> '/home/arthur/.cache/yay/xen/src/xen-4.16.1/tools/qemu-xen-build'
> make[3]: *** [Makefile:212: subdir-all-qemu-xen-dir] Error 2
> make[3]: Leaving directory
> '/home/arthur/.cache/yay/xen/src/xen-4.16.1/tools'
> make[2]: ***
> [/home/arthur/.cache/yay/xen/src/xen-4.16.1/tools/../tools/Rules.mk:161:
> subdirs-install] Error 2
> make[2]: Leaving directory
> '/home/arthur/.cache/yay/xen/src/xen-4.16.1/tools'
> make[1]: *** [Makefile:66: install] Error 2
> make[1]: Leaving directory
> '/home/arthur/.cache/yay/xen/src/xen-4.16.1/tools'
> make: *** [Makefile:140: install-tools] Error 2
> ==> ERROR: A failure occurred in build().
> Aborting...
> -> error making: xen
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.