Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

make file dependency not met? gcc can't find <sys/types.h> #2

Open
polycopter opened this issue May 26, 2015 · 4 comments
Open

make file dependency not met? gcc can't find <sys/types.h> #2

polycopter opened this issue May 26, 2015 · 4 comments

Comments

@polycopter
Copy link

gcc -Wall -Wextra -Werror -m32 mkfs.c -o mkfs
mkfs.c:1:23: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^
compilation terminated.
Makefile:38: recipe for target 'mkfs' failed
make: *** [mkfs] Error 1

... perhaps (a) step(s) can be added to the README.md?

@polycopter
Copy link
Author

after some research, I ran:

sudo apt-get install libc6-dev-i386

and then make completed w/o errors. So, in my case the list of packages (which I had already installed) was not sufficient.

@Aspect9
Copy link

Aspect9 commented Oct 31, 2017

thanks.

1 similar comment
@shangtsung1
Copy link

thanks.

@arafat877
Copy link

to resolve this problem you should install a library named : libc6-dev by typing

sudo apt install libc6-dev

it will run

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

No branches or pull requests

4 participants