From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iGk+Fkxd/WPsJgEAbAwnHQ (envelope-from ) for ; Tue, 28 Feb 2023 02:47:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kN1oFUxd/WNbIgAAG6o9tA (envelope-from ) for ; Tue, 28 Feb 2023 02:47:56 +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 AF3C613C51 for ; Tue, 28 Feb 2023 02:47:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWp5I-0003dc-JE; Mon, 27 Feb 2023 20:47:16 -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 1pWp5H-0003dU-1R for help-guix@gnu.org; Mon, 27 Feb 2023 20:47:15 -0500 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWp5E-000544-Rf for help-guix@gnu.org; Mon, 27 Feb 2023 20:47:14 -0500 Received: by mail-qt1-x831.google.com with SMTP id cf14so8948758qtb.10 for ; Mon, 27 Feb 2023 17:47:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=h/YJ5hE4kwXdWyvdvBo+1ISR92FCwLxw2V6CLnIVuNI=; b=dV43xcE6le9wKuYuMca3/Do3BFJoVL2E1dIsNDWRA7N5jESTC2vGlUTapEIAWRPtvn AR7xkUGX6Aq/K8u6wmYggAKmGr2QV3HTgyn7et1SLbrYsdnrUzBzRmtGaHB5SiufB54e QFXVSM5rvzp9Ce4nqPPpTpINV7Dto5fb76ybfCLonkveqAJ8OwGCdx2x8ba6u0KWgwCo l5vLUYxi9vcON/bFlx/miZpFNLaTSQpdnsADLwke60abzh2e8pzAY0FJuQcJ7dy2wv7x tIY+LL3WTuWauothvCotp0yP70e9o93RbVOGJDTFD6paYFRJRl7uwffvg8UULN2k+vQu 3IdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h/YJ5hE4kwXdWyvdvBo+1ISR92FCwLxw2V6CLnIVuNI=; b=HR08Slf7RDgg1mvURz84U2/vcBPWT2EAkE3RJY23eTUzSJQf65JizjtgWx6T4MJ/ma fkA5Ltm3YvCgdBEm/EuzNr0/Y2fvjDYs/ihWfLcoCD9Ysm4YvPIZjzO7OMK3s2KwQOrS CvGDHgM73ZeOLvEG0U9DTYdA1bs0BsPtpAMc4eHuU0qn4gZ/WC3LecMJcgJIajBOs3/6 cu9TUp2mW58Jlw/npkOub2u1GvPkDD9kETW93Gpm9eLRMzgJKHuFxQGcqtcGDTBMp3Aj sWONcQoWAWoL7aAMQ6VAx7zAiElm8qCH97w5NhZfYQuM2EuLDxDYNusuMxGNCo9jSRm1 1W9A== X-Gm-Message-State: AO0yUKVblM1LpVQ9+wZ7ICZXsCa11vaAj05gBjnBV4E+cBGkwFbKRgbt 5jf/Q+zoqceLqEOOP9Wu2oM= X-Google-Smtp-Source: AK7set8+Ok0uIkNaDiyzg0Rtn7SLesDR6jBGEjvidFjycptYE6nMHCVd6wWJ71bmAy56ZP1q4ZvEWQ== X-Received: by 2002:ac8:5987:0:b0:3b6:3260:fa1d with SMTP id e7-20020ac85987000000b003b63260fa1dmr2129897qte.45.1677548831638; Mon, 27 Feb 2023 17:47:11 -0800 (PST) Received: from hurd (dsl-156-86.b2b2c.ca. [66.158.156.86]) by smtp.gmail.com with ESMTPSA id 186-20020a3707c3000000b007423a896659sm5957240qkh.86.2023.02.27.17.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 17:47:11 -0800 (PST) From: Maxim Cournoyer To: help-guix Cc: Efraim Flashner , jbranso@dismail.de Subject: Re: Problems running Guix System initrd on an i.MX6 ARM board References: <87pmco3r99.fsf@gmail.com> Date: Mon, 27 Feb 2023 20:47:09 -0500 In-Reply-To: (Efraim Flashner's message of "Wed, 21 Dec 2022 21:38:42 +0200") Message-ID: <87lekik1cy.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x831.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677548876; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=h/YJ5hE4kwXdWyvdvBo+1ISR92FCwLxw2V6CLnIVuNI=; b=mjECDE1g9ugsdoTvn2TQ4ypz/tnKgU+wCwcvQbYHXgkjdc3qDMsntV5TVqzOa53P3/7bng nyhFVjdlwEhyzY1XWuW/kcxl7KCjf0A9xcfYMKBtpHAAEoDnLsjJ1Wbq6FRJCkDHDT+pVH S2KXG+yMlwRgCs6m4XFRJ1F5EMOO+xopU5TJgsAugEhryLSw0Bv9vXfNvx0qnuJSiKciep 6+VovCcF69LimU3NsI+2wRC/raG7+tZ0mSxqpDF/286DTBdoM+hWipFWM646ocu5fSnMoX DdyaHlc9mY/iAqnw8dG3e6K+ugiS5hzQYLYYJ9NR/xz/J6mW2yPpjVrYAParKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dV43xcE6; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677548876; a=rsa-sha256; cv=none; b=fKlRn0/FU1IVl4mCbmhMVozIfvN+4pEsHxtEDCFpdUkV8aDszOenJQ8Ee0Nwpfdu0rC8MG eGLC3P+0JyX7lkLiHBQ6nwcMEulq5IwamKBrVFs0kqj9/bbbpX49yFbZ56LAUY3zusRdhc GciA/gt4mZ6TH0Wo9EmOR6bwT7aoCNtp2T7zVA4P2Ruwpen5+OEvEx0CGCJ0pNqIH2g6OA u7grM4rWd4//objOVyIYO/G2Fn8QlRENhm4vPY/8crY1FXQVsG4khulizqmr9iQu4Jr3KX hiqd2v9K/rlgvRbE0B899N9kHCC8qNzLjnv8JXfETct8WhqvRVfIPk1aJhp7pw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dV43xcE6; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -6.41 X-Spam-Score: -6.41 X-Migadu-Queue-Id: AF3C613C51 X-Migadu-Scanner: scn1.migadu.com X-TUID: opipHf8+TTvt Hello! Efraim Flashner writes: > On Mon, Dec 12, 2022 at 10:40:50PM -0500, Maxim Cournoyer wrote: >> Hi Guix! >> >> I've been trying for some time to run Guix System on an ARM board (a >> TS-7970 with an i.MX6 Cortex A9 CPU). I wanted to cross-compile the >> image for speed and efficiency, and stumbled upon some problems on the >> way, such as https://issues.guix.gnu.org/44924, fixed on core-updates. [...] >> The initrd now runs, but it fails with the following error: >> >> --8<---------------cut here---------------start------------->8--- >> [ 8.448448] ALSA device list: >> [ 8.451472] #0: On-board Codec >> [ 8.454768] #1: imx-hdmi-soc >> [ 8.461095] Freeing unused kernel memory: 1024K (80e00000 - 80f00000) >> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread >> GC Warning: Couldn't read /proc/stat >> [ 8.481168] mmc0: new SDIO card at address 0001 >> Welcome, this is GNU's early boot Guile. >> Use 'gnu.repl' for an initrd REPL. >> >> ice-9/boot-9.scm:1685:16: In procedure raise-exception: >> Throw to key `record-abi-mismatch-error' with args `(abi-check "~a: record ABI mismatch; recompilation needed" (#>) ())'. >> >> Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. >> GNU Guile 3.0.8 >> Copyright (C) 1995-2021 Free Software Foundation, Inc. >> >> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. >> This program is free software, and you are welcome to redistribute it >> under certain conditions; type `,show c' for details. >> >> Enter `,help' for help. >> scheme@(guile-user)> >> --8<---------------cut here---------------end--------------->8--- >> >> The .go modules appear to be correctly cross-compiled for >> arm-linux-gnueabihf (they run fine on the same target using a different >> OS that I can boot with). >> >> Ideas? > > Perhaps you'll need to compile more with guile-3.0-latest. If it's not > too much I suppose you could try moving guile-3.0-latest to guile-3.0. > Otherwise I guess you'll need to find where is being > compiled and replace that guile-3.0 with guile-3.0-latest too, and then > see where the next failure is. I've tried that on master, with the following patch applied: --8<---------------cut here---------------start------------->8--- 1 file changed, 17 insertions(+), 31 deletions(-) gnu/packages/guile.scm | 48 +++++++++++++++++------------------------------- modified gnu/packages/guile.scm @@ -310,15 +310,15 @@ (define-public guile-3.0 (package (inherit guile-2.2) (name "guile") - (version "3.0.7") + (version "3.0.9") (source (origin (inherit (package-source guile-2.2)) - (patches '()) ; We no longer need the patches. + (patches '()) ;no longer needed (uri (string-append "mirror://gnu/guile/guile-" version ".tar.xz")) (sha256 (base32 - "1dwiwsrpm4f96alfnz6wibq378242z4f16vsxgy1n9r00v3qczgm")) + "03bm1mnfc9kkg2ls942a0js7bxrdzmcffgrgg6anwdmjfan2a9hs")) ;; Replace the snippet because the oom-test still ;; fails on some 32-bit architectures. (snippet '(begin @@ -334,6 +334,11 @@ (define-public guile-3.0 (delete "gmp" "libltdl"))) (arguments (substitute-keyword-arguments (package-arguments guile-2.0) + ;; Guile 3.0.9 is bit-reproducible when built in parallel, thanks to + ;; its multi-stage build process for cross-module inlining, except when + ;; cross-compiling. + ((#:parallel-build? _ #f) + (not (%current-target-system))) ((#:configure-flags flags ''()) ;; XXX: JIT-enabled Guile crashes in obscure ways on GNU/Hurd. `(cons* ,@(if (hurd-target?) @@ -365,19 +370,19 @@ (define-public guile-3.0 (lambda _ ;; Upstream knows about suggested solution. ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214 - (substitute* "bootstrap/Makefile.in" + ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977223#46 + (substitute* "stage0/Makefile.in" (("^GUILE_OPTIMIZATIONS.*") "GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives -Ocps\n"))))) '()) ,@(if (or (target-ppc32?) (target-riscv64?)) - `((add-after 'unpack 'skip-failing-fdes-test - (lambda _ - ;; ERROR: ((system-error "seek" "~A" ("Bad file descriptor") (9))) - (substitute* "test-suite/tests/ports.test" - (("fdes not closed\"" all) (string-append all "(exit 77)"))) - #t))) - '()))))) + `((add-after 'unpack 'skip-failing-fdes-test + (lambda _ + ;; ERROR: ((system-error "seek" "~A" ("Bad file descriptor") (9))) + (substitute* "test-suite/tests/ports.test" + (("fdes not closed\"" all) (string-append all "(exit 77)")))))) + '()))))) (native-search-paths (list (search-path-specification @@ -398,26 +403,7 @@ (define-public guile-3.0-latest version ".tar.xz")) (sha256 (base32 - "03bm1mnfc9kkg2ls942a0js7bxrdzmcffgrgg6anwdmjfan2a9hs")))) - (arguments - (substitute-keyword-arguments (package-arguments guile-3.0) - ;; Guile 3.0.9 is bit-reproducible when built in parallel, thanks to - ;; its multi-stage build process for cross-module inlining, except when - ;; cross-compiling. - ((#:parallel-build? _ #f) - (not (%current-target-system))) - ((#:phases phases) - `(modify-phases ,phases - ,@(if (target-ppc32?) - `((replace 'adjust-bootstrap-flags - (lambda _ - ;; Upstream knows about suggested solution. - ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214 - ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977223#46 - (substitute* "stage0/Makefile.in" - (("^GUILE_OPTIMIZATIONS.*") - "GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives -Ocps\n"))))) - '()))))))) + "03bm1mnfc9kkg2ls942a0js7bxrdzmcffgrgg6anwdmjfan2a9hs")))))) ;;; The symbol guile-3.0/fixed should be used when guile-3.0 needs fixes ;;; (security or else) and this deprecation could be removed. --8<---------------cut here---------------end--------------->8--- Unfortunately after rebuilding the world, the situation is unchanged: --8<---------------cut here---------------start------------->8--- [ 2.887460] can: raw protocol [ 2.887469] can: broadcast manager protocol [ 2.887481] can: netlink gateway - max_hops=1 [ 2.887931] Key type dns_resolver registered [ 2.893941] ThumbEE CPU extension supported. [ 2.946659] Registering SWP/SWPB emulation handler [ 2.952239] Loading compiled-in X.509 certificates [ 2.957525] zswap: loaded using pool lzo/zbud [ 2.970069] ata1: SATA link down (SStatus 0 SControl 300) [ 2.975623] ahci-imx 2200000.sata: no device found, disabling link. [ 2.981907] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug [ 3.012850] mmc1: new high speed SDHC card at address 59b4 [ 3.020229] mmcblk1: mmc1:59b4 USD 7.51 GiB [ 3.029086] mmcblk1: p1 [ 3.366035] mmc2: new DDR MMC card at address 0001 [ 3.372617] mmcblk2: mmc2:0001 MMC04G 3.60 GiB [ 3.383743] mmcblk2boot0: mmc2:0001 MMC04G 16.0 MiB [ 3.391245] mmcblk2boot1: mmc2:0001 MMC04G 16.0 MiB [ 3.398194] mmcblk2rpmb: mmc2:0001 MMC04G 128 KiB, chardev (236:0) [ 3.601340] mxs_phy 20c9000.usbphy: Data pin can't make good contact. [ 3.612016] imx_usb 2184200.usb: No over current polarity defined [ 3.623526] ci_hdrc ci_hdrc.1: EHCI Host Controller [ 3.628468] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1 [ 3.665367] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00 [ 3.672464] hub 1-0:1.0: USB hub found [ 3.676376] hub 1-0:1.0: 1 port detected [ 3.685422] imx_thermal 20c8000.anatop:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C [ 3.706165] Freeing unused kernel image (initmem) memory: 2048K [ 3.735853] Run /init as init process GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread GC Warning: Couldn't read /proc/stat [ 3.985294] usb 1-1: new high-speed USB device number 2 using ci_hdrc [ 4.186425] hub 1-1:1.0: USB hub found [ 4.190308] hub 1-1:1.0: 4 ports detected Welcome, this is GNU's early boot Guile. Use 'gnu.repl' for an initrd REPL. ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `record-abi-mismatch-error' with args `(abi-check "~a: record ABI mismatch; recompilation needed" (#>) ())'. Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> [ 13.932250] platform regulator_wlan_vmmc: deferred probe pending ,bt In gnu/build/linux-boot.scm: 554:14 1 (_) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) scheme@(guile-user)> [ 320.255299] random: crng init done --8<---------------cut here---------------end--------------->8--- I'm out of ideas for now. -- Thanks, Maxim