On Wed, 19 Jul 2023 20:12:08 +0100 Simon McVittie <s...@debian.org> wrote:

> glib2.0's meson.build has several calls to 'cc.run(...)' guarded by
> a check for 'cc_can_run = meson.can_run_host_binaries()'.
> 
> On mips64el, Meson seems confused about whether this is a native or
> cross build. At first, it correctly reports that this is a native build:
> 
> <https://buildd.debian.org/status/fetch.php?pkg=glib2.0&arch=mips64el&ver=2.76.4-2&stamp=1689773327&raw=0>
> > The Meson build system
> > Version: 1.2.0
> > Source dir: /<<PKGBUILDDIR>>
> > Build dir: /<<PKGBUILDDIR>>/debian/build/deb
> > Build type: native build
> > Project name: glib
> > Project version: 2.76.4
> 
> but then later, cc.run() fails:
> 
> > ../../../meson.build:1127:14: ERROR: Can not run test applications in this 
> > cross environment.


Update: Simon wrote a fix for this and it is merged upstream and tagged
for the .1 maintenance release.

https://github.com/mesonbuild/meson/pull/12080


-- 
Eli Schwartz

Reply via email to