bugMIT/GNU Scheme - Bugs: bug #66425, MIT/GNU Scheme 12.1 on macOS 15.1...

 
 

bug #66425: MIT/GNU Scheme 12.1 on macOS 15.1 -- compiler question

Submitter:  None
Submitted:  Fri 08 Nov 2024 03:56:05 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Originator Email:  -email is unavailable- Open/Closed:  Open
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Dec 2024 06:21:33 AM UTC, comment #2: 

To anyone else experiencing this issue: see the discussion at

https://lists.gnu.org/archive/html/mit-scheme-users/2024-12/msg00000.html

for what appear to be partial remedies.

Kevin L <kkylin>
Fri 08 Nov 2024 07:44:34 PM UTC, comment #1: 

I forgot to attach the config.log, which may be useful.

(file #56609)

Kevin L <kkylin>
Fri 08 Nov 2024 03:56:05 AM UTC, original submission:  

Hi,

I'm not 100% sure this counts as a "bug", but don't know where else to get help so here goes: I'm building MIT/GNU Scheme 12.1 on macOS 15.1.  On both an M2 machine running Scheme in Rosetta and on an Intel machine, I get the same behavior, namely I manage to build mit-scheme-12.1-x86-64.tar.gz but the compiler doesn't seem to work: if I compile a file and load it, I get the following:

MIT/GNU Scheme running under OS X
Type `^C' (control-C) followed by `H' to obtain information about interrupts.

Copyright (C) 2022 Massachusetts Institute of Technology
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Image saved on Friday January 6, 2023 at 10:11:41 PM
  Release 12.1 || SF || LIAR/x86-64

1 ]=> (cf "fact.scm")

;Generating SCode for file: "fact.scm" => "fact.bin"...
;  This program does not have a USUAL-INTEGRATIONS declaration.
;  Without this declaration, the compiler will be unable to perform
;  many optimizations, and as a result the compiled program will be
;  slower and perhaps larger than it could be.  Please read the MIT
;  Scheme User's Guide for more information about USUAL-INTEGRATIONS.
;... done
;Compiling file: "fact.bin" => "fact.com"... done
;Unspecified return value

1 ]=> (load "fact.com")

;Loading "fact.com"...
;The object fact, passed as an argument to return-address->stack-frame-type, is not in the correct range.
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.

2 error>

Curiously, if I take a copy of "fact.com" compiled on a Linux box  and load it on my Mac version of Scheme 12.1, it does run correctly.

I say I'm not sure this counts as a bug because I don't think this is a supported platform.  But I don't know how to start to debug this as it seems to be a compiler issue that only surfaces when I try to load and run the compiled code.

In case it may help, I attach the files mentioned above, and the "bad" compiled code.  Any pointers would be greatly appreciated.  Thanks!

Kevin

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #56609:  config.log added by kkylin (23KiB - application/octet-stream)
file #56605:  fact.scm added by None (68B - application/octet-stream)
file #56606:  fact.bci added by None (2KiB - application/octet-stream)
file #56607:  fact.bin added by None (1KiB - application/macbinary)
file #56608:  fact.com added by None (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by kkylin (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-11-08 kkylin Attached File- Added config.log, #56609
    2024-11-08 None Attached File- Added fact.scm, #56605
        Attached File- Added fact.bci, #56606
        Attached File- Added fact.bin, #56607
        Attached File- Added fact.com, #56608

    Back to the top

    Powered by Savane 3.14-04e1.
    Corresponding source code