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

Could not install langs #184

Open
sagark4 opened this issue Oct 29, 2024 · 3 comments
Open

Could not install langs #184

sagark4 opened this issue Oct 29, 2024 · 3 comments

Comments

@sagark4
Copy link

sagark4 commented Oct 29, 2024

First of all, thanks for making this wonderful material available publicly!

I tried to install langs package using the following command given in the "Software" section of the course page,

raco pkg install --auto 'https://github.com/cmsc430/www.git?path=langs#main'

but it did not work. The following command worked instead:

raco pkg install --auto 'https://github.com/cmsc430/langs.git'

but then raco test -p langs gives a bunch of ld warnings and is stuck on

make: Leaving directory '~/.local/share/racket/8.14/pkgs/langs/iniquity-gc'
Collect garbage: rsp = 7ffc0e5c8b68, rbp = 7ffc0e5c8b68, rbx = 7f2649ceb010

Is this not another correct way to install langs?

-Sagar Kale.

@dvanhorn
Copy link
Member

This is the (new) correct way to install the langs package, which was recently moved to its own repository. The web page needs to be updated. The ld warnings problem is caused by recent updates from Apple to their linker. There's a way to avoid these warnings that needs to be incorporated into the Makefiles, but that hasn't happened yet. In the meantime, you can ignore the warnings.

As for the getting stuck, that seems to be a real issue. Can you share details about your system? OS (I'm guessing is a Mac based on the linker thing) and gcc version in particular?

BTW, just because the tests fail or hang doesn't mean you don't have a complete installation of langs, it's just that something is up with iniquity-gc on your system.

@sagark4
Copy link
Author

sagark4 commented Oct 29, 2024

I have Debian Trixie (testing). The warnings look like:

/usr/bin/ld: warning: ~/.local/share/racket/8.14/pkgs/langs/test-programs/iniquity/multiple-defs.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

and versions:

GNU ld (GNU Binutils for Debian) 2.43.1
gcc (Debian 14.2.0-6) 14.2.0

@dvanhorn
Copy link
Member

Ah, this is not the issue I thought it was. I'll take a look and see if I can figure out what's going on. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants