unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Olsson John <john.olsson@saabgroup.com>,
	"guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Problems compiling Guile for Solaris 11.4 SPARC
Date: Tue, 30 May 2023 00:28:39 +0200	[thread overview]
Message-ID: <a4bdc286-344f-733d-e994-c7caf5ab5467@telenet.be> (raw)
In-Reply-To: <dd3dd0a35fb9421e917b8d5d7ed26c07@saabgroup.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 2312 bytes --]



Op 23-05-2023 om 15:28 schreef Olsson John via General Guile related 
discussions:
> Hi!
> 
> I'm trying to compile Guile 3.0.8 for Solaris 11.4 and I get a core dump for STAGE0. The output I get is this (paths to build folder has been adjusted to hide my username)

> 
> Making all in stage0
> make[2]: Entering directory 'guile-3.0.8/stage0'
> GUILE_BOOTSTRAP_STAGE=stage0 ../meta/build-env guild compile --target="sparc-sun-solaris2.11" -W0 -O1 -L "guile-3.0.8/module" -o "ice-9/eval.go" "../module/ice-9/eval.scm"
> Pre-boot error; key: (#f "Wrong type to apply: ~S" (#f) (#f) (#f))
> make[2]: Leaving directory 'guile-3.0.8/stage0'
> make[1]: *** [Makefile:2061: all-recursive] Error 1
> make[1]: Leaving directory 'guile-3.0.8'
> make: *** [Makefile:1947: all] Error 2
> 
> Any ideas on what is going wrong?
 >
> $ uname -a
> SunOS fnord 5.11 11.4.56.138.2 sun4v sparc sun4v non-global-zone

1. Guile 3.0.8 is out-of-date, best update to 3.0.9.
2. Sparc support was removed in:

commit 570f361c6c8308ddc574d6308b50263175cae59e
Author: Andy Wingo <wingo@igalia.com>
Date:   Wed May 8 21:41:46 2019 +0200

     Remove Sparc support

     Sadly, this is a dead architecture, without an official Debian port.
     Rest in peace!

    As you just demonstrated, ‘Sparc is dead’ is false, so this should
    be reverted. (That's only the JIT though (not the (p-code)
    interpreter), so that won't solve your problem; I recommend delaying
    this until later.)

3. Unfortunately no backtrace is available.
    Perhaps you could run

GUILE_BOOTSTRAP_STAGE=stage0 ../meta/build-env guild compile 
--target="sparc-sun-solaris2.11" -W0 -O1 -L "guile-3.0.8/module" -o 
"ice-9/eval.go" "../module/ice-9/eval.scm"

    under the gdb or the like (with a break on scm_throw) to
    see if the backtrace in gdb is informative.

    That's the C backtrace, not the Scheme backtrace, so it might be
    rather unclear.  To avoid this, you could modify scm_throw to
    run scm_backtrace() after


         scm_puts ("Pre-boot error; key: ", port);
         scm_write (key, port);
         scm_puts (", args: ", port);
         scm_write (args, port);

    .  I don't know if scm_backtrace is functional in pre-boot, though.

Best regards,
Maxime Devos.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

  reply	other threads:[~2023-05-29 22:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-23 13:28 Problems compiling Guile for Solaris 11.4 SPARC Olsson John via General Guile related discussions
2023-05-29 22:28 ` Maxime Devos [this message]
2023-05-30 15:14   ` [EXTERNAL] " Olsson John

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=a4bdc286-344f-733d-e994-c7caf5ab5467@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=guile-user@gnu.org \
    --cc=john.olsson@saabgroup.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).