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

Unable to compile - "fatal error: assert.h: No such file or directory" #6

Closed
JSaterdalen opened this issue Aug 5, 2022 · 2 comments

Comments

@JSaterdalen
Copy link

Compiling on Arch linux (Steam Deck) fails due to missing directories.

@VitaSmith
Copy link
Owner

VitaSmith commented Aug 5, 2022

The issue is with your environment. If a system doesn't have assert.h it's definitely not set up for compilation (which is expected from a vanilla Steam Deck).

I see no issue whatsoever on Debian or other Linux distros where a gcc toolchain is properly installed:

$ make
[C] cdecrypt.c
[C] util.c
[C] aes.c
[C] sha1.c
[L] cdecrypt

@pineguy-64
Copy link

pineguy-64 commented Aug 31, 2022

For anyone that runs across this and wants to know how to get the missing headers, Valve removed some files from packages to save room so you need to reinstall 2 files to get these back and be able to compile c++ code. I'm assuming here you've already done the necessary steps to use sudo and install packages (by turning off read-only) on your steam deck.

Reinstall the 2 packages like so:

sudo pacman -S glibc linux-api-headers

Now you should have assert.h and the other missing header files back.

All credit goes to u/TTachyon for sharing this on their reddit thread.

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

3 participants