From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A2C5145B5E; Thu, 17 Oct 2024 14:12:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86C6040279; Thu, 17 Oct 2024 14:12:27 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 4A19E4021E for ; Thu, 17 Oct 2024 14:12:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1729167145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e35pHeEHvkgRyOA7ur6Cucqqzb6NQq0zJr9zton2H+c=; b=UzDmikrml34stsCjg9z0eltEVW9Jh0ojk0C5Yrx9xV9jNkX5oPfsK0JXK6irJQrXolVeCP CqUeyCIBjjxvy+VqZfqcQoiW7Cy9LiNhTM0Mww+Ieuly215i02SBhxZNNEa+P+yNW9uf9B aSopWF7+NJSHVngyBVvV701YjDMipNA= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-451-2cIaUEAUOb6vHZ1prWCRbQ-1; Thu, 17 Oct 2024 08:12:24 -0400 X-MC-Unique: 2cIaUEAUOb6vHZ1prWCRbQ-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-53a0b48e8d4so986228e87.3 for ; Thu, 17 Oct 2024 05:12:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729167143; x=1729771943; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e35pHeEHvkgRyOA7ur6Cucqqzb6NQq0zJr9zton2H+c=; b=oRv9ChyvVBgFDlS02azDFvVIvD8covqZG7IuhkA0o7HQRumqx61cE809e/WFoy4Io1 pmA7CO8wuSEkPLsjM7TqH/2bEL3NJ9CmrMHPiZQZjapDZB3JsvFHgwZboxI65yDXWW7L 74yAlAAZ/ghEp/tAFGsQwSDx1TkzB3Df7ebepO04iXAdjjknUqIA0nAeuP2JifkTDBqo hs3nlJQdcQfn/GwsYl50VoCvgZ77KaKkoUsrDMdZKQYf4MZTAwy+t0mM3P48oLleYkuQ HD+4gT2uI7X9hZjCZoaTLVcEfvggHKYPROSbMb+CuSFqgoZKNPZiy6Vmav9HqZS/tlY6 OYbA== X-Gm-Message-State: AOJu0YzUIOOX2G1/RtunnSyGvyuABfbKzFWxX8xGwyVgYPwuqotXJ0AA TwHB5MZ/qWcZW0DiTcl6vYV5VUWLa1q2E9j70J96OPI0BXk2tdPWafz52fZQQD4jNqm0HuwBvKn MvgGGlPq0ppuXFm3wZhqXyonxBliABwYm/dz4CIr55UCHm7TWsTIYeIY1DxslxfkDVJGBZSUagk qPvG/IsyDY57mXej4= X-Received: by 2002:a05:651c:1989:b0:2fa:c5e5:629d with SMTP id 38308e7fff4ca-2fb61b3e6b0mr51325741fa.3.1729167143196; Thu, 17 Oct 2024 05:12:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeUUkUy9+Pc/PfXIoC+Gj9qorcLu2trUb1/xg9lMaNIQSxCZKMdg/9D/LK86TQ8OQJ+yb0HvKSQkjkfGC3pSA= X-Received: by 2002:a05:651c:1989:b0:2fa:c5e5:629d with SMTP id 38308e7fff4ca-2fb61b3e6b0mr51325551fa.3.1729167142727; Thu, 17 Oct 2024 05:12:22 -0700 (PDT) MIME-Version: 1.0 From: David Marchand Date: Thu, 17 Oct 2024 14:12:11 +0200 Message-ID: Subject: Build issue with Fedora Rawhide To: Jeroen de Borst , Rushil Gupta , Joshua Washington Cc: dev X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hello guys, I am not clear if this issue is new (and what caused it), but compilation fails on Rawhide for the net/gve driver (see below for the log). Afaics, Intel drivers wrapped __le16 types (and friends) using macros (example: https://git.dpdk.org/dpdk/tree/drivers/net/i40e/base/i40e_osdep.h= #n47), and I suspect it was to avoid such conflicts. Can you send a fix please? [ 224s] FAILED: drivers/libtmp_rte_net_gve.a.p/net_gve_base_gve_adminq.c.o [ 224s] cc -Idrivers/libtmp_rte_net_gve.a.p -Idrivers -I../drivers -Idrivers/net/gve -I../drivers/net/gve -I../drivers/net/gve/base -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -std=3Dc11 -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fcommon -Werror -fPIC -march=3Dcorei7 -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3Dpmd.net.gve -MD -MQ drivers/libtmp_rte_net_gve.a.p/net_gve_base_gve_adminq.c.o -MF drivers/libtmp_rte_net_gve.a.p/net_gve_base_gve_adminq.c.o.d -o drivers/libtmp_rte_net_gve.a.p/net_gve_base_gve_adminq.c.o -c ../drivers/net/gve/base/gve_adminq.c [ 224s] In file included from ../drivers/net/gve/base/../base/gve_desc.h:1= 1, [ 224s] from ../drivers/net/gve/base/../base/gve.h:9, [ 224s] from ../drivers/net/gve/base/../gve_ethdev.h:13, [ 224s] from ../drivers/net/gve/base/gve_adminq.c:6: [ 224s] ../drivers/net/gve/base/../base/gve_osdep.h:41:20: error: conflicting types for =C3=A2=E2=82=AC=CB=9C__be64=C3=A2=E2=82=AC=E2=84=A2; = have =C3=A2=E2=82=AC=CB=9Crte_be64_t=C3=A2=E2=82=AC=E2=84=A2 {aka =C3=A2=E2= =82=AC=CB=9Clong unsigned int=C3=A2=E2=82=AC=E2=84=A2} [ 224s] 41 | typedef rte_be64_t __be64; [ 224s] | ^~~~~~ [ 224s] In file included from /usr/include/linux/sched/types.h:5, [ 224s] from /usr/include/bits/sched.h:60, [ 224s] from /usr/include/sched.h:43, [ 224s] from /usr/include/pthread.h:22, [ 224s] from ../lib/ethdev/ethdev_driver.h:17, [ 224s] from ../drivers/net/gve/base/../gve_ethdev.h:8: [ 224s] /usr/include/linux/types.h:36:25: note: previous declaration of =C3=A2=E2=82=AC=CB=9C__be64=C3=A2=E2=82=AC=E2=84=A2 with type =C3=A2=E2= =82=AC=CB=9C__be64=C3=A2=E2=82=AC=E2=84=A2 {aka =C3=A2=E2=82=AC=CB=9Clong l= ong unsigned int=C3=A2=E2=82=AC=E2=84=A2} [ 224s] 36 | typedef __u64 __bitwise __be64; [ 224s] | ^~~~~~ [ 224s] ../drivers/net/gve/base/../base/gve_osdep.h:45:20: error: conflicting types for =C3=A2=E2=82=AC=CB=9C__le64=C3=A2=E2=82=AC=E2=84=A2; = have =C3=A2=E2=82=AC=CB=9Crte_le64_t=C3=A2=E2=82=AC=E2=84=A2 {aka =C3=A2=E2= =82=AC=CB=9Clong unsigned int=C3=A2=E2=82=AC=E2=84=A2} [ 224s] 45 | typedef rte_le64_t __le64; [ 224s] | ^~~~~~ [ 224s] /usr/include/linux/types.h:35:25: note: previous declaration of =C3=A2=E2=82=AC=CB=9C__le64=C3=A2=E2=82=AC=E2=84=A2 with type =C3=A2=E2= =82=AC=CB=9C__le64=C3=A2=E2=82=AC=E2=84=A2 {aka =C3=A2=E2=82=AC=CB=9Clong l= ong unsigned int=C3=A2=E2=82=AC=E2=84=A2} [ 224s] 35 | typedef __u64 __bitwise __le64; [ 224s] | ^~~~~~ --=20 David Marchand