Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-10-2010, 02:16 PM   #1
LQ Newbie
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
cmem.c:38:19: error: stdio.h: No such file or directory

I am trying to compile a memory map module cmem.ko from TI codec tools. This is for the DSPlink software development for the OMAP3530. I am compiling this on the host(Ubuntu). First error could not find cc1 and i re-installed gcc and added it to the path. That fixed that error but then I get to this:

cmem.c:38:19: error: stdio.h: No such file or directory
cmem.c:39:20: error: unistd.h: No such file or directory
cmem.c:40:22: error: sys/mman.h: No such file or directory
cmem.c:41:23: error: sys/types.h: No such file or directory
cmem.c:42:22: error: sys/stat.h: No such file or directory
cmem.c:43:23: error: sys/ioctl.h: No such file or directory
cmem.c:44:19: error: fcntl.h: No such file or directory
cmem.c:45:19: error: errno.h: No such file or directory
cmem.c:46:20: error: string.h: No such file or directory

Things I have tried:

1. build-essential is up to date (suppose to work but not)
locate stdio.h

/home/amir/Desktop/OLD CGTOOLS/include/stdio.h
3. echo $PATH
Here is my that I edited for my kernel and toolchain
# Where to copy the resulting executables and data to (when executing 'make
# install') in a proper file structure. This EXEC_DIR should either be visible
# from the target, or you will have to copy this (whole) directory onto the
# target filesystem.

# The prefix to be added before the GNU compiler tools (optionally including
# path), i.e. "arm_v5t_le-" or "/opt/bin/arm_v5t_le-".

# Equivalent path for uClibc compiler tools

# The directory that points to your kernel source directory. This is used
# for building the kernel module, as the kernel's build system
# gets invoked. Note that this also means that the below C_FLAGS etc. will
# be ignored when building this particular module.

# If we're a subcomponent, allow larger product settings to over-ride our
# defaults.
-include ../../../../../../../../Rules.make

# Whether or not to use the udev pseudo filesystem to generate the /dev
# filesystem for kernel modules. This depends on your kernel configuration.
# If udev is not used, the /dev files have to be created manually using mknod.

# The maximum number of memory pools for cmem.
4. locate libc6-dev (another solution that doesnt work for me)


Thanks in advance.

Last edited by skedar; 08-10-2010 at 02:29 PM. Reason: Added more info.
Old 08-10-2010, 02:39 PM   #2
LQ Newbie
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0

The Rules.make file didnt point to the toolchain correctly. That was my mistake of editing improperly.

This is how it looks like now.


Last edited by skedar; 08-10-2010 at 03:10 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
configure on CentOS 5.2: "stdio.h: No such file or directory" xp_newbie Linux - Software 14 02-08-2011 02:22 PM
stdio.h: No such file or directory elaa82 Linux - Software 2 12-29-2009 04:31 AM
conflict in FILE and stdio George2 Programming 12 10-12-2007 02:36 AM
test.c:1:19: error: stdio.h: No such file or directory Lokathor Debian 2 09-14-2006 12:11 PM
test.c:1:19: Stdio.h: No such file or directory :( wogga Linux - Software 1 06-11-2004 02:57 PM

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration