From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gordon Steemson Newsgroups: gmane.lisp.guile.devel Subject: Re: Guile 3.0.10 fails to build for powerpc-darwin (3.0.9 built earlier) Date: Fri, 30 Aug 2024 20:47:59 -0700 Message-ID: References: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35434"; mail-complaints-to="usenet@ciao.gmane.io" Cc: vital.had@gmail.com To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sat Aug 31 05:48:37 2024 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1skF6K-000920-5K for guile-devel@m.gmane-mx.org; Sat, 31 Aug 2024 05:48:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skF63-0000Uo-EJ; Fri, 30 Aug 2024 23:48:19 -0400 Original-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 1skF60-0000Ua-HR for guile-devel@gnu.org; Fri, 30 Aug 2024 23:48:16 -0400 Original-Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1skF5y-0000tj-8G for guile-devel@gnu.org; Fri, 30 Aug 2024 23:48:16 -0400 Original-Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-2d89dbb60bdso53613a91.1 for ; Fri, 30 Aug 2024 20:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725076091; x=1725680891; darn=gnu.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=LM5e/Os1SpwnJb8yz0EboVJ74kACloNSfqyF+cOWoNg=; b=LW8XAcf/avIRNsP+lUJgoXEizXRkzPKLgMKI3OTB2cPfsdw9mYyj/QQ3PxV4Ysd1Rg r7PbNw6Dek2t9Lf+/WgtJEDYmvvUU4HY/t0zAvUFQH+cPS3eZOOOW+sT1PfJfaWjBjZW LKA3amKkI1nt90ngrs9/MArvPM2fcTFnJ6hqRQU1i3yzfHqozUI3i6Kk8ZlRiUYRngiE uXygakxjRM/IeNUj07nF3t9IiTqMnvXq0cgYtM7w/RfJzDiywMjJSSELsuH3AtKWps1O 43iA+i3q9Y7F2Y/IL8J8l0sSJ+JJhLI+0ZnQdR7dzBDt39xtj4jLY6bnPtq3mJQyBHtC Wl+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725076091; x=1725680891; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LM5e/Os1SpwnJb8yz0EboVJ74kACloNSfqyF+cOWoNg=; b=cO6fA5Hvak6zXs1YDCJuUhSB+42MpN40yvTL4tlzmN+q4q0Uteia3iu8sgq8taq23D PUKasxpYjhJnlCXD5vHgW8wMNKl2+VOg4aXz7zlfG8xo97wFiJ/EzVX/Uyl/Tit7KOdV 11C3r7p2g+ju7FXsDmREp8yuMrsnFkYECkOTUxjm6cbNvfPhwKSuVsPJJPyCBbD3nE6g fhL+BeD4gtooXq/wbAZlD64gBbhcDJWXOoxTqEfND1+gjxiruMWDMsBCsz6+pY0UrCJO iRyZBwva7xLsCwXOw4Bj6ryrjfrZjiDz3OyPPeT6Q4kH6Hphkpy2D6cJ3hkLbY17yj9H 2hRw== X-Gm-Message-State: AOJu0YwIVcO16VJ9Q0eA39yzG8ZGhfi8hInthwzsTCn3atEB9CqSemSm rTh4Qz9YpziJQxkG441BSR/qGlk+BlDtULVzqveiUCgZEGU1cS1S X-Google-Smtp-Source: AGHT+IGLWwgWuKXUPnGYRVwsX4QdpSgLyuTS8jjSHrYRKIOjGpGoosfZ3uCzrY8SC5icxc42Az8ODw== X-Received: by 2002:a17:90a:8c91:b0:2d3:da6d:8330 with SMTP id 98e67ed59e1d1-2d85617bab4mr9244020a91.4.1725076091301; Fri, 30 Aug 2024 20:48:11 -0700 (PDT) Original-Received: from smtpclient.apple ([2607:fb91:1dc0:4a52:4598:46d3:7524:962d]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d85b13d2e9sm4715872a91.24.2024.08.30.20.48.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Aug 2024 20:48:10 -0700 (PDT) In-Reply-To: X-Mailer: iPhone Mail (21F90) Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=gsteemso@gmail.com; helo=mail-pj1-x1036.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22671 Archived-At: Hello Sergey, Mail attachments are not passed along through the mailing list, so I can't r= eally see what was going on leading up to the failure you experienced; but i= t might help if you describe what tweaks you had to make to get 3.0.9 to bui= ld. For the purpose of comparing and contrasting, I have built Guile 3.0.10 in 6= 4-bit mode on my Power Mac G5, and it required three patches: libguile/dyns= tack.h and libguile/print.h each needed a redundant typedef simplified to me= rely a structure definition, and libguile/posix.c required a workaround for t= he nonexistence of dprintf() on older Darwins. With those changes, and running make with -j1 to stop it from trying to do p= arallel jobs, it seems to build successfully =E2=80=93 though I'll admit the= unit-test suite coughs up a great many failures I have no idea how to addre= ss. For prerequisite packages, I have GetText and a modern Pkg-config as build-t= ime dependencies, and seven run-time dependencies: the Boehm garbage collect= or, GetText (again), Gnu MP, LibFFI, a modern Libtool, LibUnistring, and Gnu= Readline. I'm only about 90% certain _all_ of those are strictly required,= but if any is in fact superfluous, it will at the least not do any harm. In what ways does what I did differ from your own setup? Gordon S. > Date: Sat, 31 Aug 2024 05:20:33 +0800 > From: Sergey Fedorov > To: bug-guile@gnu.org, guile-devel@gnu.org > Subject: Guile 3.0.10 fails to build for powerpc-darwin (3.0.9 built > earlier) >=20 > Greetings, > Could someone take a look, please? >=20 > I am not familiar with Guile internals, so need some help with fixing this= . > Guile 3.0.9 was building with minimal fixes for Darwin ppc, however I am > unable to get 3.0.10 build. > I have tried to change some configure settings, but the failure is not > sensitive to any, it seems. >=20 > The error looks like this: >=20 > :info:build BOOTSTRAP(stage1) GUILEC ice-9/control.go > :info:build Backtrace: > :info:build In ice-9/boot-9.scm: > :info:build 1755:12 19 (with-exception-handler _ _ #:unwind? _ > #:unwind-for-type _) > :info:build In system/base/compile.scm: > :info:build 69:11 18 (_) > :info:build 190:11 17 (_ #) > :info:build 309:6 16 (read-and-compile _ #:from _ #:to _ #:env _ > #:optimization-level _ #:warning-level _ #:opts _) > :info:build 352:28 15 (compile _ #:from _ #:to _ #:env _ > #:optimization-level _ #:warning-level _ #:opts _) > :info:build 265:44 14 (_ _ _) > :info:build 261:33 13 (_ _ #) > :info:build In language/cps/optimize.scm: > :info:build 136:2 12 (_ _ #) > :info:build 111:3 11 (optimize-first-order-cps _ _) > :info:build In language/cps/switch.scm: > :info:build 414:6 10 (optimize-branch-chains _) > :info:build In language/cps/intmap.scm: > :info:build 519:6 9 (visit-branch #(#(#(# (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) #f) (absent) (absent= ) > (absent) #((absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) # ?) ?) ?) ?= ) > :info:build 519:6 8 (visit-branch #(#(# (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) #f) (absent) (absent= ) > (absent) #((absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (#) # ?) ?)= > ?) > :info:build 519:6 7 (visit-branch #((absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) # (absent) (absent) (absent) #f) _ 128 _) > :info:build In language/cps/switch.scm: > :info:build 99:36 6 (fold-branch-chains # _ _ > # _) > :info:build 343:8 5 (optimize-branch-chain 122 181 (158 159 160 161 > 162 163 164 165 167 169 171 173 175 177 179) _) > :info:build In ice-9/boot-9.scm: > :info:build 260:13 4 (for-each # language/cps/switch.scm:343:18 (expr)> _) > :info:build In language/cps/switch.scm: > :info:build 340:32 3 (_ (count-if . 170)) > :info:build In language/cps/guile-vm.scm: > :info:build 89:31 2 (target-symbol-hash _) > :info:build 41:18 1 (jenkins-lookup3-hashword2 "count-if") > :info:build In ice-9/boot-9.scm: > :info:build 1676:22 0 (raise-exception _ #:continuable? _) > :info:build ice-9/boot-9.scm:1676:22: In procedure raise-exception: > :info:build Value out of range 0 to< 18446744073709551615: -432225964 > :info:build gmake[2]: *** [Makefile:2516: ice-9/common-list.go] Error 1 > :info:build gmake[2]: *** Waiting for unfinished jobs.... > :info:build Backtrace: > :info:build In ice-9/boot-9.scm: > :info:build 1755:12 19 (with-exception-handler _ _ #:unwind? _ > #:unwind-for-type _) > :info:build In system/base/compile.scm: > :info:build 69:11 18 (_) > :info:build 190:11 17 (_ #) > :info:build 309:6 16 (read-and-compile _ #:from _ #:to _ #:env _ > #:optimization-level _ #:warning-level _ #:opts _) > :info:build 352:28 15 (compile _ #:from _ #:to _ #:env _ > #:optimization-level _ #:warning-level _ #:opts _) > :info:build 265:44 14 (_ _ _) > :info:build 261:33 13 (_ _ #) > :info:build In language/cps/optimize.scm: > :info:build 136:2 12 (_ _ #) > :info:build 111:3 11 (optimize-first-order-cps _ _) > :info:build In language/cps/switch.scm: > :info:build 414:6 10 (optimize-branch-chains _) > :info:build In language/cps/intmap.scm: > :info:build 519:6 9 (visit-branch #(#(#(# (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) #f) (absent) (absent= ) > (absent) #((absent) (absent) # (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) # ?) ?) ?) ?= ) > :info:build 519:6 8 (visit-branch #(#(# (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) #f) (absent) (absent= ) > (absent) #((absent) (absent) # (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (#) # ?) ?)= > ?) > :info:build 519:6 7 (visit-branch #((absent) (absent) # 130-153> (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) > # (absent) (absent) (absent) (absent) (absent) > #f) _ 128 _) > :info:build In language/cps/switch.scm: > :info:build 99:36 6 (fold-branch-chains # _ _ > # _) > :info:build 343:8 5 (optimize-branch-chain 100 151 (132 134 136 138 > 140) _) > :info:build In ice-9/boot-9.scm: > :info:build 260:13 4 (for-each # language/cps/switch.scm:343:18 (expr)> _) > :info:build In language/cps/switch.scm: > :info:build 340:32 3 (_ (call-with-escape-continuation . 135)) > :info:build In language/cps/guile-vm.scm: > :info:build 89:31 2 (target-symbol-hash _) > :info:build 41:18 1 (jenkins-lookup3-hashword2 > "call-with-escape-continuation") > :info:build In ice-9/boot-9.scm: > :info:build 1676:22 0 (raise-exception _ #:continuable? _) > :info:build ice-9/boot-9.scm:1676:22: In procedure raise-exception: > :info:build Value out of range 0 to< 18446744073709551615: -512332661 > :info:build gmake[2]: *** [Makefile:2516: ice-9/control.go] Error 1 > :info:build wrote `language/cps/guile-vm/lower-primcalls.go' > :info:build wrote `language/cps/guile-vm/reify-primitives.go' > :info:build wrote `language/cps/compile-bytecode.go' > :info:build wrote `language/cps/types.go' > :info:build gmake[2]: Leaving directory > '/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_guile-3.0/gui= le-3.0/work/guile-3.0.10/stage1' > :info:build gmake[1]: *** [Makefile:2180: all-recursive] Error 1 > :info:build gmake[1]: Leaving directory > '/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_guile-3.0/gui= le-3.0/work/guile-3.0.10' > :info:build gmake: *** [Makefile:2065: all] Error 2 >=20 > P. S. Given that it takes about 11 hrs to reach to this point (because > pre-built binaries for ppc32 are broken since guile2, and a full bootstrap= > is needed), it is somewhat problematic to debug this blindly without an > idea what could cause this failure. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: guile_3.0.10_powerpc_darwin.log > Type: application/octet-stream > Size: 654196 bytes > Desc: not available > URL: