GNU bug report logs - #66699
zig: fail to link SDL2

Previous Next

Package: guix;

Reported by: Nguyễn Gia Phong <cnx <at> loang.net>

Date: Mon, 23 Oct 2023 10:46:02 UTC

Severity: normal

Done: Nguyễn Gia Phong <mcsinyx <at> disroot.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 66699 <at> debbugs.gnu.org (full text, mbox):

From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
To: Nguyễn Gia Phong <cnx <at> loang.net>
Cc: 66699 <at> debbugs.gnu.org
Subject: Re: zig: fail to link SDL2
Date: Sat, 11 Nov 2023 13:23:33 +0000
Hi,

I tracked this pretty far:

This is a related issue that mentions the `mepo` package:
https://github.com/ziglang/zig/issues/12170

And I realized the problem comes from `pkg-config`. It's telling zig to use the static library first.
Removing `pkg-config` from the `native-inputs` in your proposed package make it build but the `runpath` validation phase fails.

I'm not sure about what to do now.

In the issue the people working on freebsd-ports mention they did this:
https://github.com/freebsd/freebsd-ports/blob/16ada4d8d14a222bd92c4bf332d28b7c604af457/astro/mepo/Makefile#L31
But I don't know if we can replicate that.

I'll keep researching on this a little bit further.

Best,
Ekaitz




This bug report was last modified 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.