Subject: Re: [bug#68133] [PATCH] gnu: glew: Fix cross-compiling.

From: Mathieu Othacehe <[email-masked]>
Date: Wed, 03 Jan 2024 15:25:49 +0100

Hello,

> gnu/packages/gl.scm(glew):
> [arguments]<#:make-flags>: when cross-compiling, use {cc,strip}-for-target.

When running:

./pre-inst-env guix build --target=aarch64-linux-gnu glew

I have the following error message:

--8<---------------cut here---------------start------------->8---
Run-time dependency libudev found: NO (tried pkgconfig and cmake)

../mesa-23.2.1/meson.build:1682:13: ERROR: Failed running '/gnu/store/fzmc9w4i1lyqi0v62w5jpdxi6h9cbnyh-llvm-for-mesa-15.0.7/bin/llvm-config', binary or interpreter not executable.
Possibly wrong architecture or the executable bit is not set.

A full log can be found at /tmp/guix-build-mesa-23.2.1.drv-0/build/meson-logs/meson-log.txt
error: in phase 'configure': uncaught exception:
--8<---------------cut here---------------end--------------->8---

Did I miss something?

Thanks,

Mathieu