[uClinux-dev] make dep fails

David McCullough david_mccullough at au.securecomputing.com
Mon Jan 1 17:34:03 EST 2007

Jivin techie embedded lays it down ...
> Hello list
> I'm trying to re-compile the uClinux kernel.
> The toolchain I'm using is : m68k-uclinux-tools-20060615 downloaded from the
> Snapgear Website...
> makedep fails coming up with the following errors...
> [root at localhost snapgear]# make dep
> make ARCH=m68knommu CROSS_COMPILE=m68k-elf- -C linux-2.4.x dep
> make[1]: Entering directory `/home/snapgear/linux-2.4.x'
> rm -f .depend .hdepend
> make _sfdep_arch/m68knommu/kernel _sfdep_arch/m68knommu/mm
> _sfdep_arch/m68knommu/lib _sfdep_arch/m68knommu/platform/5282 _sfdep_kernel
> _sfdep_drivers _sfdep_mmnommu _sfdep_fs _sfdep_net _sfdep_ipc _sfdep_lib
> _sfdep_crypto _FASTDEP_ALL_SUB_DIRS="arch/m68knommu/kernel arch/m68knommu/mm
> arch/m68knommu/lib arch/m68knommu/platform/5282 kernel drivers mmnommu fs
> net ipc lib crypto"
> make[2]: Entering directory `/home/snapgear/linux-2.4.x'
> make -C arch/m68knommu/kernel fastdep
> make[3]: Entering directory `/home/snapgear/linux-2.4.x
> /arch/m68knommu/kernel'
> /home/snapgear/linux-2.4.x/scripts/mkdep -fno-builtin -nostdinc -D__KERNEL__
> -I/home/snapgear/linux-2.4.x/include  -Wall -Wstrict-prototypes
> -Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -I../include -pipe
> -DNO_MM -DNO_FPU -m5307 -Wa,-S -Wa,-m5307 -D__ELF__ -DMAGIC_ROM_PTR
> -DUTS_SYSNAME=\"uClinux\" -D__linux__ -O1  -nostdinc -iwithprefix include --
> bios32.c console.c m68k_defs.c m68k_ksyms.c process.c ptrace.c semaphore.c
> setup.c sys_m68k.c time.c traps.c > .depend
> realpath(../include) failed, No such file or directory
> make[3]: *** [fastdep] Error 1
> make[3]: Leaving directory `/home/snapgear/linux-2.4.x
> /arch/m68knommu/kernel'
> make[2]: *** [_sfdep_arch/m68knommu/kernel] Error 2
> make[2]: Leaving directory `/home/snapgear/linux-2.4.x'
> make[1]: *** [dep-files] Error 2
> make[1]: Leaving directory `/home/snapgear/linux-2.4.x'
> make: *** [dep] Error 2
> [root at localhost snapgear]#
> Any help to get this sorted is sincerely appreciated.

Not sure,  but a couple of things:

1) don't build trees as root,  you only need to be root to install the
   tool chain,  build the tree as yourself.

2) make sure that /usr/local/bin is in your path:

	export PATH
	make dep

   Add it to your ~/.profile or ~/.bashrc when you get a chance.


David McCullough,  david_mccullough at securecomputing.com,   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com

More information about the uClinux-dev mailing list