<div dir="ltr"><div>Actually, I misunderstood destdir and some of the other context, my apologies.</div><div><br></div><div>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 unlikely to solve the problem.</div><div><br></div><div>maybe you can redirect the output of compilation to a log file and share its output?</div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 17, 2024 at 12:40 PM Aldrin <<a href="mailto:akmontan@ucsc.edu">akmontan@ucsc.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">> > $ cd /opt/intel/dpdk-stable-21.11.7<br>> > $ sudo meson -Dexamples=all -Dprefix="/"<br>
> > -Ddisable_drivers=common/mvep,common/mlx5,net/mvneta,net/mvpp2,net/nfb,net/mlx4,net/mlx5,\<br>> 
> crypto/qat,crypto/aesni_gcm,crypto/aesni_mb,crypto/armv8,crypto/ccp,crypto/kasumi,crypto/mvsam,crypto/openssl,\<br>> 
> crypto/snow3g,crypto/zuc,compress/isal,regex/mlx5,vdpa/mlx5,net/pcap,net/szedata2,raw/ifpga,net/af_xdp,net/ipn3ke,\<br>> 
> crypto/ipsec_mb,crypto/ipsec_mb,crypto/mlx5,compress/mlx5,gpu/cuda build<br>> 
> $ cd build<br>> 
> $ sudo ninja<br>
<br>> 
Don't build as root. Use:<br>>  $ ninja -C build<div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><br></div><div>I'm not sure this will address the issue, but you should avoid doing most of these things as root.</div><div><br></div><div><span style="font-family:monospace">`export INSTALL_PREFIX="/x86_64-native-linux-gcc"`</span><br></div><div><span style="font-family:monospace">`meson setup build`</span></div><div><span style="font-family:monospace">`meson configure -Dexamples=all \</span></div><div><span style="font-family:monospace">                 -Dprefix="${INSTALL_PREFIX}"   \<br>                 -Ddisable_drivers=common/mvep,</span><span style="font-family:monospace">common/mlx5,</span><span style="font-family:monospace"></span><span style="font-family:monospace">net/mvneta,</span><span style="font-family:monospace"></span><span style="font-family:monospace">net/mvpp2,</span><span style="font-family:monospace"></span><span style="font-family:monospace">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 \</span></div><div><span style="font-family:monospace">                 build`</span></div><div><span style="font-family:monospace">`meson compile -C build`</span></div><div><span style="font-family:monospace">`meson install -C build`<br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:arial,sans-serif">where I do notice that you're setting some conflicting options is that you have `-Dprefix="/"` when configuring and you also have `--destdir=../x86_64-native-linux-gcc` when installing. I'm not sure why you would set these to different paths unless you're essentially on a root-only system and you are doing everything from the root directory?</span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">In my example above, I set a variable, INSTALL_PREFIX, and use that in the configure step instead. Then, when you install, just let it install to the prefix that you specified. Presumably, this will ensure that all paths are correct whereas setting a different destdir from the prefix could potentially mismatch some paths.</span></div><div><span style="font-family:arial,sans-serif"><br></span></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div></div>