Re: [coldfire-gnu-discuss] coldfire-toolchain: "make dep" fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldfire-gnu-discuss] coldfire-toolchain: "make dep" fails



Mark Mitchell wrote:
> Our release is based on GCC 4.1; it may be that 2.4 kernels do not work
> correctly with that version of GCC.

I don't have a GCC 4.1.x handy, but using GCC 4.0, "make dep" works...

Somehow, Make thinks that it should add "-I../include" when using the toolchain from
CodeSourcery. Since chances are relatively low that such a directory exists, the command
fails:

make[2]: Entering directory `/home/mma/sandbox/linux-2.4.32-uc0/arch/m68knommu/kernel'
/home/mma/sandbox/linux-2.4.32-uc0/scripts/mkdep -fno-builtin -nostdinc -D__KERNEL__
-I/home/mma/sandbox/linux-2.4.32-uc0/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[2]: *** [fastdep] Error 1


In contrast, using the uclinux toolchain results in make using
"-I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include" which is a valid directory:

make[2]: Entering directory `/home/mma/sandbox/linux-2.4.32-uc0/arch/m68knommu/kernel'
/home/mma/sandbox/linux-2.4.32-uc0/scripts/mkdep -fno-builtin -nostdinc -D__KERNEL__
-I/home/mma/sandbox/linux-2.4.32-uc0/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O1
-g -fno-strict-aliasing -fno-common -I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/./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
make[2]: Leaving directory `/home/mma/sandbox/linux-2.4.32-uc0/arch/m68knommu/kernel'

Cheers,

Michel