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 0B2CC459D9 for ; Thu, 19 Sep 2024 17:44:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E261A40A7D; Thu, 19 Sep 2024 17:44:47 +0200 (CEST) Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) by mails.dpdk.org (Postfix) with ESMTP id A1952406FF for ; Thu, 19 Sep 2024 17:44:46 +0200 (CEST) Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3e26d148991so349593b6e.3 for ; Thu, 19 Sep 2024 08:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726760686; x=1727365486; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=y2rZdUb6hPad7+aK5HkQ9ckRGV9YBuUXcBXpT+wPZTE=; b=f5fNom2uzgpATDmJyJXc8nj+pPpDS9YEReArW9w0oh3Zp19UOsdLAfrzTTdhjegnXC Br3qxEGcEk/l6Z/4iDlaH4NjhTQ11HWcWuZ8tmCKSRy7Sl9E5SeepI9p7AJ5jw62m2Gs cI9FQFSWDSKwwegHZ197vjzGlvwOQScRqbdcLJoP+SE+b8kFrRe7NV0mWY2q4cAietxy ScxdQYkXqmgS0l9pLpGLvmHvSuUrTV7g9d2rhPflJLw0q8WrNj4htyiE9ZBneIDTHcSV gCAwqqFPQh6BKNPNEIxJFMDbBzFr0rmQunIpxVOlCfVRNUo08+Yfsc08xSx2Plvg2Ap5 kBcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726760686; x=1727365486; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y2rZdUb6hPad7+aK5HkQ9ckRGV9YBuUXcBXpT+wPZTE=; b=hFuytl9Mck01XpYzm1K97fvuyMIpKX1U+gBsO9e7HP+9S66HKlulD7Ud5+hA26UAZo 30tzB5kwOOM6a+QnLRELUDF6IclsvDQrhz20bEwNO6nLtu8ckGUtk5yXzjvNYH5+6dbY 0eUTqUUsZUdFdh6+fMNnK89f/zNWC/Zb/zWFrqZfybaxdK8L+Uhk1manFGu5rgI35uER ++RPyQD3zxE1DjVHBqhO1N5Ln+QSDpdG8sMzyf+rjF/zvbboWbd15QIWgUU2oafzBHDL LuvGPi/pMwKn1hJvTNxpvym7cMSuEYVzg0d8TwB+6TipTAV4s7eznsR+oPE9R0u2xlOa tBJg== X-Gm-Message-State: AOJu0YwEK4tclKp5zP7yrXKpFB8VngkDuyAmNmqgd1ApB35/QZrpzbKG qyShIuRal6DPsPh49lGMWizwwpiyVLI0znQLlmPTF1eLjIoS6U8UO4gSWpxnbj0zZci94c7MePl sssH6UfSKr1c5/dflKaWO5sfjnoA= X-Google-Smtp-Source: AGHT+IEq4wkNWrclbb5H4Gngbbtfx+Jf/7wvaErcgCGYi2SgbmFuFl1bqpjcCN/mb/pD5NgEUduCR2Y85YzuikTepPI= X-Received: by 2002:a05:6808:1b24:b0:3e0:4faf:250 with SMTP id 5614622812f47-3e07a17cd60mr14631979b6e.43.1726760685709; Thu, 19 Sep 2024 08:44:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Aldrich Date: Thu, 19 Sep 2024 16:44:34 +0100 Message-ID: Subject: Re: Struggling with meson in dpdk 21.11 To: Aldrin Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Thanks for your help. I seem to have a working solution now. On Tue, Sep 17, 2024 at 9:21=E2=80=AFPM Aldrin wrote: > > Actually, I misunderstood destdir and some of the other context, my apolo= gies. > > I do think that it makes more sense to use "x86_64-native-linux-gcc" as a= prefix and "/opt/intel/dpdk-stable-21.11.7" as a destdir, but that seems u= nlikely to solve the problem. > > maybe you can redirect the output of compilation to a log file and share = its output? > > On Tue, Sep 17, 2024 at 12:40=E2=80=AFPM Aldrin wrote= : >> >> > > $ cd /opt/intel/dpdk-stable-21.11.7 >> > > $ sudo meson -Dexamples=3Dall -Dprefix=3D"/" >> > > -Ddisable_drivers=3Dcommon/mvep,common/mlx5,net/mvneta,net/mvpp2,net= /nfb,net/mlx4,net/mlx5,\ >> > > crypto/qat,crypto/aesni_gcm,crypto/aesni_mb,crypto/armv8,crypto/ccp,= crypto/kasumi,crypto/mvsam,crypto/openssl,\ >> > > crypto/snow3g,crypto/zuc,compress/isal,regex/mlx5,vdpa/mlx5,net/pcap= ,net/szedata2,raw/ifpga,net/af_xdp,net/ipn3ke,\ >> > > crypto/ipsec_mb,crypto/ipsec_mb,crypto/mlx5,compress/mlx5,gpu/cuda b= uild >> > > $ cd build >> > > $ sudo ninja >> >> > Don't build as root. Use: >> > $ ninja -C build >> >> I'm not sure this will address the issue, but you should avoid doing mos= t of these things as root. >> >> `export INSTALL_PREFIX=3D"/x86_64-native-linux-gcc"` >> `meson setup build` >> `meson configure -Dexamples=3Dall \ >> -Dprefix=3D"${INSTALL_PREFIX}" \ >> -Ddisable_drivers=3Dcommon/mvep,common/mlx5,net/mvneta,= net/mvpp2,net/nfb,net/mlx4,net/mlx5,crypto/qat,crypto/aesni_gcm,crypto/aesn= i_mb,crypto/armv8,crypto/ccp,crypto/kasumi,crypto/mvsam,crypto/openssl,cryp= to/snow3g,crypto/zuc,compress/isal,regex/mlx5,vdpa/mlx5,net/pcap,net/szedat= a2,raw/ifpga,net/af_xdp,net/ipn3ke,crypto/ipsec_mb,crypto/ipsec_mb,crypto/m= lx5,compress/mlx5,gpu/cuda \ >> build` >> `meson compile -C build` >> `meson install -C build` >> >> where I do notice that you're setting some conflicting options is that y= ou have `-Dprefix=3D"/"` when configuring and you also have `--destdir=3D..= /x86_64-native-linux-gcc` when installing. I'm not sure why you would set t= hese to different paths unless you're essentially on a root-only system and= you are doing everything from the root directory? >> >> In my example above, I set a variable, INSTALL_PREFIX, and use that in t= he configure step instead. Then, when you install, just let it install to t= he prefix that you specified. Presumably, this will ensure that all paths a= re correct whereas setting a different destdir from the prefix could potent= ially mismatch some paths. >>