From debbugs-submit-bounces@debbugs.gnu.org Mon May 09 08:37:33 2022 Received: (at 55283) by debbugs.gnu.org; 9 May 2022 12:37:33 +0000 Received: from localhost ([127.0.0.1]:56526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no2dp-0006hD-8u for submit@debbugs.gnu.org; Mon, 09 May 2022 08:37:33 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:36236 helo=eauchat.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no2di-0006gf-1W for 55283@debbugs.gnu.org; Mon, 09 May 2022 08:37:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1652099837; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=13+pmTbZ6d4S/39o7S8xOMhT3kngOohG8EKnlJy1YF0=; b=qzyUviK2s1euwlGqbYvR8f357CjMAftlNZh2taxVXYUaMUXTQPQmEXdeC3D7FSpijxIwXe Tu0PLFd1sZhcV/mcEzfcaykM6GZ7ucZYG5ALLrYxq30c6giOYnMfRTygtDhSu9bRXNJBaY otGjQK3dT6EQWwPy3+FLq8O9jL8S1hI= References: <87zgjqc2p2.fsf@eauchat.org> From: =?utf-8?Q?S=C3=A9bastien?= Lerique To: 55283@debbugs.gnu.org Subject: Re: =?utf-8?Q?=E2=80=98tests=2Fguix-shell-export-manifest=2Esh?= =?utf-8?Q?=E2=80=99?= fails on aarch64-linux Date: Mon, 09 May 2022 21:32:47 +0900 In-reply-to: <87zgjqc2p2.fsf@eauchat.org> Message-ID: <87sfpic26f.fsf@eauchat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55283 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > #x is for hexadecimal, right? If so, this can be simplified by using > the second argument of string->number: (string->number (string-drop > model 2) 16). > So does this: --8<---------------cut here---------------start------------->8--- sl@matrixbox ~/guix [env]$ ./pre-inst-env guix shell --export-manifest gsl = openblas gcc-toolchain --tune ;;; ("aarch64" #f #f #f #< vhash: # insert: #<= procedure %insert (t-5ce36f5c768e728-317 t-5ce36f5c768e728-319)> ref: #>) guix shell: tuning gsl@2.7 for CPU armv8-a ;; What follows is a "manifest" equivalent to the command line you gave. ;; You can store it in a file that you may then pass to any 'guix' command ;; that accepts a '--manifest' (or '-m') option. (use-modules (guix transformations)) (define transform1 (options->transformation '((tune . "armv8-a")))) (packages->manifest (list (transform1 (specification->package "gsl")) (transform1 (specification->package "openblas")) (transform1 (specification->package "gcc-toolchain")))) --8<---------------cut here---------------end--------------->8--- (I'm happy to provide ssh access to this rock64 if that can help.) Best, S=C3=A9bastien