From: Gordon Steemson <gsteemso@gmail.com>
To: guile-devel@gnu.org
Cc: vital.had@gmail.com
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 [thread overview]
Message-ID: <B3B5ECA2-6D2D-4D93-9EA4-C1409734C039@gmail.com> (raw)
In-Reply-To: <mailman.12480.1725054330.21467.guile-devel@gnu.org>
Hello Sergey,
Mail attachments are not passed along through the mailing list, so I can't really see what was going on leading up to the failure you experienced; but it might help if you describe what tweaks you had to make to get 3.0.9 to build.
For the purpose of comparing and contrasting, I have built Guile 3.0.10 in 64-bit mode on my Power Mac G5, and it required three patches: libguile/dynstack.h and libguile/print.h each needed a redundant typedef simplified to merely a structure definition, and libguile/posix.c required a workaround for the nonexistence of dprintf() on older Darwins.
With those changes, and running make with -j1 to stop it from trying to do parallel jobs, it seems to build successfully – though I'll admit the unit-test suite coughs up a great many failures I have no idea how to address.
For prerequisite packages, I have GetText and a modern Pkg-config as build-time dependencies, and seven run-time dependencies: the Boehm garbage collector, 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 <vital.had@gmail.com>
> 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)
>
> Greetings,
> Could someone take a look, please?
>
> 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.
>
> The error looks like this:
>
> :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 (_ #<closed: file 2841ea8>)
> :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 (_ _ #<directory (ice-9 common-list) 28a8320>)
> :info:build In language/cps/optimize.scm:
> :info:build 136:2 12 (_ _ #<directory (ice-9 common-list) 28a8320>)
> :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 #(#(#(#<intset 0-155> (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 #(#(#<intset 0-155> (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) #<intset 156-199> (absent) (absent) (absent) #f) _ 128 _)
> :info:build In language/cps/switch.scm:
> :info:build 99:36 6 (fold-branch-chains #<intmap 0-1831> _ _
> #<procedure optimize-branch-chain (var exit tests cps)> _)
> :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 #<procedure 412a570 at
> 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 (_ #<closed: file 2841ea8>)
> :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 (_ _ #<directory (ice-9 control) 288cf00>)
> :info:build In language/cps/optimize.scm:
> :info:build 136:2 12 (_ _ #<directory (ice-9 control) 288cf00>)
> :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 #(#(#(#<intset 0-129> (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) #<intset 130-153> (absent) (absent) (absent)
> (absent) (absent) (absent) (absent) (absent) (absent) (absent) # ?) ?) ?) ?)
> :info:build 519:6 8 (visit-branch #(#(#<intset 0-129> (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) #<intset 130-153> (absent) (absent) (absent)
> (absent) (absent) (absent) (absent) (absent) (absent) (absent) (#) # ?) ?)
> ?)
> :info:build 519:6 7 (visit-branch #((absent) (absent) #<intset
> 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)
> #<intset 154-734,1124-1129> (absent) (absent) (absent) (absent) (absent)
> #f) _ 128 _)
> :info:build In language/cps/switch.scm:
> :info:build 99:36 6 (fold-branch-chains #<intmap 0-1129> _ _
> #<procedure optimize-branch-chain (var exit tests cps)> _)
> :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 #<procedure 39d7ea0 at
> 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/guile-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/guile-3.0/work/guile-3.0.10'
> :info:build gmake: *** [Makefile:2065: all] Error 2
>
> 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: <https://lists.gnu.org/archive/html/guile-devel/attachments/20240831/6aabf749/attachment.htm>
> -------------- 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: <https://lists.gnu.org/archive/html/guile-devel/attachments/20240831/6aabf749/attachment.obj>
next parent reply other threads:[~2024-08-31 3:47 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.12480.1725054330.21467.guile-devel@gnu.org>
2024-08-31 3:47 ` Gordon Steemson [this message]
2024-09-01 5:44 Guile 3.0.10 fails to build for powerpc-darwin (3.0.9 built earlier) Gordon Steemson
2024-09-01 7:09 ` Gordon Steemson
2024-09-01 8:43 ` Sergey Fedorov
2024-09-13 15:59 ` Sergey Fedorov
2024-09-22 5:24 ` Sergey Fedorov
2024-09-22 8:33 ` John Paul Adrian Glaubitz
2024-09-22 15:53 ` Gordon Steemson
2024-09-22 15:57 ` Sergio Had
2024-09-29 17:46 ` Rob Browning
2024-09-29 18:43 ` John Paul Adrian Glaubitz
2024-09-29 19:19 ` John Paul Adrian Glaubitz
2024-09-29 19:34 ` Sergey Fedorov
2024-09-29 20:00 ` Rob Browning
2024-09-29 20:21 ` John Paul Adrian Glaubitz
2024-09-30 1:24 ` Rob Browning
2024-09-30 6:27 ` John Paul Adrian Glaubitz
2024-09-30 19:39 ` Rob Browning
2024-10-03 7:14 ` Rob Browning
2024-10-03 7:40 ` John Paul Adrian Glaubitz
2024-10-04 0:49 ` Rob Browning
2024-10-04 14:50 ` Sergey Fedorov
2024-10-03 7:48 ` Sergey Fedorov
2024-10-04 0:46 ` Rob Browning
2024-09-01 8:51 ` Sergey Fedorov
-- strict thread matches above, loose matches on Subject: below --
2024-08-30 21:20 Sergey Fedorov
2024-08-31 2:27 ` Rob Browning
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B3B5ECA2-6D2D-4D93-9EA4-C1409734C039@gmail.com \
--to=gsteemso@gmail.com \
--cc=guile-devel@gnu.org \
--cc=vital.had@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).