* [RFC PATCH] devtools/test-meson-builds: use cross file for 32bit build
@ 2024-09-04 14:03 Bruce Richardson
2024-09-06 16:14 ` Bruce Richardson
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Richardson @ 2024-09-04 14:03 UTC (permalink / raw)
To: dev; +Cc: Bruce Richardson
When testing the 32-bit x86 build on debian or ubuntu linux systems, use
the cross-file rather than using args and pkgconfig environment
variable. The advantage of using the cross-file is that the paths are
saved across runs. While the '-m32' args settings are preserved in the
current setup, the PKG_CONFIG_LIBDIR value from environment is not,
which can cause rebuilds of the build-32b directory to fail if meson
needs to do a reconfiguration first.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
devtools/test-meson-builds.sh | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
index d71bb1ded0..1d9d04ce7c 100755
--- a/devtools/test-meson-builds.sh
+++ b/devtools/test-meson-builds.sh
@@ -253,21 +253,24 @@ build build-x86-generic cc skipABI -Dcheck_includes=true \
# 32-bit with default compiler
if check_cc_flags '-m32' ; then
+ target_override='i386-pc-linux-gnu'
if [ -d '/usr/lib/i386-linux-gnu' ] ; then
- # 32-bit pkgconfig on Debian/Ubuntu
- export PKG_CONFIG_LIBDIR='/usr/lib/i386-linux-gnu/pkgconfig'
+ # 32-bit pkgconfig on Debian/Ubuntu, use cross file
+ build build-32b $srcdir/config/x86/cross-debian-32bit ABI
elif [ -d '/usr/lib32' ] ; then
# 32-bit pkgconfig on Arch
export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig'
+ build build-32b cc ABI -Dc_args='-m32' -Dc_link_args='-m32' \
+ -Dcpp_args='-m32' -Dcpp_link_args='-m32'
+ unset PKG_CONFIG_LIBDIR
else
# 32-bit pkgconfig on RHEL/Fedora (lib vs lib64)
export PKG_CONFIG_LIBDIR='/usr/lib/pkgconfig'
+ build build-32b cc ABI -Dc_args='-m32' -Dc_link_args='-m32' \
+ -Dcpp_args='-m32' -Dcpp_link_args='-m32'
+ unset PKG_CONFIG_LIBDIR
fi
- target_override='i386-pc-linux-gnu'
- build build-32b cc ABI -Dc_args='-m32' -Dc_link_args='-m32' \
- -Dcpp_args='-m32' -Dcpp_link_args='-m32'
target_override=
- unset PKG_CONFIG_LIBDIR
fi
# x86 MinGW
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC PATCH] devtools/test-meson-builds: use cross file for 32bit build
2024-09-04 14:03 [RFC PATCH] devtools/test-meson-builds: use cross file for 32bit build Bruce Richardson
@ 2024-09-06 16:14 ` Bruce Richardson
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2024-09-06 16:14 UTC (permalink / raw)
To: dev
On Wed, Sep 04, 2024 at 03:03:02PM +0100, Bruce Richardson wrote:
> When testing the 32-bit x86 build on debian or ubuntu linux systems, use
> the cross-file rather than using args and pkgconfig environment
> variable. The advantage of using the cross-file is that the paths are
> saved across runs. While the '-m32' args settings are preserved in the
> current setup, the PKG_CONFIG_LIBDIR value from environment is not,
> which can cause rebuilds of the build-32b directory to fail if meson
> needs to do a reconfiguration first.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
Merged this RFC, with more complete implementation, into series[1]
/Bruce
[1] https://patches.dpdk.org/project/dpdk/list/?series=32933
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-06 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-04 14:03 [RFC PATCH] devtools/test-meson-builds: use cross file for 32bit build Bruce Richardson
2024-09-06 16:14 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).