Hi Bruce, May I know the correct way of 32bit compilation on 64bit X86 machine. I tried the "-m32" c_args, but it returns the below error:
b10814@dpdk-xeon:~/dpdk-up$ meson build -Dc_args='-m32' Directory already configured. Just run your build command (e.g. ninja) and Meson will regenerate as necessary. If ninja fails, run "ninja reconfigure" or "meson --reconfigure" to force Meson to regenerate. If build failures persist, run "meson setup --wipe" to rebuild from scratch using the same options as passed when configuring the build. To change option values, run "meson configure" instead. b10814@dpdk-xeon:~/dpdk-up$ ninja -C build ninja: Entering directory `build' [21/2145] Linking target buildtools/pmdinfogen/pmdinfogen FAILED: buildtools/pmdinfogen/pmdinfogen cc -o buildtools/pmdinfogen/pmdinfogen 'buildtools/pmdinfogen/7ea0a9a@@pmdinfogen@exe/pmdinfogen.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 /usr/bin/ld: i386 architecture of input file `buildtools/pmdinfogen/7ea0a9a@@pmdinfogen@exe/pmdinfogen.c.o' is incompatible with i386:x86-64 output collect2: error: ld returned 1 exit status [23/2145] Linking target lib/librte_kvargs.so.21.0 FAILED: lib/librte_kvargs.so.21.0 cc -o lib/librte_kvargs.so.21.0 'lib/76b5a35@@rte_kvargs@sta/librte_kvargs_rte_kvargs.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,librte_kvargs.so.21 -Wl,--no-as-needed -pthread -lm -ldl -Wl,--end-group -Wl,--version-script=/home/b10814/dpdk-up/lib/librte_kvargs/rte_kvargs_version.map /usr/bin/ld: i386 architecture of input file `lib/76b5a35@@rte_kvargs@sta/librte_kvargs_rte_kvargs.c.o' is incompatible with i386:x86-64 output /usr/bin/ld: lib/76b5a35@@rte_kvargs@sta/librte_kvargs_rte_kvargs.c.o: file class ELFCLASS32 incompatible with ELFCLASS64 /usr/bin/ld: final link failed: File in wrong format collect2: error: ld returned 1 exit status [46/2145] Compiling C object 'lib/76b5a35@@rte_cryptodev@sta/librte_cryptodev_rte_cryptodev.c.o' ninja: build stopped: subcommand failed. b10814@dpdk-xeon:~/dpdk-up$ > -----Original Message----- > From: Thomas Monjalon <tho...@monjalon.net> > Sent: Wednesday, October 7, 2020 3:07 AM > To: Gagandeep Singh <g.si...@nxp.com> > Cc: dev@dpdk.org; Nipun Gupta <nipun.gu...@nxp.com>; Hemant Agrawal > <hemant.agra...@nxp.com> > Subject: Re: [dpdk-dev] [PATCH 1/7] raw/dpaa2_qdma: change DPAA2 QDMA > APIs to rawdev ops > > Hi, > > I see a build issue in the first patch, > so I didn't check further: > > drivers/raw/dpaa2_qdma/dpaa2_qdma.c:1158:30: error: > initialization of ‘int (*)(const struct rte_rawdev *, void *, size_t)’ {aka > ‘int > (*)(const struct rte_rawdev *, void *, long unsigned int)’} from incompatible > pointer type ‘int (*)(const struct rte_rawdev *, void *)’ > [-Werror=incompatible- > pointer-types] > 1158 | .dev_configure = dpaa2_qdma_configure, > >