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 C1CBBA00C2; Thu, 17 Nov 2022 07:57:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A9BCA40DDC; Thu, 17 Nov 2022 07:57:23 +0100 (CET) Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) by mails.dpdk.org (Postfix) with ESMTP id DE92040DDA for ; Thu, 17 Nov 2022 07:57:22 +0100 (CET) Received: by mail-vs1-f51.google.com with SMTP id d185so687186vsd.0 for ; Wed, 16 Nov 2022 22:57:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=mKfTWh/oac9EjGSbDcCSK4we6jUxSy8gdk9CevyEaLQ=; b=c6Bq7JW3pvI9oHxN3UIcEKkttaKmXvOaxG41rrbkWiQmYNpAM7kglu0Vkk98YjwznN UniRgowVxy3pOTe6zfmJj/dutTimacC542lfZIBQ/GGXN8RAsEcUffeDsdNFULEthWK4 VmzxyTrnQkrHv927bTlA2IkQF3PX1AxCl45pzACT8bnrHVQ3yeeJBuo9Qai0aB/rlVG5 0FCLANNhKnPs56VJsF5cipIadpqZNpDoOZuxQkRF4Aw0jAZ89tQwKufTf+y4BBBU6r3S xq6++gIME/72BN4yDZiae4Xp44UIEtxVgVBNnr/Z4ioVG0Z4TawF8w5RV+99D6r4t0SP 1LEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mKfTWh/oac9EjGSbDcCSK4we6jUxSy8gdk9CevyEaLQ=; b=wOcngnhTKlxsmLpJNQ7S1+eGoM/E+4cEAklkoumEcNCANCgktozLL3HvhgeoXV9mte +e4QobXvAbTrpsw8qebQT7kgFKThIgNA4TNmEspQDcfoE8wf+rFj3GzYyzAvZNFPkI9x XHLEMLqpsY+cujCY0fkO8zH17ah2zlCSUEuN+a0K1PqdN+d2cpiaKvhcB5BwAHuX5qwj wLdGnXx+Kui8rfxcAYMtwAykeYGZH6J4I8p7RJn0oQkQ+jl5IBBdyoFb2Oh+lewF8X+T N20UGY6JbW87KIXfveJQ4xfr7oK8LXC4Uc1jPQQG/7z0xbMP1V6OXLxg+etM69mEGJiu LrVQ== X-Gm-Message-State: ANoB5pkYkUqP0ml3cv/MYeaGtGlRIow/DlfX+p0Jny6bd2fGF7a5PEPp z/aSatnjtVCH0pYUyH4HaIOoD8cNArfidw19PR7gX1eI3zWaDw== X-Google-Smtp-Source: AA0mqf52igSCMeKYpKvLnNZS7gUBNIqjks7sHkNkTUUd0QWZ6rqD9obNviMT2VdL/Nioxidw9ZP7rCS6J5O1HgixCAI= X-Received: by 2002:a05:6102:3541:b0:3ad:b93c:7c5e with SMTP id e1-20020a056102354100b003adb93c7c5emr907265vss.60.1668668242046; Wed, 16 Nov 2022 22:57:22 -0800 (PST) MIME-Version: 1.0 From: Yi Li Date: Thu, 17 Nov 2022 14:57:11 +0800 Message-ID: Subject: compile failed with t3.c To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 Hi list, When i try to compile examples/bpf/t3.c with command annotated in that source file, got this error: [root@server bpf]# clang -O2 -U __GNUC__ -target bpf -Wno-int-to-void-pointer-cast -c t3.c In file included from t3.c:27: In file included from /usr/local/include/rte_mbuf_core.h:22: /usr/local/include/rte_byteorder.h:30:16: error: invalid output constraint '=Q' in asm : [x1] "=Q" (x) ^ 1 error generated. [root@server bpf]# I think this should be the root cause as noted linux kernel Documentation/bpf/bpf_devel_QA.txt BPF programs may recursively include header file(s) with file scope inline assembly codes. The default target can handle this well, while bpf target may fail if bpf backend assembler does not understand these assembly codes, which is true in most cases.