Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with CM + use of Compiler structure in 110.96 #178

Open
1 of 5 tasks
JohnReppy opened this issue Jul 16, 2022 · 0 comments
Open
1 of 5 tasks

problem with CM + use of Compiler structure in 110.96 #178

JohnReppy opened this issue Jul 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working cm problem with compilation manager gforge bug (or feature request) ported from smlnj-gforge repository

Comments

@JohnReppy
Copy link
Contributor

Version

110.96

Operating System

  • All
  • Linux
  • macOS
  • Windows
  • Other Unix

OS Version

10.14.6

Processor

x86 (32-bit)

Component

Compilation manager (CM)

Severity

Major

Description of the problem

When I use CM in conjunction with a reference to Compiler structure (Compiler.version), I get
"Error: Compiler bug: UnpickMod: stub lookup failed for environment in $SMLNJ-MLRISC/AMD64.cm@500608(../amd64/c-calls/amd64-svid.sml): m = (6, functor AMD64SVID_CCalls), i = ".
This code worked in 110.93.

Transcript

$ sml
Standard ML of New Jersey (64-bit) v110.96 [built: Fri Dec 13 14:59:34 2019]
- CM.make "foo.cm";
[autoloading]
[library $smlnj/cm/cm.cm is stable]
[library $smlnj/internal/cm-sig-lib.cm is stable]
[library $/pgraph.cm is stable]
[library $smlnj/internal/srcpath-lib.cm is stable]
[library $SMLNJ-BASIS/basis.cm is stable]
[library $SMLNJ-BASIS/(basis.cm):basis-common.cm is stable]
[autoloading done]
[scanning foo.cm]
[library $smlnj/compiler/compiler.cm is stable]
[parsing (foo.cm):foo.sml]
[library $smlnj/compiler/current.cm is stable]
[library $smlnj/compiler/amd64.cm is stable]
[library $smlnj/viscomp/basics.cm is stable]
[library $smlnj/viscomp/amd64.cm is stable]
[library $smlnj/viscomp/core.cm is stable]
[library $smlnj/MLRISC/MLRISC.cm is stable]
[library $SMLNJ-MLRISC/MLRISC.cm is stable]
[library $smlnj-lib.cm(=$SMLNJ-LIB/Util)/smlnj-lib.cm is stable]
[library $Graphs.cm(=$SMLNJ-MLRISC)/Graphs.cm is stable]
[library $compiler/(core.cm):MiscUtil/const-arith/sources.cm is stable]
[library $smlnj/smlnj-lib/controls-lib.cm is stable]
[library $SMLNJ-LIB/Controls/controls-lib.cm is stable]
[library $smlnj/MLRISC/Lib.cm is stable]
[library $SMLNJ-MLRISC/Lib.cm is stable]
[library $smlnj/viscomp/debugprof.cm is stable]
[library $smlnj/viscomp/elabdata.cm is stable]
[library $smlnj/smlnj-lib/pp-lib.cm is stable]
[library $SMLNJ-LIB/PP/pp-lib.cm is stable]
[library $html-lib.cm(=$SMLNJ-LIB/HTML)/html-lib.cm is stable]
[library $smlnj/viscomp/execute.cm is stable]
[library $smlnj/viscomp/parser.cm is stable]
[library $smlnj/viscomp/elaborate.cm is stable]
[library $smlnj/MLRISC/AMD64.cm is stable]
[library $SMLNJ-MLRISC/AMD64.cm is stable]
Error: Compiler bug: UnpickMod: stub lookup failed for environment in $SMLNJ-MLRISC/AMD64.cm@500608(../amd64/c-calls/amd64-svid.sml): m = (6, functor AMD64SVID_CCalls), i = <moduleId>

Expected Behavior

No response

Steps to Reproduce

--- foo.sml ---

structure Foo =
struct
val foo = Compiler.version
end;

--- foo.cm ---

Library

source(-)

is

$/basis.cm
$smlnj/cm.cm
$smlnj/compiler.cm
$smlnj/compiler/compiler.cm

foo.sml

Additional Information

No response

Email address

alley.stoughton@icloud.com

Comments from smlnj-gforge

Original smlnj-gforge bug number 241

Submitted via web form by Alley Stoughton alley.stoughton@icloud.com on 2019-39-21 at 18:3900

Keywords: CM, Compiler structure

comment by @JohnReppy on 2019-59-21 18:5900 +000 UTC

This is the same as bug #232.

@JohnReppy JohnReppy added bug Something isn't working cm problem with compilation manager gforge bug (or feature request) ported from smlnj-gforge repository labels Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cm problem with compilation manager gforge bug (or feature request) ported from smlnj-gforge repository
Projects
None yet
Development

No branches or pull requests

2 participants