From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ALMrIf/ZOmXQNAEA9RJhRA:P1 (envelope-from ) for ; Thu, 26 Oct 2023 23:28:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ALMrIf/ZOmXQNAEA9RJhRA (envelope-from ) for ; Thu, 26 Oct 2023 23:28:31 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A5FAA52B75 for ; Thu, 26 Oct 2023 23:28:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=loang.net header.s=default header.b=M0EWvpyP; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698355711; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:content-type:content-type:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=K6ECZNWy5Lm8xE2Fc04JVEIS5fuzpuqwzgmVv/dAmQ8=; b=sn13YUCEcAdySaHmDe03pCouBDL0FIGeoe5XswGeMuL2jCLW2J9/7D9hKpe+BHd7WYgMSY IU/KjMP0b0P1PaecZ+Kjk11u5WQ0HyHs2u/AFa+JIvtBm9xbp6Q3tNy7F27xIM6Iz8Kcio mENbie+t7JT/G5ZF2a3wLT7EoVdaQMl/y3klUG5aR0KD17Oo8Idm31qB2ISjIsjILUlo13 Xjnyc/FolSSpFuiPHHOdg1NNBopP7bgaQ/LQ2Ir14NTioLzVu+e79PAbHuxY1YAEbrlV7t UTQ21AZjPfbzix5A1SSGYQX2VtMesMBotCY2P8TlpbCON/g/LmiGB9tAgZIAGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=loang.net header.s=default header.b=M0EWvpyP; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698355711; a=rsa-sha256; cv=none; b=fi9E5rv1Bjf4dAbvnusU79tBiGl36KX6NN6K9d8AYYArACa0oFXbWf8UOl/5CdmDCfpXam UOYAJSd1IDEBsFF37BvAN+pTyxa8Zxv9yhPbeTedCcsORKv/kN3BK4A3rJWtjXWhq1jxqR pgP89AUaSmLD03HJFWT3DaAmwubdiaI5/ZOq60amtmRwOatGHQ9VugLjHW1VzP7zojIF6f kNx+vtinycLBmKJr3szuxtKwIhQ3EVPqGQCepuEMzuDQwtzNItY5/8jLMXotdJA/2iPvYw TS3KEDyo6U+62TQRFFnZ16+m+OiDipJX/f0vlxoYJscOk6OKV4u2+eT1PZ62Hw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qw7tq-0002jR-Ib; Thu, 26 Oct 2023 17:28:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qusRD-0006TL-4A for bug-guix@gnu.org; Mon, 23 Oct 2023 06:45:35 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qusRC-0002wX-Ag for bug-guix@gnu.org; Mon, 23 Oct 2023 06:45:34 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qusRe-0001Aw-Jj for bug-guix@gnu.org; Mon, 23 Oct 2023 06:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66699: zig: fail to link SDL2 Resent-From: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 23 Oct 2023 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66699 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66699@debbugs.gnu.org, ekaitz@elenq.tech X-Debbugs-Original-To: , Received: via spool by submit@debbugs.gnu.org id=B.16980579284464 (code B ref -1); Mon, 23 Oct 2023 10:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2023 10:45:28 +0000 Received: from localhost ([127.0.0.1]:49159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qusR4-00019u-DJ for submit@debbugs.gnu.org; Mon, 23 Oct 2023 06:45:28 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quphj-0001Hh-MZ for submit@debbugs.gnu.org; Mon, 23 Oct 2023 03:50:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quphB-0006yj-61 for bug-guix@gnu.org; Mon, 23 Oct 2023 03:49:53 -0400 Received: from tem.loang.net ([2a03:3b40:100::1:2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quph8-0003ek-IS for bug-guix@gnu.org; Mon, 23 Oct 2023 03:49:52 -0400 DKIM-Signature: a=rsa-sha256; bh=K6ECZNWy5Lm8xE2Fc04JVEIS5fuzpuqwzgmVv/dAmQ8=; c=relaxed/relaxed; d=loang.net; h=Subject:Subject:Sender:To:To:Cc:From:From:Date:Date:MIME-Version:Content-Type:Content-Type:Content-Transfer-Encoding:Reply-To:In-Reply-To:Message-Id:Message-Id:References:Autocrypt:Openpgp; i=@loang.net; s=default; t=1698046473; v=1; x=1698478473; b=M0EWvpyP1NKgJ82y6dvzFRgWz6bDE92q7pDRwR19qm5sLUa9cpAk4e0EK2UPWjzfGHUToQQi h9Zg00S/SGCuFAZq4Ugg6OwVMBvHzodYmpXh9y8TT12xtyR6YqfU2DAhakcFeeaX9m9RRzpEknj Y/AwvEk80/jWbdt+Ms8ImyvKhjbwKX3Yzdxomt5ORl9voCAjQ9UTGIylapGuH6rCKeqLar8veW+ dR9wEqQwCbWtIE6+okUlSPDARdcN4Cxg3PMmCDjDsbJG9uLSkmcg61JM3KX6+RVMqZ4LDAilXUK kaHJe/vzGK3k6hgPFmT4/4HkiWL3geaTxPn+NK4wiMFWA== Received: by tem.loang.net (envelope-sender ) with ESMTPS id f7fc6f41; Mon, 23 Oct 2023 07:34:33 +0000 Content-Type: multipart/signed; boundary=6c6ec73e09820687a3edc06cbf781009aa05f1771125beda4beb2ecd18c9; micalg=pgp-sha256; protocol="application/pgp-signature" Date: Mon, 23 Oct 2023 16:34:22 +0900 Message-Id: X-Mailer: aerc 0.15.2 Received-SPF: pass client-ip=2a03:3b40:100::1:2; envelope-from=cnx@loang.net; helo=tem.loang.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MIME_HEADER_CTYPE_ONLY=0.1, SPF_HELO_SOFTFAIL=0.732, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 23 Oct 2023 06:45:24 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 26 Oct 2023 17:28:17 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong From: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.20 X-Spam-Score: -5.20 X-Migadu-Queue-Id: A5FAA52B75 X-Migadu-Scanner: mx13.migadu.com X-TUID: 2pblIMz53PtP --6c6ec73e09820687a3edc06cbf781009aa05f1771125beda4beb2ecd18c9 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 I am trying to package Mepo, an OpenStreetMap frontend written in Zig. The currently packaged Zig fails to find transitive dependencies of SDL2: https://paste.sr.ht/~cnx/db21e1ef9a6828f3ec898db43b790d71b5ef213a Here's a minimal reproducible Zig project: // main.zig const c =3D @cImport(@cInclude("SDL2/SDL.h")); pub fn main() !void { if (c.SDL_Init(c.SDL_INIT_VIDEO) !=3D 0) return error.SDLInitializationFailed; c.SDL_Quit(); } // build.zig pub fn build(b: *@import("std").build.Builder) void { const exe =3D b.addExecutable("sdl2-smoke-test", "main.zig"); exe.linkSystemLibrary("SDL2"); exe.setTarget(b.standardTargetOptions(.{})); exe.setBuildMode(b.standardReleaseOptions()); exe.install(); } For convenience, here goes a manifest for use with guix build -f: (use-modules (guix build-system zig) (guix gexp) (guix licenses) (guix packages) (gnu packages pkg-config) (gnu packages sdl)) (package (name "sdl2-smoke-test") (version "0.0.0") (source (local-file "." "sdl2-smoke-test" #:recursive? #t)) (build-system zig-build-system) (arguments (list #:tests? #f #:zig-release-type "safe")) (native-inputs (list pkg-config)) (inputs (list sdl2)) (synopsis "Zig build system SDL2 linkage failure reproducer") (description (string-append "This is a reproducer of zig-build-system" " failing to link SDL2's transitive dependencies," " as seen when trying to package mepo.")) (home-page "https://larkspur.one/notice/Ab24w1IMGVoZ72J9xg") (license zlib)) --6c6ec73e09820687a3edc06cbf781009aa05f1771125beda4beb2ecd18c9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIQEABYIACwWIQSDiv4NVdwHTjYPlDqEtpzm8/a3ZwUCZTYiAQ4cY254QGxvYW5n Lm5ldAAKCRCEtpzm8/a3Z+agAP9boZoEOJcAnHgH6DVVEMXnqIGmL1n2lWAMRjP0 OsQ+TwD/R0ymTEfk1LkadSDLEOepRuVTKCuwT8EcvmHwmHFKTgI= =jf6+ -----END PGP SIGNATURE----- --6c6ec73e09820687a3edc06cbf781009aa05f1771125beda4beb2ecd18c9--