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

8cc cannot find header files: stdio.h and others #125

Closed
Foxy6670 opened this issue Oct 16, 2022 · 1 comment
Closed

8cc cannot find header files: stdio.h and others #125

Foxy6670 opened this issue Oct 16, 2022 · 1 comment

Comments

@Foxy6670
Copy link

Foxy6670 commented Oct 16, 2022

When I'm trying to do anything from C involving STDIO or other C header files, I just get a report that the header file cannot be found, despite being in /usr/include/.

Command run: ~/elvm2/out/8cc -Ilibc -S wwvsim.c -o wwvsim.eir
Output: [ERROR] cpp.c:716: wwvsim.c:25:1: cannot find header file: stdio.h
Note this happens for EVERY header file. How do I fix this?

System: Devuan GNU/Linux 4 (chimaera) x86_64
Kernel: 5.10.0-18-amd64
Extra info:
/usr/include/stdio.h: File exists
In the C file I am trying to convert, stdio is included as #include <stdio.h>
Help is greatly appreciated. Thank you in advance!

@Foxy6670 Foxy6670 changed the title 8cc cannot find header file: stdio.h 8cc cannot find header files: stdio.h and others Oct 24, 2022
@Foxy6670
Copy link
Author

So I tried using the -I (include) function, that didn't work. Why can't 8cc find header files at all?

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

1 participant