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

Racket compiler unable to build executables because it is misclassified as interpreter? #350232

Closed
spdegabrielle opened this issue Oct 21, 2024 · 3 comments
Labels
0.kind: bug Something is broken

Comments

@spdegabrielle
Copy link

Describe the bug

Racket compiler is unable to build executables
Is this because it is classified as an interpreter?

https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/interpreters/racket/

Steps To Reproduce

#11698

Expected behavior

Successfully created executable

Screenshots

#11698

Additional context

https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/interpreters/racket/default.nix

Notify maintainers

@wahjava

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Add a 👍 reaction to issues you find important.

@spdegabrielle spdegabrielle added the 0.kind: bug Something is broken label Oct 21, 2024
@spdegabrielle
Copy link
Author

Chez - with which racket shares the underlying compiler is classified as a compiler

https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/compilers/chez/default.nix

@Zocker1999NET
Copy link
Contributor

This "classification" in either compiler or interpreter is only used to sort the nix files defining packages somewhat, so humans & computers have it easier navigating the large amount of Nix files. This classification does not result in a technical difference by itself. The only technical difference for Nix when building these packages (except their different default.nix files) is given in top-level/all-packages.nix:

https://github.com/NixOS/nixpkgs/blob/1997e4aa514312c1af7e2bda7fad1644e778ff26/pkgs/top-level/all-packages.nix#L14355

https://github.com/NixOS/nixpkgs/blob/1997e4aa514312c1af7e2bda7fad1644e778ff26/pkgs/top-level/all-packages.nix#L16486-L16488

IMO this is just a issue duplicate to #11698 which you mentioned yourself and which is still open.

@spdegabrielle spdegabrielle changed the title Racket compiler misclassified as interpreter Racket compiler unable to build executables because it is misclassified as interpreter? Mar 23, 2025
@spdegabrielle
Copy link
Author

This "classification" in either compiler or interpreter is only used to sort the nix files defining packages somewhat, so humans & computers have it easier navigating the large amount of Nix files. This classification does not result in a technical difference by itself. The only technical difference for Nix when building these packages (except their different default.nix files) is given in top-level/all-packages.nix:

https://github.com/NixOS/nixpkgs/blob/1997e4aa514312c1af7e2bda7fad1644e778ff26/pkgs/top-level/all-packages.nix#L14355

https://github.com/NixOS/nixpkgs/blob/1997e4aa514312c1af7e2bda7fad1644e778ff26/pkgs/top-level/all-packages.nix#L16486-L16488

IMO this is just a issue duplicate to #11698 which you mentioned yourself and which is still open.

Thanks for the clarification
closing as this duplicates #11698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants