> -----Original Message----- > From: Thomas Monjalon <tho...@monjalon.net> > Sent: Wednesday, July 13, 2022 12:12 PM > To: Ali Alnubani <alia...@nvidia.com> > Cc: dev@dpdk.org; David Christensen <d...@linux.vnet.ibm.com> > Subject: Re: [PATCH] config: set pkgconfig for ppc64le > > 13/07/2022 09:39, Ali Alnubani: > > > -----Original Message----- > > > From: Thomas Monjalon <tho...@monjalon.net> > > > Sent: Monday, July 11, 2022 11:11 PM > > > To: Ali Alnubani <alia...@nvidia.com> > > > Cc: dev@dpdk.org; David Christensen <d...@linux.vnet.ibm.com> > > > Subject: Re: [PATCH] config: set pkgconfig for ppc64le > > > > > > + PPC maintainer > > > > > > 07/07/2022 13:41, Ali Alnubani: > > > > Meson fails to detect the dependencies that are included > > > > in PKG_CONFIG_PATH and built for ppc64le if binaries.pkgconfig > > > > is not set in the ppc64le cross-file for Ubuntu. > > > > > > > > This fixes the issue by setting binaries.pkgconfig to the > > > > binary provided by the package 'pkg-config-powerpc64le-linux-gnu'. > > > > > > > > Signed-off-by: Ali Alnubani <alia...@nvidia.com> > > > > --- > > > > config/ppc/ppc64le-power8-linux-gcc-ubuntu | 1 + > > > > > > Why not adding the same for ppc64le-power8-linux-gcc? > > > > > > > +pkgconfig = 'powerpc64le-linux-gnu-pkg-config' > > > > I didn't find any operating systems that distribute the powerpc64le cross- > compiler with the binary names found in config/ppc/ppc64le-power8-linux- > gcc. > > Both Ubuntu and Fedora use the -gnu suffix. Fedora doesn't seem to have > a pkg-config binary for powerpc64le though. > > So how does it work on Fedora? >
On Fedora, the pcc64 cross-compiler is provided by package 'gcc-powerpc64le-linux-gnu' with binary names /usr/bin/powerpc64le-linux-gnu-*, same as in Ubuntu. The cross-file config/ppc/ppc64le-power8-linux-gcc doesn't work with Fedora since the binary names in the file don't have the -gnu suffix, so I'm not sure where this cross-file is being used. Another issue I found is that when I set the correct binary names in config/ppc/ppc64le-power8-linux-gcc or use config/ppc/ppc64le-power8-linux-gcc-ubuntu, I get the following error on Fedora: config/ppc/meson.build:6:4: ERROR: Problem encountered: Only 64-bit compiles are supported for this platform type It happens because cc.sizeof('void *') in https://git.dpdk.org/dpdk/tree/config/meson.build#n144 returns '-1'. I'm on Fedora 35. Is anyone able to cross-build for ppc64le in Fedora?