The compiler and interpreter found in the Mathemagix nixpkg throw errors when run.
The following is an abridged version of this github issue.
Steps To Reproduce
Install the Mathemagix nixpkg. One way:
nix-shell -p mathemagix
Run Compiler
- Create file
hello.mmx
with the contents:
include "basix/fundamental.mmx";
mmout << "Hello world!" << lf;
- Run
mmc hello.mmx
/nix/store/wwfrj9kvfi14xclc38qfwm71ah6aawdh-binutils-2.41/bin/ld: cannot find -lreadline: No such file or directory
/nix/store/wwfrj9kvfi14xclc38qfwm71ah6aawdh-binutils-2.41/bin/ld: cannot find -lncurses: No such file or directory
/nix/store/wwfrj9kvfi14xclc38qfwm71ah6aawdh-binutils-2.41/bin/ld: cannot find -lltdl: No such file or directory
collect2: error: ld returned 1 exit status
mmc: error, link failed for /home/adam/code/mathemagix/hello
mmc: internal compiler error in /home/adam/code/mathemagix/hello.mmx
mmc: abort, 1 error in 1 file
Run Interpreter
- Run
mmi
Interpreter Errors
Similar to the compiler error, but not included for sake of brevity.
In addition to depending on the compiler, the interpreter uses a concept called glue that possibly complicates the situation.
Run Old Interpreter
- Run
mmx-light
Old Interpreter Errors
None; it works as intended.
For additional context and information such as errors, helpful links, and version numbers, please visit:
The Mathemagix compiler and interpreter throw errors · Issue #324970 · NixOS/nixpkgs · GitHub