From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KDfLKgKx92NUEwAAbAwnHQ (envelope-from ) for ; Thu, 23 Feb 2023 19:31:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gCO+KgKx92NsjgAAauVa8A (envelope-from ) for ; Thu, 23 Feb 2023 19:31:30 +0100 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 E7A3B1B838 for ; Thu, 23 Feb 2023 19:31:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVGMw-0007qa-Bv; Thu, 23 Feb 2023 13:31:02 -0500 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 1pVGMc-0007l0-BI for help-guix@gnu.org; Thu, 23 Feb 2023 13:30:43 -0500 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVGMa-0003W8-ET for help-guix@gnu.org; Thu, 23 Feb 2023 13:30:42 -0500 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-536e10ae021so170098117b3.7 for ; Thu, 23 Feb 2023 10:30:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XEqY0fMh0eVg5cxpk9zhAeh1M61NZhnosJXWSafAhJk=; b=1D28zCCXBr50vX0sBD4/5VoxHGstn5wwM+R8+/jmduC+8O7EAydMzD0E0DX3s+XhQ8 5q5BmOYkVPYuD9/u4/o+eRR49TM+Tsg7v7taZNTrWzZQogvOubz9qmT3zngB1hNdNf5f oKZlMDjgFR/Zvy6Q0Tml84qyI+zosG2KGzmv+2twkEx9HrlCGaFi+aRIRiBU79PhUx5q zZag3B/ObVV2m5CGJ8o7f3ul79M7pv+WTBFeFYu1ZKvwOwJ7sllIIjWyv54lkdqTVNzf hjY+G8uQehQRu3q//EVasi1ZWzbT0W4ZjFYF31B0jzX/0KDE44T35lj10V8vsY80vDGR Okww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XEqY0fMh0eVg5cxpk9zhAeh1M61NZhnosJXWSafAhJk=; b=4RqY8vs/UVObcm6R9aExv77WdUqEoaXn5RWE2/oUTWhL43ZU8PAr3r9JyQCp4W+0Qc 3TqeV7m6H5feNgDZ+tCzmpehLZfbqp0nh1JGn1nvXMaabMPJvvSW+n4gBqTUWXLgiHvy DzapNiZ2jwioymV1JBnFFC7DgMnfEEPyRRIPolspUcrBHWpAajRYeQJ35cAvxXcg0Zx+ 2bvYjBTA33ei6RgQtJ2PPT3J9LLnvQPmjaioVbkA+r/YbZ9aTYwZlh/1N3IO1zwVAptw DZUxoOloKAvUQ5NmWlyjYuAd+YW49lFUwVsKSz5yPvM2m6qiIfnt28/LLyCendq4hA+U BI0g== X-Gm-Message-State: AO0yUKVyv7SeVAfW2/a7yu6rhCcN1r+DQF4u9YXQRkNCBDnfdeipN5aF jtiVwmczzrRnMLWqSjl4324OHiVBBj+bVKjN2kT79QYQF7CIHRTSAjA= X-Google-Smtp-Source: AK7set8zXjxFR+XcmeIpOPyckllb6sa//r/EvRHTN4Y7AJJrsTMLrk9yVfnj0qldhTqRc+KZLovEL7f/OY2e4LWdooE= X-Received: by 2002:a25:e905:0:b0:967:a042:2f5e with SMTP id n5-20020a25e905000000b00967a0422f5emr2526492ybd.12.1677177038085; Thu, 23 Feb 2023 10:30:38 -0800 (PST) MIME-Version: 1.0 From: Greg Hogan Date: Thu, 23 Feb 2023 13:30:27 -0500 Message-ID: Subject: Wrong type argument: package-input-rewriting/spec with inferior To: Guix Help Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2607:f8b0:4864:20::112e; envelope-from=code@greghogan.com; helo=mail-yw1-x112e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=1D28zCCX; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677177090; a=rsa-sha256; cv=none; b=nSPQVTZ5yRXL9G2JMoCngdEYXUi9CFSTDqhPrCYs8/c7wFDjKUH9coiKrsVfguhmQUG1kG xIcTzcGOORcYOuvJk4QytIv3k2DSDHDTd+QoS8xwnXGIaloQBW89Dmxj582in8mAnPM2au rnadXyOClblv8PA/NNouqneK0G5Ny9tPbLCVeyjWFRAMyxp/r6yukBvSljCgYccEEt7BCm L7w4X2DSTZl47O13FD39fG1PzhnoRUrQykmwNpi/RCHwhYYz2J5IS4UJk7Uz9UST0tjJBI kSkZNtCj54rBjR63W/rHAWPGwiVicmg0Ij3JNQCoJObsGxEnawJnyC9WXrq0Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677177090; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XEqY0fMh0eVg5cxpk9zhAeh1M61NZhnosJXWSafAhJk=; b=GMGwSWnSv5BH3yv24NSgmwE8JiKYAyuUARPuZXUw07dpYchxKMZvHqw0TByH9B+OziJA7j eYgoQif92ukiofJmgb6fq62qDuQa8M2YUCDHAXEoRALVec11M4KRe/+oPop9Mz4n83BzLU 2fQu0AcFB2fXVcqlL+nX/gijqI3IXkSGoGIYMZcV0/UTn9FyoL9bstGImtb5zs0aZtUNHB Qq0kcjRu4tLyZ4f8/vn2F8O+2K/Zhbuym9U3eFUThyY9ZQimiLjmtI2ZczfbnWxbh5OFzg xvW3+O8DwBu/Suh9CwipYzwT+CO+jx09WByLBUnLKi4JNWiu55urbHrEYLQaGg== X-Migadu-Queue-Id: E7A3B1B838 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=1D28zCCX; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Spam-Score: -5.76 X-Spam-Score: -5.76 X-TUID: +vEaPy6Rqds6 Having failed a year ago to build the latest gcc and latest clang together using "with-c-toolchain", the following succeeds using "package-input-rewriting/spec". My current issue is that glibc@2.33 on master fails to build with gcc@12 ("cc1: all warnings being treated as errors") and my attempts to pull a glibc@2.35 inferior from core-updates are failing. On core-updates I can containerize and use gcc-toolchain@12 and clang-toolchain@15 with the following manifest. Both gcc and clang successfully compile a test file. --8<---------------cut here---------------start------------->8--- $ cat core-updates.scm (use-modules (guix packages) (gnu packages gcc) (gnu packages llvm)) (define with-gcc12 (package-input-rewriting/spec `(("gcc" . ,(const gcc-12))))) (define clang-with-gcc-12 (with-gcc12 clang-toolchain-15)) (concatenate-manifests (list (specifications->manifest '("gcc-toolchain@12")) (packages->manifest `(,clang-with-gcc-12)))) --8<---------------cut here---------------end--------------->8--- On master I modify the manifest to create an inferior for glibc@2.35 from core-updates, but receive the following error when attempting to use the inferior as a package. A similar question went unanswered on StackOverflow last year (https://unix.stackexchange.com/questions/699148/how-to-use-an-inferior-whe= n-input-rewriting-in-guix). --8<---------------cut here---------------start------------->8--- $ cat master.scm (use-modules (guix channels) (guix inferior) (guix packages) (gnu packages gcc) (gnu packages llvm)) (define channels (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (branch "core-updates") (commit "3b57f25f55c52c97428106de285d3cf2746554dc")))) (define (from-core-updates name) (car (lookup-inferior-packages (inferior-for-channels channels) name))) (define glibc-from-core-updates (from-core-updates "glibc")) (define with-gcc12 (package-input-rewriting/spec `(("gcc" . ,(const gcc-12)) ("glibc" . ,(const glibc-from-core-updates))))) (define clang-with-gcc-12 (with-gcc12 clang-toolchain-15)) (concatenate-manifests (list (specifications->manifest '("gcc-toolchain@12")) (packages->manifest `(,clang-with-gcc-12)))) $ guix build -m master.scm Backtrace: In guix/scripts/build.scm: 670:16 19 (_ #) 659:24 18 (_ # =E2=80=A6) In guix/packages.scm: 1351:17 17 (supported-package? # =E2=80=A6) In guix/memoization.scm: 101:0 16 (_ # # =E2=80=A6) In guix/packages.scm: 1329:37 15 (_) 1589:16 14 (package->bag _ _ _ #:graft? _) 1690:48 13 (thunk) 1485:25 12 (inputs _) In srfi/srfi-1.scm: 586:29 11 (map1 (("clang" #) = =E2=80=A6)) 586:29 10 (map1 (("ld-wrapper" #) = =E2=80=A6)) 586:29 9 (map1 (("binutils" #) = =E2=80=A6)) 586:29 8 (map1 (("libomp" #) = =E2=80=A6)) 586:17 7 (map1 (("libc" #) = =E2=80=A6)) In guix/packages.scm: 1442:20 6 (rewrite ("libc" #)) In guix/memoization.scm: 101:0 5 (_ # # =E2=80=A6) In guix/packages.scm: 1459:22 4 (_) 1570:31 3 (loop #) In ice-9/boot-9.scm: 1685:16 2 (raise-exception _ #:continuable? _) 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure package-properties: Wrong type argument: # --8<---------------cut here---------------end--------------->8---